Skip to content

CustomTimeFrame.RemoveAllUnloadedBars

method · CustomTimeFrame · cAlgo.API Since 5.3

DesktopCLICloud

Removes all existing unloaded custom bars that aren't being used.

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

void RemoveAllUnloadedBars()
customTimeFrame.RemoveAllUnloadedBars() -> None

Examples

var customTimeFrame = TimeFrameManager.Custom.Get("My Custom TF");
customTimeFrame?.RemoveAllUnloadedBars();
customTimeFrame = api.TimeFrameManager.Custom.Get("My Custom TF")
if customTimeFrame is not None:
    customTimeFrame.RemoveAllUnloadedBars()