Login Page - Create Account

Support Board


Date/Time: Wed, 03 Dec 2025 18:03:46 +0000



[Programming Help] - How to Align Tools to the Right Side of the Chart Window in a Custom Study

View Count: 16

[2025-12-03 15:17:31]
User501644 - Posts: 1
I am developing several ACSIL custom studies and I’m having difficulty aligning chart drawing tools to the right side of the screen (right edge of the chart window), rather than aligning them with the last bar or a specific date-time value.

I have tried various approaches—including using UseRelativeVerticalValues, BeginDateTime, UseTool.DrawAboveMainPriceGraph, and manually offsetting using sc.IndexOfLastVisibleBar—but the tool still anchors itself to the bar’s date-time instead of the actual right-side screen boundary.

Could you please clarify:

Is there an official or recommended method in ACSIL to position a tool (Text, TypeText, Ray, PriceLabels, etc.) directly on the rightmost edge of the chart?

Is there an API equivalent to “screen-relative horizontal placement” for tools, similar to how chart values are drawn via the Chart Values window?

If not, is there an internal function or example I can reference that achieves this behavior (like what the built-in Visible Range Profile, Numbers Bars Right-Edge, or DOM Levels tools use)?

Any guidance, internal flags, or sample code would be greatly appreciated, as several of my custom studies rely on being able to dock labels or graphics to the right-side display area.

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

Login

Login Page - Create Account