Skip to content

CustomSymbol.LotSize

property · CustomSymbol · cAlgo.API Since 5.3

DesktopCLICloud

Gets / sets the lot size.

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

long LotSize {get; set;}
customSymbol.LotSize: int

Returns long

Examples

var customSymbol = CustomSymbols.Add("MYEURUSD", Symbols.GetSymbol("EURUSD"));
customSymbol.LotSize = 100000;
Print("Lot size: {0}", customSymbol.LotSize);
customSymbol = api.CustomSymbols.Add("MYEURUSD", api.Symbols.GetSymbol("EURUSD"))
customSymbol.LotSize = 100000
api.Print(f"Lot size: {customSymbol.LotSize}")