NewOrderDialog.Volume
property · NewOrderDialog · cAlgo.API Since 5.2
DesktopCLICloud
Gets or sets the Volume.
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? Volume {get; set;}
newOrderDialog.Volume: float | None
Returns double?
Examples
var newOrderDialog = new NewOrderDialog { SymbolName = SymbolName, Volume = Symbol.QuantityToVolumeInUnits(0.1) };
newOrderDialog.ShowDialog();
newOrderDialog = NewOrderDialog()
newOrderDialog.SymbolName = api.SymbolName
newOrderDialog.Volume = api.Symbol.QuantityToVolumeInUnits(0.1)
newOrderDialog.ShowDialog()