iOsMA
iOsMA
Calculates the Moving Average of Oscillator indicator and returns its value.
double iOsMA(
string symbol, // symbol
int timeframe, // timeframe
int fast_ema_period, // Fast EMA period
int slow_ema_period, // Slow EMA period
int signal_period, // Signal line period
int applied_price, // applied price
int shift // shift
);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.
- 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.
Example:
if(iOsMA(NULL,0,12,26,9,PRICE_OPEN,1)>iOsMA(NULL,0,12,26,9,PRICE_OPEN,0)) return(0);Last updated on