NewOrderDialog.TargetPrice
property · NewOrderDialog · cAlgo.API Since 5.2
DesktopCLICloud
Gets or sets the TargetPrice.
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 double? TargetPrice {get; set;}
newOrderDialog.TargetPrice: float | None
Returns double?
Examples
var newOrderDialog = new NewOrderDialog { SymbolName = SymbolName, TradeType = TradeType.Buy, OrderType = OrderType.Limit };
newOrderDialog.TargetPrice = Symbol.Bid - 15 * Symbol.PipSize;
newOrderDialog.ShowDialog();
newOrderDialog = NewOrderDialog()
newOrderDialog.SymbolName = api.SymbolName
newOrderDialog.TradeType = TradeType.Buy
newOrderDialog.OrderType = OrderType.Limit
newOrderDialog.TargetPrice = api.Symbol.Bid - 15 * api.Symbol.PipSize
newOrderDialog.ShowDialog()