Login Page - Create Account

Support Board


Date/Time: Fri, 29 Mar 2024 08:33:41 +0000



Text with ACSIL

View Count: 1527

[2014-05-04 19:19:45]
QnReally - Posts: 181
Is there a way to draw some text using ACSIL in the fill space but towards the top of the window and keep it there stationary as the new bars are painted in the chart?

I tried to use Tool.UseRelativeValue = 1 with DRAWING_TEXT and DRAWING_STATIONARY_TEXT tools. The text is moving left to the last bar and not staying in the fill space. I used BeginDateTime = 120 and BeginValue = 90.

However, if I use Tool.UseRelativeValue = 0 and Tool.BeginDateTime = -5 (or some other larger negative number), the text stays in the fill space but I would have to figure out what the appropriate Tool.BeginValue should be based on price scale to keep the text stationary relative to the window height. I am not sure how to arrive at the correct BeginValue for all the different scale types (Automatic, Constant Range, User Specified Range). Ideas?

Thanks.
[2014-05-04 20:45:56]
Sierra Chart Engineering - Posts: 104368
We have tested this now with the Countdown Timer study. We could position the text at the top of the chart window and keep it stationary. We do not see a problem with this.

Test this with the Countdown Timer study and look at the code to see how this works.

There is no need to set the BeginDateTime to a negative value. And you should always set UseRelativeValue = 1 , for relative vertical positioning from the bottom of the chart window.
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, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2014-05-05 00:00:43]
QnReally - Posts: 181
Thanks for that. I see how that is working now. I do have one other question. I looked through the Countdown Timer study as carefully as I could but I still can't figure out how the study remembers the location of the Countdown Timer text when I quit Sierra and restart it. It appears that the User Drawn tools that are created from ACSIL studies do survive SC restarts. I wasn't aware of that.

Can you please help with any input you may have? Thanks.

[2014-05-05 03:57:03]
Sierra Chart Engineering - Posts: 104368
There is special handling with the Countdown Timer study. That particular custom study drawing is saved to the Chartbook. Other ACS added drawings are not.


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, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2014-05-05 16:08:06]
QnReally - Posts: 181
I assume that the special handling you mentioned is currently not exposed via ACSIL. As you know, the allowed values for sc.BeginDateTime are 1 through 150 when using relative add method. Would you be willing to consider letting the study write text in the fill space directly when using the relative method rather than in a two step process where you first draw the text to the left of the fill space as a user drawn text from the study and then you move it to the fill space manually?

I believe this would be a good design change to simplify adding tools in the fill space with the relative method. For now, I do have a workaround which is to move the user drawn text manually when I restart SC. So, if this request creates too much development work for you, I would be okay with the workaround I currently have.

Thanks for your support.
[2014-05-05 16:46:13]
Sierra Chart Engineering - Posts: 104368
Relative positioning will allow you to put text in the fill space. We have tested this now and do not see a problem. Just test it with the Countdown Timer study.
There is no need to set the Display in Fill Space input to Yes.

You definitely do not have to do this:
two step process where you first draw the text to the left of the fill space as a user drawn text from the study and then you move it to the fill space manually?

This would make no sense.
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, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2014-05-05 17:00:31]
QnReally - Posts: 181
Okay, this is my mistake. I was thinking about my testing prior to opening this support ticket. Thanks.

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

Login

Login Page - Create Account