ChartScrollEventArgs.ChartArea
property · ChartScrollEventArgs · cAlgo.API
DesktopCLICloud
Gets the chart area.
Environment behaviour
Cloud — not supported. Never raised in the cloud: the events that pass it never fire there (ChartArea.ScrollChanged).
Definition
public ChartArea ChartArea {get;}
chartScrollEventArgs.ChartArea: ChartArea
Returns ChartArea
Examples
protected override void OnStart()
{
Chart.ScrollChanged += OnChartScrollChanged;
}
private void OnChartScrollChanged(ChartScrollEventArgs args)
{
Print("Visible price range: {0} - {1}", args.ChartArea.BottomY, args.ChartArea.TopY);
}
def on_start(self):
api.Chart.ScrollChanged += self.on_chart_scroll_changed
def on_chart_scroll_changed(self, args):
api.Print(f"Visible price range: {args.ChartArea.BottomY} - {args.ChartArea.TopY}")