mirror of
https://github.com/vdemydiuk/mtapi.git
synced 2026-07-27 18:47:55 +00:00
Issue #88: Activate execute commands in tester mode (MT5)
This commit is contained in:
Binary file not shown.
+2
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user