Incorrect iRSIOnArray function.

 

Dears,

 

  I would like to calculate the RSI value by previous stored array data,

   My code is as following.

    double adx_array[14];

    ArraySetAsSeries(adx_array,true);

    for (int i= 0; i< 14; i++)

    {

      adx_array[i]= iADX(NULL, 60, 14, PRICE_CLOSE, MODE_MAIN, i);

      Print("adx_array[i]", adx_array[i]);

    }

    double rsi= iRSIOnArray(adx_array, 14, 6, 0); 

 

  I always get the same rsi value. It is weird.

   By the way, in the previous MT4 version it works correctly!!!!

 

  Thanks a lot.

 
oeoeoeooeo:

Dears,

 

  I would like to calculate the RSI value by previous stored array data,

   My code is as following.

    double adx_array[14];

    ArraySetAsSeries(adx_array,true);

    for (int i= 0; i< 14; i++)

    {

      adx_array[i]= iADX(NULL, 60, 14, PRICE_CLOSE, MODE_MAIN, i);

      Print("adx_array[i]", adx_array[i]);

    }

    double rsi= iRSIOnArray(adx_array, 14, 6, 0); 

 

  I always get the same rsi value. It is weird.

   By the way, in the previous MT4 version it works correctly!!!!

 

  Thanks a lot.

Sometimes we got error because of versions, I advice to you please check out versions by properties or check this issue by open service desk also, I hope you will find right channel.
 
Khurram Mustafa:
Sometimes we got error because of versions, I advice to you please check out versions by properties or check this issue by open service desk also, I hope you will find right channel.
Thanks Khurram Mustafa 
Reason: