CloseMultiPositions
Posted by Mohammad Rahhal, Last modified by Diana Alkouni on 02 September 2020 10:04 AM
|
|||||||
Syntax
Description This function is used to close multiple market orders at once.To get a result from the server, you have to consume OnOrderTrade event (when auto broker off) or OnPositionTrade event (when auto broker on). Parameters
Return value Returns true if successful otherwise, returns false. In order to get an error, call GetLastError() function. Remark The number of the PositionIDs and the number of amounts should be identical. And with the same order that you want to close for those PositionIDs. Sample
See Also
| |||||||
|
Comments (0)