public method TradeDeskAut.ChangeEntryOrderStopLimitELS, ChangeEntryOrderStopLimitELSAsync
Brief
Changes either a secondary stop or limit order associated with the entry order in ELS order group. Allows to choose the kind of stop/limit orders.
Declaration | ||||
|
||||
|
||||
|
||||
|
Parameters | |||||||||||||
sOrderID |
The identifier of the entry order. |
||||||||||||
dSLRate |
The rate or the offset in pips for the secondary stop or limit order.
The interpretation of the parameter depends on the value of the For a secondary stop order, the distance between the specified stop level and the primary entry order rate must be greater than the sum of the minimal conditional distance and the current spread. For a secondary limit order, the distance between the specified limit level and the primary entry order rate must be greater than the minimal conditional distance. You can retrieve the value of the minimal conditional distance
using methods of |
||||||||||||
iSLType |
The type of the secondary stop or limit order.
The value defines interpretation of
For example, to set the secondary limit order, specify in this parameter
|
||||||||||||
iTrailMinMove |
Controls the trailing mode for the secondary stop or limit order. In case the secondary stop/limit order must not be trailing, specify 0 in this parameter. In case the secondary stop/limit order must be trailing with a dynamic step, specify 1 in this parameter. In case the secondary stop/limit order must be trailing with a fixed step, specify the size in pips of
the market movement after which the order must be moved following the market.
The value must be from the minimum to the maximum allowed value defined on the server. To check the values, use the methods of the
Note that trailing orders can be not available on the server.
To check whether trailing orders with a dynamic step are available, use the
|
||||||||||||
psOrderId / psRequestId |
[output] Returns the identifier of the secondary stop or limit order. |
Details
The ChangeEntryOrderStopLimitELSAsync
method is implemented for asynchronous execution.
The last output parameter will return RequestID, instead of OrderID (see declaration above).
An event with this RequestID will confirm that command has been executed.
The ChangeEntryOrderStopLimitELS
and ChangeEntryOrderStopLimitELSAsync
methods are defined in the TradeDeskAut
class.