ChartColorEventArgs.Chart
property · ChartColorEventArgs · cAlgo.API
DesktopCLICloud
Gets the chart.
Environment behaviour
Cloud — not supported. Never raised in the cloud: the events that pass it never fire there (Chart.ColorsChanged).
Definition
public Chart Chart {get;}
chartColorEventArgs.Chart: Chart
Returns Chart
Examples
protected override void OnStart()
{
Chart.ColorsChanged += OnChartColorsChanged;
}
private void OnChartColorsChanged(ChartColorEventArgs args)
{
Print("Colors changed on chart {0} {1}", args.Chart.SymbolName, args.Chart.TimeFrame);
}
def on_start(self):
api.Chart.ColorsChanged += self.on_chart_colors_changed
def on_chart_colors_changed(self, args):
api.Print(f"Colors changed on chart {args.Chart.SymbolName} {args.Chart.TimeFrame}")