mirror of
https://github.com/vdemydiuk/mtapi.git
synced 2026-08-23 15:48:10 +00:00
Issue #57: Added function PositionSelectByTicket into MQL code
This commit is contained in:
Binary file not shown.
@@ -1729,6 +1729,10 @@ int executeCommand()
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 69: //PositionSelectByTicket
|
||||||
|
Execute_PositionSelectByTicket();
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
Print("Unknown command type = ", commandType);
|
Print("Unknown command type = ", commandType);
|
||||||
sendVoidResponse(ExpertHandle);
|
sendVoidResponse(ExpertHandle);
|
||||||
@@ -1738,6 +1742,13 @@ int executeCommand()
|
|||||||
return (commandType);
|
return (commandType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Execute_PositionSelectByTicket()
|
||||||
|
{
|
||||||
|
ulong ticket;
|
||||||
|
getULongValue(ExpertHandle, 0, ticket);
|
||||||
|
sendBooleanResponse(ExpertHandle, PositionSelectByTicket(ticket));
|
||||||
|
}
|
||||||
|
|
||||||
void PrintParamError(string paramName)
|
void PrintParamError(string paramName)
|
||||||
{
|
{
|
||||||
Print("[ERROR] parameter: ", paramName);
|
Print("[ERROR] parameter: ", paramName);
|
||||||
|
|||||||
Reference in New Issue
Block a user