Login Page - Create Account

Support Board


Date/Time: Sun, 08 Nov 2026 00:20:54 +0000



[perf] ACSIL Volume Profile paint: skip thin borders, skip duplicate Y

View Count: 21

[2026-11-07 22:23:26]
User719512 - Posts: 530
Hi Sierra Chart Engineering,

Posting this here for your evaluation. If these changes make sense for the product, they would benefit all Sierra Chart users.

I have been working on paint cost for a custom Volume Profile, specifically what the histogram looks like once the price axis is compressed.

The calculation can stay on a 1-tick ladder. POC, value area, and bucket volumes do not have to change. This is only how those ticks are drawn.

sc.RegionValueToYPixelCoordinate is many-to-one as soon as a tick is smaller than a pixel. I pointed a helper at 7400.00 on a 0.25 tick chart and got yy=923 for 7399.50 through 7400.00: three prices, one pixel. Draw all three and two fills cannot show.

Two things that helped:

1. Skip borders when the volume rectangle is thinner than about 5 px. On a 1-3 px row a 1 px border is the row. Stack those and the fill is gone; you just see border color.

2. Walk buckets longest width first, remember which Y pixels are already filled, and skip shorter bars that map to the same RegionValueToYPixelCoordinate. The only bar you can see at that Y is the longest one.

Notes with screenshots:

https://starpenta.com/volume-profile-design

Same writeup is attached as a PDF.

This ships in the StarPenta Volume Profile if anyone wants to poke at the histogram:

https://starpenta.com/volume-profile
attachmentVolume-Profile-Design-and-Optimizations.pdf - Attached On 2026-11-07 22:23:12 UTC - Size: 225.05 KB - 3 views

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

Login

Login Page - Create Account