Added PositionClose command to MT5 Api

This commit is contained in:
Wesley Teixeira
2016-09-13 09:03:55 -04:00
parent a11604503a
commit 9d48f74b29
3 changed files with 21 additions and 1 deletions
+8
View File
@@ -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
{