In some order methods there is a parameter for enabling a built-in trailing stop (e.g. the PlaceStopLimitOrder
overload with a boolean flag). When hasTrailingStop=true
, cTrader will automatically trail the stop loss as price moves. This feature was added in recent API versions. (Not shown in the excerpts above, but available in the PlaceStopLimitOrder
signature with hasTrailingStop
.)