iRSI return sometimes wrong values

 

Hi All,

I have ea use RSI (use function iRSI), but sometimes this function return wrong value.

Code example: 

double RSInow=iRSI(NULL,0,14,PRICE_CLOSE,0);

I run my ea online many days but sometimes this function return wrong value. Maybe it return old value (I debug return value but it wrong). I don't know if mql4 have cache.

Please help me to get the values after this indicator is refreshed

Thanks.

 
Your topic has been moved to the section: MQL4 and MetaTrader 4
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
 
  1. double RSInow=iRSI(NULL,0,14,PRICE_CLOSE,0);

    Why did you post your MT4 question in the MT5 General section instead of the MQL4 section, (bottom of the Root page)?
              General rules and best pratices of the Forum. - General - MQL5 programming forum? (2017)
    Next time, post in the correct place. The moderators will likely move this thread there soon.

  2. Thanh Tan Huynh: but sometimes this function return wrong value.
    You've provided no evidence, so we can't possibly know why you are wrong.
          How To Ask Questions The Smart Way. (2004)
              Don't rush to claim that you have found a bug.
          Questions Not To Ask
              My program doesn't work. I think system facility X is broken.

    It is almost always your code.


 
Fernando Carreiro #:
Your topic has been moved to the section: MQL4 and MetaTrader 4
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893

Noted with thanks.

 
William Roeder #:
  1. Why did you post your MT4 question in the MT5 General section instead of the MQL4 section, (bottom of the Root page)?
              General rules and best pratices of the Forum. - General - MQL5 programming forum? (2017)
    Next time, post in the correct place. The moderators will likely move this thread there soon.

  2. You've provided no evidence, so we can't possibly know why you are wrong.
          How To Ask Questions The Smart Way. (2004)
              Don't rush to claim that you have found a bug.
          Questions Not To Ask
              My program doesn't work. I think system facility X is broken.

    It is almost always your code.


Note with thanks.