Login Page - Create Account

Support Board


Date/Time: Sun, 01 Jun 2025 01:41:36 +0000



[User Discussion] - Replicate Algorithm used in Zoom in Tool with ACSIL

View Count: 74

[2025-05-04 14:29:05]
User346098 - Posts: 49
Current Behavior: When you zoom in repeatedly on the chart, Sierra Chart only remembers the very first zoom level. Pressing zoom-out always returns you to that initial view, even if you’ve performed multiple zoom-in steps.

Desired Behavior: Treat each zoom-in as a step in a history stack. On zoom-out, first return to the view you had immediately before your most recent zoom-in. Subsequent zoom-outs should step back through your zoom history one level at a time—just like an undo stack for zoom.

I want to implement this using ACSIL but I need to know the alogrithm/calculation done by Zoom in tool

I can use:
ACSIL Interface Members - Variables and Arrays: sc.ScrollToDateTime
but then I need to know by how many pixels to increase ACSIL Interface Members - Variables and Arrays: sc.ChartBarSpacing so the selected range of bars fits nicely


Thank you.

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account