mirror of
https://github.com/vdemydiuk/mtapi.git
synced 2026-08-21 14:48:25 +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()
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user