Login Page - Create Account

Support Board


Date/Time: Fri, 29 Nov 2024 00:58:55 +0000



[Programming Help] - accessing left most bar currently being displayed in window

View Count: 333

[2023-03-14 03:55:15]
jomo88 - Posts: 47
Scrolling left and right changes which bars are being drawn...

I want to access the first bar (left most) in the window and redraw a bunch of acsil subgraphs starting from 0 at that bar.

Basically I want something like a percent change chart but it constantly re-anchors to the where ever left side of the window happens to be scrolled to. It will have to redraw every time a new scroll happens.
[2023-03-14 05:16:44]
User90125 - Posts: 715
Use sc.IndexOfFirstVisibleBar and/or sc.IndexOfLastVisibleBar:

ACSIL Interface Members - Variables and Arrays: sc.IndexOfFirstVisibleBar

ACSIL Interface Members - Variables and Arrays: sc.IndexOfLastVisibleBar

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

Login

Login Page - Create Account