|
Functions by Category Functions by Alphabetical list
The MACD - Moving Average Convergence/Divergence is an indicator developed by Gerald Appel. The MACD uses three moving averages in it's construction (EMA). The fast line (the MACD line) is the difference between two EMA of the closing prices. The slow line (sometimes called the signal line) is a EMA of the MACD line. The defaults for this indictor are 12,26 and 9. In scalar context returns the histogram, in list context returns the columns MACD line, MACD signal and the MACD histogram. Examples: my $macd=MACD(12,26,9); #$macd contains the histogram column
Today(MACD(12,26,9)); #returns the value of today's histogram
my ($line,$signal)=MACD(12,26,9);
my ($line,$signal,$hist)=MACD(12,26,9);
Related functions: ATR , ADX , BB , CCI , MFI , OBV , RSI , SS , ROC , RS , Range , Envelope , DEMA , TypicalPrice , MedianPrice , WeightedClose , Momentum , WilliamsR , Performance , Percent , TrueRange , Volatility , PivotPoint , MoneyFlow , StaDev , AveDev , Variance , Skewness , Kurtosis , LongWhite , LongBlack , PiercingLine , BullishEngulfing , BearishEngulfing , HammerHanging , ThreeWhiteSoldiers , ThreeBlackCrows , DarkCloudCover , Doji , LinearReg , LinearRegAngle , LinearRegIntercept , LinearRegSlope , TSF , Correl
|