Put the cursor on iRSI and press F1 and read how this function is used! It returns a handle not values!
Hi
Exactly – int mt5 functions for indicators returns handles you should call this function in OnInit and then use CopyBuffer to get the values from this handle like this:
double values[1]; int copied = CopyBuffer(rsi,0,0,1,values); Print(“Current RSI: “, values[0]);
Have a nice weekend👍📊
This is different from the calling method of MT4.
You do know there is also a full working code example in the reference
https://www.mql5.com/en/docs/indicators/irsi
Don't ignore the F1 tip given above.
Documentation on MQL5: iRSI / Technical Indicators
- www.mql5.com
The function returns the handle of the Relative Strength Index indicator. It has only one buffer. Parameters symbol [in] The symbol name of the...
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
why?
Visually i see in tester the is rsi price are normal and moving, the rsi is changing. What can be the problem?