Skip to content

CustomSymbol.VolumeInUnitsMax

property · CustomSymbol · cAlgo.API Since 5.3

DesktopCLICloud

Gets / sets the maximum units value.

Environment behaviour

CLI — not supported. Available to plugins only, and plugins cannot run in the CLI.

Cloud — not supported. Available to plugins only, and plugins cannot run in the cloud.

Definition

double VolumeInUnitsMax {get; set;}
customSymbol.VolumeInUnitsMax: float

Returns double

Examples

var customSymbol = CustomSymbols.Add("MYEURUSD", Symbols.GetSymbol("EURUSD"));
customSymbol.VolumeInUnitsMax = 10000000;
Print("Maximum volume: {0} units", customSymbol.VolumeInUnitsMax);
customSymbol = api.CustomSymbols.Add("MYEURUSD", api.Symbols.GetSymbol("EURUSD"))
customSymbol.VolumeInUnitsMax = 10000000
api.Print(f"Maximum volume: {customSymbol.VolumeInUnitsMax} units")