Skip to content

ChartContainersRemovedEventArgs.RemovedChartContainers

property · ChartContainersRemovedEventArgs · cAlgo.API

DesktopCLICloud

Returns the removed containers.

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

public ChartContainer[] RemovedChartContainers {get;}
chartContainersRemovedEventArgs.RemovedChartContainers: list[ChartContainer]

Returns ChartContainer[]

Examples

protected override void OnStart()
{
    ChartManager.ChartContainers.ContainersRemoved += OnChartContainersRemoved;
}

private void OnChartContainersRemoved(ChartContainersRemovedEventArgs args)
{
    foreach (var container in args.RemovedChartContainers)
        Print("Container {0} removed", container.Id);
}
def on_start(self):
    api.ChartManager.ChartContainers.ContainersRemoved += self.on_chart_containers_removed

def on_chart_containers_removed(self, args):
    for container in args.RemovedChartContainers:
        api.Print(f"Container {container.Id} removed")