EA tester data missmatch

 

Hello

Help needed

I have metatrader 4 runing on demo account(alpari, fxcm)

I've made a EA and when I'm running it through metatrader 4 I get indicator data different from what I'm seeing in the graph.

For example, I've told the program to print rsi value when buying plus the time of the deal and I get

"2011.04.15 10:00 test EURUSD,H1: RSI=48.0088: TimeCurrent=10:00:"

and when I'm opening the graph with the same setting of rsi and the same date and time I'm getting that rsi is 45.2886

it's just a simple one cause I get data mismatch with all the indicators no matter date or time

thanks in advance

harel

 

Show the code for how you get the RSI value . . . and please use the SRC button . . .

Please use this to post code . . . it makes it easier to read.

 
RaptorUK:

Show the code for how you get the RSI value . . . and please use the SRC button . . .

Please use this to post code . . . it makes it easier to read.


iRSI("EURUSD", PERIOD_H1, 13, PRICE_CLOSE, 0)

cheers
 
redharel:
iRSI("EURUSD", PERIOD_H1, 13, PRICE_CLOSE, 0)

cheers


That is bar 0 and the RSI based on that bar will change (repaint) so if you look at the chart and Indicator RSI for that bar some time later it will be different. Try the same thing for bar 1 and there will be no difference.
 

thank you very much