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