Login Page - Create Account

Support Board


Date/Time: Thu, 06 Nov 2025 19:16:29 +0000



[Programming Help] - Lines always drawn above Text when drawn from ACSIL

View Count: 68

[2025-11-04 14:55:22]
skalaydzhiyski - Posts: 91
Hi SC,

I am trying to draw custom connecting lines and order fill text from ACSIL and things seem to work great apart from the small annoying fact that lines DRAWASTYLE_LINE are always drawn above DRAWSTYLE_TEXT, regardless of what order I call sc.UseToool in.

Initially I thought the lines were drawn as user drawn drawings but is not the case (even after manually disabling AddAsUserDrawnDrawing I still get the line to be drawn above the text drawings).

Only after I set AddAsUserDrawnDrawing to true for the text drawings do I get the right precedence and only then the text is drawn over the lines.

I don't want to allow the users to modify the drawings though, so any advise on how to get around the above problem is welcome.

P.S.
It is not an important issue I know, so I will not be offended if you ignore me :D

All the best,
Spas
[2025-11-04 16:32:08]
ForgivingComputers.com - Posts: 1154
Using Drawing Tools From an Advanced Custom Study: s_UseTool::DrawUnderneathMainGraph
Date Time Of Last Edit: 2025-11-04 16:32:59
[2025-11-04 16:34:12]
skalaydzhiyski - Posts: 91
Hi, thank you, but that is not whta I was asking about, I was asking about drawing text with ACSIL under a line drawn with ACSIL, the main price graph has nothing to do with it unfortunately :(
[2025-11-05 03:54:05]
Sierra_Chart Engineering - Posts: 21324
apart from the small annoying fact that lines DRAWASTYLE_LINE are always drawn above DRAWSTYLE_TEXT,
Make sure the drawings are not User Drawn Chart Drawings. And make sure that the horizontal position is set the same between them. Either by Bar index or by an actual Date-Time.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2025-11-05 15:03:15]
skalaydzhiyski - Posts: 91
Hi SCE, thanks for coming back to me, Both my drawings are using bar index (although different) and both drawings have AddAsUserDrawnDrawing disabled. The line is basically start from a -> c, the text drawing is b (between a and c) and at the point they cross the line drawing always appears above the text drawing even though I am using completely separate s_UseTool structs and the text drawing is done after the line drawing (i.e. the call to sc.UseTool for the line happens before the text drawing's call to sc.UseTool)...

If, on the other hand, I make the text drawing to be user drawn, then the text appears on top of the line..

tool.AddAsUserDrawnDrawing = 0;

This is how I disable user drawn mode. I tried with using false instead of 0, but no effect.

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

Login

Login Page - Create Account