Skip to content

ChartScrollEventArgs.BottomYDelta

property · ChartScrollEventArgs · cAlgo.API

DesktopCLICloud

Gets the lowest value of the bars delta.

Environment behaviour

Cloud — not supported. Never raised in the cloud: the events that pass it never fire there (ChartArea.ScrollChanged).

Definition

public double BottomYDelta {get;}
chartScrollEventArgs.BottomYDelta: float

Returns double — The bottom y delta.

Examples

protected override void OnStart()
{
    Chart.ScrollChanged += OnChartScrollChanged;
}

private void OnChartScrollChanged(ChartScrollEventArgs args)
{
    Print("Bottom Y changed by {0}, new bottom Y: {1}", args.BottomYDelta, args.ChartArea.BottomY);
}
def on_start(self):
    api.Chart.ScrollChanged += self.on_chart_scroll_changed

def on_chart_scroll_changed(self, args):
    api.Print(f"Bottom Y changed by {args.BottomYDelta}, new bottom Y: {args.ChartArea.BottomY}")