Skip to content

NewOrderDialog.ShowDialog

method · NewOrderDialog · cAlgo.API Since 5.2

DesktopCLICloud

Shows the dialog.

Environment behaviour

CLI — not supported. No dialog is shown. Returns normally, no exception.

Cloud — not supported. No dialog is shown. Returns normally, no exception.

Definition

public void ShowDialog()
newOrderDialog.ShowDialog() -> None

Examples

var orderButton = new Button { Text = "New order" };
orderButton.Click += args => new NewOrderDialog { SymbolName = SymbolName, Volume = Symbol.QuantityToVolumeInUnits(0.01) }.ShowDialog();
Chart.AddControl(orderButton);
newOrderDialog = NewOrderDialog()
newOrderDialog.SymbolName = api.SymbolName
newOrderDialog.Volume = api.Symbol.QuantityToVolumeInUnits(0.01)
orderButton = Button()
orderButton.Text = "New order"
orderButton.Click += lambda args: newOrderDialog.ShowDialog()
api.Chart.AddControl(orderButton)