Skip to content

CustomBars.IsLoaded

property · CustomBars · cAlgo.API Since 5.3

DesktopCLICloud

Gets IsLoaded status, If true it means custom bars is being used and can't be removed.

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

bool IsLoaded {get;}
customBars.IsLoaded: bool

Returns bool

Examples

var customTimeFrame = TimeFrameManager.Custom.Add("My Custom TF");
var symbol = Symbols.GetSymbol("EURUSD");
var customBars = customTimeFrame.AddBars(symbol);
if (!customBars.IsLoaded)
    customTimeFrame.RemoveBars(symbol);
customTimeFrame = api.TimeFrameManager.Custom.Add("My Custom TF")
symbol = api.Symbols.GetSymbol("EURUSD")
customBars = customTimeFrame.AddBars(symbol)
if not customBars.IsLoaded:
    customTimeFrame.RemoveBars(symbol)