question about COPYRATES in tester mode New comment Amir Yacoby 2011.02.02 22:05 Hi When using copyrates to copy the last uncomplete bar (with start_pos = 0 and count = 1) it brings the current bar rate. I can't manage to accomplish when using it in tester mode, because when testing a period for instance of 3 months: 01.04.2010 - 01.07.2010 the copyrates in tester mode still returns the current bar rate (of 02.02.2011 which is the current date). Does the tester should not recognise that when the testing date is 01.04.2010 than the copyrates of pos=0 should return this date rates? Thanks in advance Documentation on MQL5: Standard Constants, Enumerations and Structures / Environment State / Running MQL5 Program Properties www.mql5.com Standard Constants, Enumerations and Structures / Environment State / Running MQL5 Program Properties - Documentation on MQL5 CopyRates does not return the last bars CopyRates problem CopyRates from Stratety Tester end of run date New comment
Hi
When using copyrates to copy the last uncomplete bar (with start_pos = 0 and count = 1) it brings the current bar rate.
I can't manage to accomplish when using it in tester mode, because when testing a period for instance of 3 months: 01.04.2010 - 01.07.2010
the copyrates in tester mode still returns the current bar rate (of 02.02.2011 which is the current date).
Does the tester should not recognise that when the testing date is 01.04.2010 than the copyrates of pos=0 should return this date rates?
Thanks in advance