NewOrderDialog.HasTrailingStop
property · NewOrderDialog · cAlgo.API Since 5.2
DesktopCLICloud
Gets or sets the HasTrailingStop.
Environment behaviour
CLI — not supported. No dialog can be shown in the CLI: ShowDialog returns without showing anything and the order settings are only stored.
Cloud — not supported. No dialog can be shown in the cloud: ShowDialog returns without showing anything and the order settings are only stored.
Definition
public bool HasTrailingStop {get; set;}
newOrderDialog.HasTrailingStop: bool
Returns bool
Examples
var newOrderDialog = new NewOrderDialog { SymbolName = SymbolName, StopLossPips = 25, HasTrailingStop = true };
newOrderDialog.ShowDialog();
newOrderDialog = NewOrderDialog()
newOrderDialog.SymbolName = api.SymbolName
newOrderDialog.StopLossPips = 25
newOrderDialog.HasTrailingStop = True
newOrderDialog.ShowDialog()