Issue #143: Added function TesterStop [MT5]

This commit is contained in:
vdemydiuk
2019-05-04 10:36:46 +03:00
parent 5f4ae3cd9e
commit ee81cfe012
6 changed files with 40 additions and 1 deletions
BIN
View File
Binary file not shown.
+21
View File
@@ -791,6 +791,9 @@ int executeCommand()
case 160: //PositionCloseAll
Execute_PositionCloseAll();
break;
case 161: //TesterStop
Execute_TesterStop();
break;
case 204: //TerminalInfoInteger
Execute_TerminalInfoInteger();
break;
@@ -6507,6 +6510,24 @@ void Execute_PositionCloseAll()
SEND_INT_RESPONSE(res)
}
void Execute_TesterStop()
{
if (!IsTesting())
{
Print("WARNING: function UnlockTicks can be used only for backtesting");
}
else
{
Print("TesterStop called.");
TesterStop();
}
if (!sendVoidResponse(ExpertHandle, _response_error))
{
PrintResponseError("TesterStop", _response_error);
}
}
void Execute_TerminalInfoInteger()
{
int propertyId;