Login Page - Create Account

Support Board


Date/Time: Mon, 17 Mar 2025 18:20:09 +0000



[Programming Help] - Color background if 3 alert conditions are met

View Count: 367

[2022-09-16 06:44:05]
Calinorth86 - Posts: 15
I want to color the background of a chart wthin a certain time range and when the volume is above a certain amount. I tried this alert condition but it caused a syntax error.
=AND(BARTIME>= TIME(5,00,0), BARTIME <= TIME(6,30,59)),AND(ID1.SG13>=1000)

any help would be greatly appreciated

thank you
[2022-09-16 21:42:06]
Ackin - Posts: 1865
I tried this alert condition but it caused a syntax error

Try rewrite:

=AND(AND(cond1,cond2),cond3)

or another way:

=AND(cond1,cond2,cond3)
Date Time Of Last Edit: 2022-09-16 21:46:34
[2022-09-16 23:10:52]
Sawtooth - Posts: 4185
Try this corrected syntax:
=AND(BARTIME>= TIME(5,00,0), BARTIME <= TIME(6,30,59),ID1.SG13>=1000)

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

Login

Login Page - Create Account