NewOrderDialog.StopLossTriggerMethod
property · NewOrderDialog · cAlgo.API Since 5.2
DesktopCLICloud
Gets or sets Trigger method for order StopLoss
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 StopTriggerMethod? StopLossTriggerMethod {get; set;}
newOrderDialog.StopLossTriggerMethod: StopTriggerMethod | None
Returns StopTriggerMethod?
Examples
var newOrderDialog = new NewOrderDialog { SymbolName = SymbolName, StopLossPips = 20, StopLossTriggerMethod = StopTriggerMethod.Opposite };
newOrderDialog.ShowDialog();
newOrderDialog = NewOrderDialog()
newOrderDialog.SymbolName = api.SymbolName
newOrderDialog.StopLossPips = 20
newOrderDialog.StopLossTriggerMethod = StopTriggerMethod.Opposite
newOrderDialog.ShowDialog()