Wrong iRSI?

 

Hi, I am very new to mql5 so I  apologize...

When I do something such as...

int rsi;
rsi = iRSI(_Symbol, PERIOD_H1, 21, PRICE_CLOSE);

Alert(rsi);


The result is.. for example  10 ... however when I  go to the chart and add an RSI with the same values, the result is like 48 ... 


What am I doing wrong?


Also on a side question.. where is the output of printf going?  How can I see it ?



Thank you.

 

First of all you should read documentation. Especially https://www.mql5.com/en/docs/indicators

iRSI just returns created indicator's handle

Documentation on MQL5: Technical Indicators
  • www.mql5.com
Technical Indicators - Documentation on MQL5