Login Page - Create Account

Support Board


Date/Time: Wed, 12 Feb 2025 22:31:12 +0000



[Programming Help] - Please help me combine these two alerts

View Count: 541

[2020-11-16 00:37:10]
User845052 - Posts: 75
=CROSSOVER(ID2.SG1, ID9.SG1)

AND (H >= ID2.SG1,L <= ID2.SG1)

I am using Color Bars Based on Alert Condition. Both of these formulas work as intended, and for my test I identified a location where both independently were calculated TRUE. I just don't know the correct formula to combine them or whether it's possible.

Thanks
[2020-11-16 06:48:42]
Ackin - Posts: 1865
=AND(CROSSOVER(ID2.SG1, ID9.SG1),H >= ID2.SG1,L <= ID2.SG1)



note.
X and Y and Z
=AND(x,y,z)

X or Y
=OR(x,y)
Date Time Of Last Edit: 2020-11-18 09:23:35
[2020-11-16 06:52:09]
Ackin - Posts: 1865
Alert Formula Examples
Study/Chart Alerts And Scanning: Alert Formula Examples
[2020-11-18 08:35:06]
User845052 - Posts: 75
Why would this formula be erroneous? Is it written wrong?

=AND(CROSSOVER(ID12.SG3,ID15.SG3),(H <= ID20.SG2,L < ID20.SG2))

Let's assume that I got all the subgraphs correct, that the formulas are capable of being both true simultaneously.

Sierrachart is giving me an error via popup about the formula. For the record I have tried variations of putting spaces after commas.
[2020-11-18 08:54:03]
Ackin - Posts: 1865
Try without "()" inside

=AND(CROSSOVER(ID12.SG3,ID15.SG3),H<=ID20.SG2,L<ID20.SG2)

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

Login

Login Page - Create Account