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() void OnTick()
{ {
start(); start();
if (IsTesting()) OnTimer();
} }
int preinit() int preinit()
@@ -94,9 +95,6 @@ bool IsDemo()
bool IsTesting() bool IsTesting()
{ {
bool isTesting = MQLInfoInteger(MQL_TESTER); bool isTesting = MQLInfoInteger(MQL_TESTER);
#ifdef __DEBUG_LOG__
PrintFormat("IsTesting: %s", isTesting ? "true" : "false");
#endif
return isTesting; return isTesting;
} }
@@ -147,6 +145,7 @@ int init()
#ifdef __DEBUG_LOG__ #ifdef __DEBUG_LOG__
PrintFormat("Expert Handle = %d", ExpertHandle); PrintFormat("Expert Handle = %d", ExpertHandle);
PrintFormat("IsTesting: %s", IsTesting() ? "true" : "false");
#endif #endif
//--- Backtesting mode //--- Backtesting mode