Issue #57: Added function PositionSelectByTicket into MQL code

This commit is contained in:
DW
2017-09-04 13:08:30 +03:00
parent 9800177b08
commit 4b48423c3f
2 changed files with 16 additions and 5 deletions
BIN
View File
Binary file not shown.
+11
View File
@@ -1729,6 +1729,10 @@ int executeCommand()
} }
break; break;
case 69: //PositionSelectByTicket
Execute_PositionSelectByTicket();
break;
default: default:
Print("Unknown command type = ", commandType); Print("Unknown command type = ", commandType);
sendVoidResponse(ExpertHandle); sendVoidResponse(ExpertHandle);
@@ -1738,6 +1742,13 @@ int executeCommand()
return (commandType); return (commandType);
} }
void Execute_PositionSelectByTicket()
{
ulong ticket;
getULongValue(ExpertHandle, 0, ticket);
sendBooleanResponse(ExpertHandle, PositionSelectByTicket(ticket));
}
void PrintParamError(string paramName) void PrintParamError(string paramName)
{ {
Print("[ERROR] parameter: ", paramName); Print("[ERROR] parameter: ", paramName);