MQL4 Reference Technical Indicators iMACD
iMACDCalculates the Moving Averages Convergence/Divergence indicator and returns its value.
Parameters symbol [in] Symbol name on the data of which the indicator will be calculated. NULL means the current symbol. timeframe [in] Timeframe. It can be any of ENUM_TIMEFRAMES enumeration values. 0 means the current chart timeframe. fast_ema_period [in] Fast EMA averaging period. slow_ema_period [in] Slow EMA averaging period. signal_period [in] Signal line averaging period. applied_price [in] Applied price. It can be any of ENUM_APPLIED_PRICE enumeration values. mode [in] Indicator line index. It can be one of the Indicators line identifiers enumeration values (0-MODE_MAIN, 1-MODE_SIGNAL). shift [in] Index of the value taken from the indicator buffer (shift relative to the current bar the given amount of periods ago). Returned value Numerical value of the Moving Average of Oscillator indicator. Note In some systems it is called MACD Histogram and plotted as two lines. In MetaTrader 4 client terminal MACD is plotted as histogram. Example:
|