Skip to content

Commit

Permalink
Issue #88: Activate execute commands in tester mode (MT5)
Browse files Browse the repository at this point in the history
  • Loading branch information
vdemydiuk committed Feb 19, 2018
1 parent 5c6751d commit be8a17c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Binary file modified mq5/MtApi5.ex5
Binary file not shown.
5 changes: 2 additions & 3 deletions mq5/MtApi5.mq5
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ void OnDeinit(const int reason)
void OnTick()
{
start();
if (IsTesting()) OnTimer();
}

int preinit()
Expand All @@ -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;
}

Expand Down Expand Up @@ -147,6 +145,7 @@ int init()

#ifdef __DEBUG_LOG__
PrintFormat("Expert Handle = %d", ExpertHandle);
PrintFormat("IsTesting: %s", IsTesting() ? "true" : "false");
#endif

//--- Backtesting mode
Expand Down

0 comments on commit be8a17c

Please sign in to comment.