Support Board
Date/Time: Sun, 19 Jan 2025 20:53:20 +0000
[Programming Help] - Color coded alert bar
View Count: 648
[2018-04-23 04:09:37] |
User28682 - Posts: 233 |
Hi, I would like to have the current bar change colors on the satisfying of these conditions: previous high [-1] is < high 2 bars ago [-2] previous low [-1] is > low 2 bars ago [-2] current bar high is > H[-1] current bar low is < L[-1] C < C[-1] all have to be true. This is the formula I tried without success so far: = AND((H[-1]<=H[-2],L[-1]>=L[-2]),(H>H[-1],L<L[-1]),C < C[-1]) Thanks! |
[2018-04-23 18:30:50] |
Zdislav - Posts: 73 |
Try it like this... AND(H[-1]<=H[-2], L[-1]>=L[-2], H>H[-1], L<L[-1], C < C[-1]) Z. |
To post a message in this thread, you need to log in with your Sierra Chart account: