Download MetaTrader 5

iRSIonArray behaving very weird

To add comments, please log in or register
tahseenjamal
30
tahseenjamal 2014.01.21 18:58 

Am using indicator buffer, which am not using for drawing graphs.

I observed that one the indicator buffer is given a value, it cannot be over written. So in a for-next loop, even if I try to change the value, it is not changing

Is there a way to force the indicator buffer to accept the new value in its cell and discard the old value?

Simon Gniadkowski
Moderator
18002
Simon Gniadkowski 2014.01.21 19:00  
tahseen:

Am using indicator buffer, which am not using for drawing graphs.

I observed that one the indicator buffer is given a value, it cannot be over written. So in a for-next loop, even if I try to change the value, it is not changing

Is there a way to force the indicator buffer to accept the new value in its cell and discard the old value?

Yes, change the value just as you would with any other variable.
tahseenjamal
30
tahseenjamal 2014.01.21 19:10  

Ok! I changed the heading because of the issue

I checked and saw that the buffer value is indeed changing. The culprit is iRSIonArray

even when the buffer values have changed, the iRSIonArray is giving me same values even when the array content has changed. How is that possible?

whroeder1
14753
whroeder1 2014.01.21 20:16  
tahseen: How is that possible?
Because your code is BROKEN. There are no mind readers here - post your code.
To add comments, please log in or register