Download MetaTrader 5

question about COPYRATES in tester mode

To add comments, please log in or register
Find out how your rating can be improved
Amir Yacoby
1192
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
To add comments, please log in or register