Skip to content

ChartManager.ActiveChartContainer

property · ChartManager · cAlgo.API Since 5.2

DesktopCLICloud

Returns current active chart container if any otherwise null.

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

ChartContainer ActiveChartContainer {get;}
api.ChartManager.ActiveChartContainer: ChartContainer

Returns ChartContainer

Examples

var chartContainer = ChartManager.ActiveChartContainer;
if (chartContainer != null)
    Print("Active container {0} has {1} frames", chartContainer.Id, chartContainer.Count);
chartContainer = api.ChartManager.ActiveChartContainer
if chartContainer is not None:
    api.Print(f"Active container {chartContainer.Id} has {chartContainer.Count} frames")