Issue #88: Activate execute commands in tester mode (MT5)

This commit is contained in:
vdemydiuk
2018-02-19 19:21:29 +02:00
parent 5c6751de9b
commit be8a17c0fd
2 changed files with 2 additions and 3 deletions
BIN
View File
Binary file not shown.
+2 -3
View File
@@ -74,6 +74,7 @@ void OnDeinit(const int reason)
void OnTick()
{
start();
if (IsTesting()) OnTimer();
}
int preinit()
@@ -94,9 +95,6 @@ bool IsDemo()
bool IsTesting()
{
bool isTesting = MQLInfoInteger(MQL_TESTER);
#ifdef __DEBUG_LOG__
PrintFormat("IsTesting: %s", isTesting ? "true" : "false");
#endif
return isTesting;
}
@@ -147,6 +145,7 @@ int init()
#ifdef __DEBUG_LOG__
PrintFormat("Expert Handle = %d", ExpertHandle);
PrintFormat("IsTesting: %s", IsTesting() ? "true" : "false");
#endif
//--- Backtesting mode