Login Page - Create Account

Support Board


Date/Time: Fri, 19 Apr 2024 12:40:21 +0000



[Programming Help] - Color Bar Based on Alert Condition w/ ZigZag

View Count: 782

[2018-09-10 03:24:51]
User68474 - Posts: 195
I have no problem coloring bars that occur at Zig Zag Reversals by referring to Subgraph(SG)3(Reversal Price)in the above formula: "=OR(H=IDxx.SG3,L=IDxx.SG3)" as applied to Color Bar Based on Alert Condition Study. The ZZ study is set to Input data High/Low/Calculation method #3, so the Reversal prices for IDxx.SG3 are, by definition, actual bar highs or lows.

I would like to likewise color/highlight a/the bar which follows, "x" bars after. I can't figure out the syntax for this, Can anyone help?
[2018-09-10 03:38:21]
Sawtooth - Posts: 3973
Try this:
=OR(H[-3]=ID2.SG3[-3],L[-3]=ID2.SG3[-3])
where the ZZ study is ID2, and the colored bar is 3 bars later by referencing the occurrence 3 bars earlier.
Date Time Of Last Edit: 2018-09-10 03:56:41
[2018-09-10 04:14:58]
User68474 - Posts: 195
Many thanks, TG...was kinda hoping you'd be monitoring the board this evening...I had tried and tried with the [-x]after H or L, but did not know/understand to also include those brackets after the IDxx.SG3(Reversal Price)...it sure seems to work, though.

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

Login

Login Page - Create Account