mirror of
https://github.com/vdemydiuk/mtapi.git
synced 2026-08-16 12:18:09 +00:00
Added PositionClose command to MT5 Api
This commit is contained in:
@@ -227,6 +227,14 @@ int executeCommand()
|
||||
sendBooleanResponse(ExpertHandle, retVal);
|
||||
}
|
||||
break;
|
||||
case 64: //PositionCloseBy
|
||||
{
|
||||
ulong ticket;
|
||||
getULongValue(ExpertHandle, 0, ticket);
|
||||
|
||||
sendBooleanResponse(ExpertHandle, PositionClose(ticket));
|
||||
}
|
||||
break;
|
||||
|
||||
case 2: // OrderCalcMargin
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user