ChartScrollEventArgs.TopYDelta
property · ChartScrollEventArgs · cAlgo.API
DesktopCLICloud
Gets the highest 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 TopYDelta {get;}
chartScrollEventArgs.TopYDelta: float
Returns double — The top y delta.
Examples
protected override void OnStart()
{
Chart.ScrollChanged += OnChartScrollChanged;
}
private void OnChartScrollChanged(ChartScrollEventArgs args)
{
Print("Top Y changed by {0}, new top Y: {1}", args.TopYDelta, 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"Top Y changed by {args.TopYDelta}, new top Y: {args.ChartArea.TopY}")