Login Page - Create Account

Support Board


Date/Time: Thu, 28 Nov 2024 10:50:41 +0000



Display only first color bar signal

View Count: 333

[2023-05-15 17:41:57]
MPicciuto - Posts: 9
Hello!

I have a condition with the Color Bar study that applies true to consecutive candles; is there any way to only display the first color bar of any consecutive series of true conditions? For example; I have a condition that hold true for 10 consecutive candles; I would only like to display the first of those 10 candles with a color bar. Any info will be appreciated. Thanks.
[2023-05-15 21:49:21]
John - SC Support - Posts: 36350
There is not a way to do this with the "Color Bar Based on Alert Condition" study. The only option would be to create your own study to do this. Refer to the information here:
How to Build an Advanced Custom Study from Source Code
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2023-05-15 22:34:54]
Sawtooth - Posts: 4120
is there any way to only display the first color bar of any consecutive series of true conditions?
Please share an example of the formula you are currently using.
[2023-05-16 02:15:49]
MPicciuto - Posts: 9
I came up with a quick fix using the Color Bar Based on Alert Condition Study.
This is an example to only color the first red bar in a series of red bars: =AND(C < O, C[-1] > O[-1]). Just check if the condition is true on the current bar and if it wasn't true in the previous bar; this way it'll only color the first bar of a series of bars that meet a certain condition.

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

Login

Login Page - Create Account