mirror of
https://github.com/vdemydiuk/mtapi.git
synced 2026-08-17 12:48:11 +00:00
Issue #143: Added function TesterStop [MT5]
This commit is contained in:
Binary file not shown.
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user