Login Page - Create Account

Support Board


Date/Time: Thu, 14 May 2026 03:13:00 +0000



[Programming Help] - ACSIL way to SELECT MANY bars?

View Count: 23

[2026-05-13 20:55:07]
TopGunTrader - Posts: 304
Hi,

I've written many ACSIL and see tremendous value in COMBINING bars, profiles etc into various things but right click go 1 back or 5 etc is very time consuming.

I want some way of once selected it lets me drag over MANY bars and them my program does next step.

We've spent hours trying to do this ourselves and have given up. Here's current method.

Current method in v117:

The user chooses Split Profile: Merge Range from the right-click menu.
That arms range-select mode and turns on UpdateAlways.
The user left-clicks and holds on the first bar.
While dragging, the study reads sc.PointerHorzWindowCoord.
It maps that mouse X coordinate to the nearest visible bar by comparing against sc.BarIndexToXPixelCoordinate(barIndex).
The GDI draw function renders a gray selection box from RangeStartBar to RangeCurrentBar.
On left mouse release, it creates one MergeProfileGroup from min(start, end) to max(start, end).
It pushes a full undo snapshot before modifying MergeGroups.
So the selection method is:

Right-click menu arms range mode, then Excel-style left-click drag across bars using Sierra pointer X coordinate mapped to nearest visible bar.

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

Login

Login Page - Create Account