how to calculate the moving average of variables
for example,
double STD= iStdDev(NULL, 0, maslowLength, 0, MODE_SMA, PRICE_CLOSE, 1);
double STDma= iMA( NULL, 0,maslowLength ,0, MODE_EMA, STD, 0) ;
the journal said " invalid integer number as parameter 6 for 'iMA' function".
sorry i am a totally rookie for MT4 programming.
Don't be sorry . . . read the documentation. iMA() what is STD ? it's a double, what does iMA() need ?
You need to look at iMAOnArray() instead, and search for some post on the subject in the last 2 months.
for example,
double STD= iStdDev(NULL, 0, maslowLength, 0, MODE_SMA, PRICE_CLOSE, 1);
double STDma= iMA( NULL, 0,maslowLength ,0, MODE_EMA, STD, 0) ;
the journal said " invalid integer number as parameter 6 for 'iMA' function".
sorry i am a totally rookie for MT4 programming.