NewOrderDialog.OrderType
property · NewOrderDialog · cAlgo.API Since 5.2
DesktopCLICloud
Gets or sets the OrderType.
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 OrderType OrderType {get; set;}
newOrderDialog.OrderType: OrderType
Returns OrderType
Examples
var newOrderDialog = new NewOrderDialog { SymbolName = SymbolName, OrderType = OrderType.Stop, TargetPrice = Symbol.Ask + 20 * Symbol.PipSize };
newOrderDialog.ShowDialog();
newOrderDialog = NewOrderDialog()
newOrderDialog.SymbolName = api.SymbolName
newOrderDialog.OrderType = OrderType.Stop
newOrderDialog.TargetPrice = api.Symbol.Ask + 20 * api.Symbol.PipSize
newOrderDialog.ShowDialog()