CustomSymbol.RemoveAllUnloadedBars
method · CustomSymbol · 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()
customSymbol.RemoveAllUnloadedBars() -> None
Examples
var customSymbol = CustomSymbols.Get("MYEURUSD");
customSymbol?.RemoveAllUnloadedBars();
customSymbol = api.CustomSymbols.Get("MYEURUSD")
if customSymbol is not None:
customSymbol.RemoveAllUnloadedBars()