Login Page - Create Account

Support Board


Date/Time: Wed, 05 Feb 2025 22:54:25 +0000



[Programming Help] - alert condition

View Count: 633

[2020-04-04 19:07:31]
User875891 - Posts: 63
Im trying to program an alert condition in with the "studies" format where 2 sg's of the same id need to be "true"
So far i have
=or(and(id1.sg1=true),and(id1.sg2=true))
with this formula the alert is activated when either condition is met vs when both are met
Ive scoured the archives and came up empty

What am i missing?
Ive tried multiple variations w/o success (replacing the initial "or" with "and". removing the interior parenthesis, etc) to no avail
Date Time Of Last Edit: 2020-04-04 19:21:03
[2020-04-05 10:50:53]
Ackin - Posts: 1865
Im trying to program an alert condition in with the "studies" format where 2 sg's of the same id need to be "true"


=AND(condition1,conditon2)



in your case try:

=AND(ID1.SG1>0,ID1.SG2>0)
[2020-04-06 14:26:57]
User875891 - Posts: 63
thanks for the help
unfortunately it doesnt work
any other suggestions would b appreciated
[2020-04-06 14:31:27]
Ackin - Posts: 1865
Strange...Write here your situation specifically. In what study and what do you compare there?
[2020-04-06 15:33:49]
User875891 - Posts: 63
I think i figured it out
thanks for all ur help
T
Date Time Of Last Edit: 2020-04-06 17:19:49

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

Login

Login Page - Create Account