different rsi between indicator and EA

 

Hi guys!

I've wrote this code:

double the_rsi = iRSI(Symbol(),0,14,PRICE_CLOSE,0);
Print(the_rsi);


and when I run this code in the backtest, the printed value is different than the value that I read in the indicator. 

What I'm wrong?


Thank you!