ChartContainersAddedEventArgs
class cAlgo.API
DesktopCLICloud
Provides data for the containers added event.
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 class ChartContainersAddedEventArgs
Namespace: cAlgo.API · Group: EventArgs
Examples
protected override void OnStart()
{
ChartManager.ChartContainers.ContainersAdded += OnChartContainersAdded;
}
private void OnChartContainersAdded(ChartContainersAddedEventArgs args)
{
Print("{0} chart container(s) added, total: {1}", args.AddedChartContainers.Length, ChartManager.ChartContainers.Count);
}
def on_start(self):
api.ChartManager.ChartContainers.ContainersAdded += self.on_chart_containers_added
def on_chart_containers_added(self, args):
api.Print(f"{len(args.AddedChartContainers)} chart container(s) added, total: {api.ChartManager.ChartContainers.Count}")
Properties
| Name | Description |
|---|---|
AddedChartContainersDesktopCLICloudChartContainer[] | Returns the added containers. |