mirror of
https://github.com/vdemydiuk/mtapi.git
synced 2026-07-28 02:57:56 +00:00
Fixed Mql Script
This commit is contained in:
+9
-7
@@ -227,12 +227,14 @@ int executeCommand()
|
||||
sendBooleanResponse(ExpertHandle, retVal);
|
||||
}
|
||||
break;
|
||||
case 64: //PositionCloseBy
|
||||
{
|
||||
ulong ticket;
|
||||
getULongValue(ExpertHandle, 0, ticket);
|
||||
|
||||
sendBooleanResponse(ExpertHandle, PositionClose(ticket));
|
||||
case 64: //PositionClose
|
||||
{
|
||||
int ticket;
|
||||
CTrade trade;
|
||||
|
||||
getIntValue(ExpertHandle, 0, ticket);
|
||||
|
||||
sendBooleanResponse(ExpertHandle, trade.PositionClose(ticket));
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -1734,4 +1736,4 @@ bool OrderCloseAll()
|
||||
if (trade.PositionClose(PositionGetSymbol(i))) i--;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user