vdemydiuk / mtapi

MetaTrader API (terminal bridge)
http://mtapi4.net/
MIT License
524 stars 283 forks source link

Tester Mode MT5: Why is not currently activated? #88

Closed KptKuck closed 6 years ago

KptKuck commented 6 years ago

In the current version 1.4 MtApi5.mq5 the Tester Mode is not active. I know that in the tester the function OnTimer () does not work. But by a small change, he actually works well. Or are there any difficulties with this type of implementation?

void OnTick() { start(); if (IsTesting()) OnTimer(); }

vdemydiuk commented 6 years ago

I need to investigate this issue, I will answer on it later.

vdemydiuk commented 6 years ago

Yes, your fix must work correct for backtesting. MT4 expert has the same functionality. I have forgotten to add it into MT5 expert. I will fix it in 1.0.16.