mirror of
https://github.com/vdemydiuk/mtapi.git
synced 2026-08-22 07:08:16 +00:00
Fixed Mql Script
This commit is contained in:
+6
-4
@@ -227,12 +227,14 @@ int executeCommand()
|
||||
sendBooleanResponse(ExpertHandle, retVal);
|
||||
}
|
||||
break;
|
||||
case 64: //PositionCloseBy
|
||||
case 64: //PositionClose
|
||||
{
|
||||
ulong ticket;
|
||||
getULongValue(ExpertHandle, 0, ticket);
|
||||
int ticket;
|
||||
CTrade trade;
|
||||
|
||||
sendBooleanResponse(ExpertHandle, PositionClose(ticket));
|
||||
getIntValue(ExpertHandle, 0, ticket);
|
||||
|
||||
sendBooleanResponse(ExpertHandle, trade.PositionClose(ticket));
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user