Login Page - Create Account

Support Board


Date/Time: Sun, 06 Jul 2025 14:53:47 +0000



Outside Bar

View Count: 759

[2019-03-26 16:57:35]
jaxscott - Posts: 57
I'm coloring bar based on alert condition on a previous bar, i.e. I'm testing if the current bar breaks the high/low of the previous bar if that previous bar is an Outside Bar.
Alert Condition for current bar is triggers is when the Outside Bar study triggers as "true" and some other conditions. I have used when OB Study > 0, but that isn't working. What does this study output when it becomes "true"?
[2019-03-26 20:04:36]
John - SC Support - Posts: 40745
When the Outside Bar study is true that Subgraph contains the value of the High of the bar, otherwise it is 0. So what you are doing should work.

Just to be sure, are you properly referencing the Outside Bar Subgraph using the form ID1.SG1, and if you are looking at the previous bar, are you referencing the Subgraph in the form ID1.SG1[-1]?

Refer to the following 2 sections in case you need them:
Study/Chart Alerts And Scanning: Referencing Study Subgraphs (Referencing Study Subgraphs)

Study/Chart Alerts And Scanning: Referencing Data Other Than on the Last Bar/Column In the Chart (Referencing Data Other than the Last Bar in the Chart)
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing

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

Login

Login Page - Create Account