CustomSymbol.VolumeInUnitsStep
property · CustomSymbol · cAlgo.API Since 5.3
DesktopCLICloud
Gets / sets the step volume in units.
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 VolumeInUnitsStep {get; set;}
customSymbol.VolumeInUnitsStep: float
Returns double
Examples
var customSymbol = CustomSymbols.Add("MYEURUSD", Symbols.GetSymbol("EURUSD"));
customSymbol.VolumeInUnitsStep = 1000;
Print("Volume step: {0} units", customSymbol.VolumeInUnitsStep);
customSymbol = api.CustomSymbols.Add("MYEURUSD", api.Symbols.GetSymbol("EURUSD"))
customSymbol.VolumeInUnitsStep = 1000
api.Print(f"Volume step: {customSymbol.VolumeInUnitsStep} units")