Function EMA on Array RSI? New comment Hoa Hoang Van 2013.02.18 08:20 Hello everybody,I'm a newbie of mql4 and now I have a problem with iMA, iMaOnArry, RSII want to get the value of EMA( RSI(39),30) .It means that it will caculate the EMA with period 30 of the Array RSI, the period of RSI is 39?Can anyone help me this function? I have tried, but it was not working double EMA (int i = 0) {double rsi[];for (int k=Bars;k >= 0;k--)rsi[k] = iRSI(NULL,0,39,PRICE_CLOSE,k);return(iMAOnArray(rsi,0,30,0,MODE_EMA,i));} Getting an false value of EMA when using iMaOnArray function. Moving Average I need help with my function please New comment
Hello everybody,
I'm a newbie of mql4 and now I have a problem with iMA, iMaOnArry, RSI
I want to get the value of EMA( RSI(39),30) .
It means that it will caculate the EMA with period 30 of the Array RSI, the period of RSI is 39?
Can anyone help me this function?
I have tried, but it was not working
double EMA (int i = 0)
{
double rsi[];
for (int k=Bars;k >= 0;k--)
rsi[k] = iRSI(NULL,0,39,PRICE_CLOSE,k);
return(iMAOnArray(rsi,0,30,0,MODE_EMA,i));
}