Kakwo Obshto Ima Forex I Matematikata

iMA

Calculates the Moving Average indicator and returns its value.

double  iMA(
   string       symbol,           
   int          timeframe,        
   int          ma_period,        
   int          ma_shift,         
   int          ma_method,        
   int          applied_price,    
   int          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.

Forex семинар за начинаещи с Райчо Ангелов (ФОРЕКС ОБУЧЕНИЕ)

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

Example:

  AlligatorJawsBuffer[i]=iMA(NULL,0,13,8,MODE_SMMA,PRICE_MEDIAN,i);