Login Page - Create Account

Support Board


Date/Time: Fri, 29 Mar 2024 13:07:45 +0000



Vertical Line X Bars from Prior Bar

View Count: 946

[2018-07-17 19:35:38]
infpz - Posts: 826
Possible to draw a vertical line that is always 60 bars behind the current bar?
[2018-07-18 17:17:26]
Sierra Chart Engineering - Posts: 104368
Yes but probably would require custom programming.
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
[2018-07-18 19:52:54]
Xfanman1 - Posts: 320
Couldn't they use the Color Background Based on Alert Condition study, use the Vertical Bar and a formula that referenced a True condition 60 bars ahead? Set it to YES = Automatically Clear from Before "Number of Bars to Calculate, and Number of Bars to Calculate back 60 (59 if you're including the current bar).

I just did a quick test that worked fine when refreshed but wouldn't refresh when a new bar formed for some reason. I'm sure if you play with it or Engineering jumps back in they could tell you how to fix it.

--
Scott
image60 bar look back.PNG / V - Attached On 2018-07-18 19:52:42 UTC - Size: 87.74 KB - 302 views
[2018-07-18 23:09:14]
Sierra Chart Engineering - Posts: 104368
What is the formula you are using?
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
[2018-07-18 23:49:12]
Xfanman1 - Posts: 320
=ID0.SG23[60]<>ID0.SG23[59]

It will paint the bar correctly 60 bars back but won’t recalculate automatically on the next bar. The painted bar goes away when price advances one bar forward as it should but a new bar vertical line won’t paint unless I manually refresh the study.


Scott
Date Time Of Last Edit: 2018-07-19 12:20:41
[2018-07-20 14:47:20]
Xfanman1 - Posts: 320
What is the formula you are using?

For my own edification as well as the original poster's problem, can you offer any input on what's wrong with the formula above or the study that would prevent the original poster from accomplishing what they are looking for? I've coded plenty of Simple Alerts but haven't used the forward looking bar counts before.

Thanks much!

--
Scott

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

Login

Login Page - Create Account