Good point, I missed that wrong date and this might cause this 013 bug.

I'm currently testing my script under Windows and the log shows a normal date range for the LookBack period in TRADEMODE without this 013 error, so the actual cause might be a wrong date handling issue by Wine. It's frustrating, because I prefer Linux over Windows as a future VPS environment.

Quote
Lookback 2000 bars, 2022-04-08..2022-04-12

[990: Fri 22-04-08 16:30] (1.08738)
Start of pre-fetch at Bar #990...
End of pre-fetch.
[991: Fri 22-04-08 16:31] (1.08739)


I don't want to interrupt the live demo test during the week, but I will restart both Zorro and MT4 this weekend to see if it's able to close paper trades next week.

Last edited by Grant; 04/13/22 16:37.