Login Page - Create Account

Support Board


Date/Time: Fri, 03 May 2024 23:59:42 +0000



[User Discussion] - Alert Question

View Count: 1290

[2013-09-15 14:02:35]
jaban - Posts: 66
Just want to make an alert when Bar close is
higher or lower then a moving average line

I tried = OR (C > ID12.SG1 ) , ( C < ID12.SG1 )

and all kind of combinations

The individual form works , but not the combination

Any help will be appreciated

thanks


[2013-09-15 22:50:13]
Sawtooth - Posts: 3993
This is the proper syntax, but it will alert on every bar:

=OR(C>ID12.SG1,C<ID12.SG1)

Try this instead:

=OR(AND(C[-1]<ID12.SG1[-1],C>ID12.SG1),AND(C[-1]>ID12.SG1[-1],C<ID12.SG1))
[2013-09-17 10:07:48]
jaban - Posts: 66
thanks Tomgilb


I found another solution , let me know if you agree

I added a second ma line , ID13 with ma 1 ( = line on close )

now formule is =crossover (ID12.sg1,ID13.sg1)

It looks like it is working correct

thanks

jaap
[2013-09-17 13:12:27]
Sawtooth - Posts: 3993
Yes, that will also work. It is essentially the same.

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

Login

Login Page - Create Account