CustomSymbol.Id
property · CustomSymbol · cAlgo.API Since 5.3
DesktopCLICloud
Gets the custom symbol ID.
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 Id {get;}
customSymbol.Id: int
Returns long
Examples
var customSymbol = CustomSymbols.Add("MYEURUSD", Symbols.GetSymbol("EURUSD"));
Print("Custom symbol {0} ID: {1}", customSymbol.Name, customSymbol.Id);
customSymbol = api.CustomSymbols.Add("MYEURUSD", api.Symbols.GetSymbol("EURUSD"))
api.Print(f"Custom symbol {customSymbol.Name} ID: {customSymbol.Id}")