Login Page - Create Account

Support Board


Date/Time: Wed, 24 Apr 2024 21:12:14 +0000



[Programming Help] - Color Bar or Background on [n]th Bar after ZigZag Reversal Bar

View Count: 801

[2018-09-27 05:09:13]
User68474 - Posts: 195
How can I "Color Bar/Background" on the [n]th Bar after a Zig Zag Reversal Bar/(Reversal Price)? I can't figure out what should be an obviously simple formula.
[2018-09-29 12:21:17]
bradh - Posts: 854
How can I "Color Bar/Background" on the [n]th Bar after a Zig Zag Reversal Bar/(Reversal Price)? I can't figure out what should be an obviously simple formula.

I found two ways to do it.

Assume n = 3 and Zig Zag Study is ID1.

1. On the Zig Zag study, enable Display HH,HL,LL,LH Labels. Alert on =ID1.SG2[-3]<>0. You can hide the Text Labels if you don't want to see them.

2. On the Zig Zag study, enable Additional Output for Spreadsheets. Alert on =ID1.SG3[-3]<>0

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

Login

Login Page - Create Account