| Edit | Map | Home | New Post | New Gallery |
Support
|
iMACD
Calculates the Moving Averages Convergence/Divergence indicator and returns its value.
|
double iMACD( |
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:
|
if(iMACD(NULL,0,12,26,9,PRICE_CLOSE,MODE_MAIN,0)>iMACD(NULL,0,12,26,9,PRICE_CLOSE,MODE_SIGNAL,0)) return(0); |
iMA
Calculates the Moving Average indicator and returns its value.
|
double iMA( |
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.
ma_period
[in] Averaging period for calculation.
ma_shift
[in] MA shift. Indicators line offset relate to the chart by timeframe.
ma_method
[in] Moving Average method. It can be any of ENUM_MA_METHOD enumeration values.
applied_price
[in] Applied price. It can be any of ENUM_APPLIED_PRICE enumeration values.
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 indicator.
Example:
|
AlligatorJawsBuffer[i]=iMA(NULL,0,13,8,MODE_SMMA,PRICE_MEDIAN,i); |
|
Коротке посилання: https://www.sponsorschoose.org/a244
Коротке посилання на цю версію: https://www.sponsorschoose.org/n273
Автор - volodia дата: 2023-07-20 12:59:57
Остання зміна - volodia дата: 2023-07-20 13:11:37
|