Login Page - Create Account

Support Board


Date/Time: Fri, 03 May 2024 22:00:02 +0000



Drawing persistent line from last visible bar to edge

View Count: 582

[2020-04-12 09:30:11]
ACWalker - Posts: 6
Hello,

I am trying to draw risk/reward levels in the fill space between the last bar drawn and the edge of the chart.
I would like this line to persistently display when scrolling through the chart, even through historic data.

At the moment, I am using the subgraph drawstyle DRAWSTYLE_LINE_AT_LAST_BAR_TO_EDGE and setting the value once to the lastVisibleBar.
Unfortunately, this way the line is only visible when you are scrolled to this bar.

Currently, a solution I can think of is constantly setting the value to the index of the last visible bar and, but I don't know if this is the proper/efficient way to do this.
Is there a better or standard way that this can be done?

Thanks,

Alex
Date Time Of Last Edit: 2020-04-12 09:39:09
[2020-04-13 06:59:42]
Sierra Chart Engineering - Posts: 104368
The only proper way to do this, is to fill in all elements of the Subgraph array of the study with the value that you want.
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
[2020-04-13 07:13:59]
Sierra Chart Engineering - Posts: 104368
Actually there is a more efficient way to do this. Have a look at using this particular Subgraph Draw Style:
Chart Studies: Line at Last Bar to Left Side (ACSIL: DRAWSTYLE_LINE_AT_LAST_BAR_TO_LEFT_SIDE)

Now this is not exactly what you are looking for, but this is really the only Draw Style available which is always going to be visible no matter where the chart is scrolled to.
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
Date Time Of Last Edit: 2020-04-13 07:15:05
[2020-04-13 07:18:29]
Sierra Chart Engineering - Posts: 104368
Disregard what we said at post #3. This is not really the right Draw Style to use. Since it uses only the value at the last visible bar. We will need to add a new Draw Style to accomplish what you need. We will do that.
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
Date Time Of Last Edit: 2020-04-13 07:21:33

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

Login

Login Page - Create Account