Support Board
Date/Time: Fri, 14 Mar 2025 19:04:14 +0000
[Programming Help] - Adding an abc text box with ACSIL populated via a study. Not a volatile study text box.
View Count: 574
[2022-06-29 10:55:46] |
User92573 - Posts: 548 |
Dear Support Is the any way at all of using ACSIL right click study menu's to create an actual "Sierra abc text box" at XY coordinates which is then populated via the study. I do not want to create a volatile study text box with s_UseTool Tool as it is study dependent etc, as clearly stated in "https://www.sierrachart.com/index.php?page=doc/ACSILDrawingTools.html". It has to be a Sierra Non-Static text box just as if "abc" was selected from a control bar which moves when the chart is scrolled and remains when the chart, chartbook, or Sierra is closed. Many thanks. |
[2022-06-29 11:22:11] |
User907968 - Posts: 838 |
You can still use s_UseTool in the study that creates/populates the drawing/text. To fulfil the 'remains when the chart, chartbook, or Sierra is closed' criteria, set these flags: AddAsUserDrawnDrawing AllowSaveToChartbook LockDrawing (to prevent accidentally moving/deleting) Date Time Of Last Edit: 2022-06-29 11:22:31
|
[2022-06-29 13:58:47] |
User92573 - Posts: 548 |
Thank you for the above. Tool.AddAsUserDrawnDrawing = 1; Tool.AllowSaveToChartbook = 1; I've added and the text box on the chart remains after closing/refreshing which is great however the text-box is still locked at the XY coordinates. So, when scrolling it remains at it's XY position not relative to bar. Any thoughts? Many thanks |
[2022-06-29 14:14:20] |
JohnR - User831573 - Posts: 319 |
I'm guessing you are using relative values to place the text. Try using either a specific BarNum or DateTime parameters. To use a value relative to the left side of the chart for BeginDateTime rather than an absolute Date Time value, specify an integer value from 1 to 150. Where 1 represents the left side of the chart window and where 150 represents the right side of the chart window, not including the Values Scale on the right side of the chart. Hope this helps. JohnR |
[2022-06-29 15:35:53] |
User92573 - Posts: 548 |
Hi JohnR Yes, pretty much hit the nail on the head. I hadn't set Tool.BeginIndex. Removed all the other code as it was pretty straightforward in the end. Thank you so much for taken the time to help. Date Time Of Last Edit: 2022-06-29 15:57:37
|
To post a message in this thread, you need to log in with your Sierra Chart account: