Historical spread during backtesting in the strategy tester is different from the historical spread stored in the Mql rates array. What are they? Why they are different? - page 3

 
Fab #:

Sorry for the blast from the past, but I fear that either something has changed in mql5, or I have missed some piece.


But running Alain's EA several years later, it looks like CopyRates and CopySpread are no longer working as expected. Please look at the attached backtesting log file.



A lot as changed in 10 years. This old code compares spread from a tick and spread from M1 history bar, that's why it now returns discrepancies, it should be fixed.

There is no problem with the spread in the Strategy Tester.

 
Alain Verleyen #:

A lot as changed in 10 years. This old code compares spread from a tick and spread from M1 history bar, that's why it now returns discrepancies, it should be fixed.

There is no problem with the spread in the Strategy Tester.

Thank you so much. For the Strategy Tester I agree, after few other verifications.