Skip to content

CustomBars.Symbol

property · CustomBars · cAlgo.API Since 5.3

DesktopCLICloud

Gets symbol of custom bars.

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

Symbol Symbol {get;}
customBars.Symbol: Symbol

Returns Symbol

Examples

var customBars = TimeFrameManager.Custom.Add("My Custom TF").AddBars(Symbols.GetSymbol("EURUSD"));
Print("Custom bars symbol: {0}", customBars.Symbol.Name);
customBars = api.TimeFrameManager.Custom.Add("My Custom TF").AddBars(api.Symbols.GetSymbol("EURUSD"))
api.Print(f"Custom bars symbol: {customBars.Symbol.Name}")