Login Page - Create Account

Support Board


Date/Time: Thu, 25 Apr 2024 05:05:02 +0000



[Programming Help] - Color coded alert bar

View Count: 590

[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:

Login

Login Page - Create Account