Can someone explain this?

 

I have an expert which I back tested a couple of days and exported the results which included profit, swap and commission etc.

Today I made a change to one part the code which shouldn't have affected the results and re ran it and exported the results. When comparing the net equity curves I noticed a very small difference but I was expecting them to be identical. Searching further I can see that the swap cost is very slightly different.

Why should this be the case? I thought everything should have been calculated on historical data?

Many thanks,

Ed

 
There is the discussion thread which is related to this subject (MT5):
https://www.mql5.com/en/forum/448844
MT5 tester bug: same conditions, different results - What you need to know about the MT5 bug?
MT5 tester bug: same conditions, different results - What you need to know about the MT5 bug?
  • 2023.06.12
  • www.mql5.com
I found a few similar posts (questions) with no solution: when run the same backtest two times (one after another) , the mt5 tester sometimes gives different results. It's just mt5 tester that gives sometimes different results with the same input. There is no mt5 bug unless your prove it otherwise by providing all the information, parameters and code to reproduce it
 
Sergey Golubev #:
There is the discussion thread which is related to this subject (MT5):
https://www.mql5.com/en/forum/448844

Thanks for that. In my case it is just a difference in the swap cost. Everything else is identical. I couldn’t see where your threads address this?