Login Page - Create Account

Support Board


Date/Time: Sat, 01 Mar 2025 08:06:28 +0000



[Programming Help] - Writing an alert for the Divergence Detector

View Count: 753

[2021-09-20 16:12:03]
C_Money - Posts: 72
Hello,

I'm looking to set an alert on the Divergence Detector but I'm not sure how. I just want the alert to happen when any signal prints on the chart. Any help would be appreciated
[2021-09-20 16:55:25]
Sawtooth - Posts: 4177
You'll want to reference SG4 and SG5 of the Divergence Detector study:

Try this on its Alert tab:
=OR(SG4>0,SG5>0)

Study/Chart Alerts And Scanning
[2021-09-20 20:52:42]
C_Money - Posts: 72
Thanks, that worked. How can I determine from the source code what is SG4 and SG5? I don't see anything with those variables.
[2021-09-20 22:48:19]
Sawtooth - Posts: 4177
How can I determine from the source code what is SG4 and SG5? I don't see anything with those variables.
This might help:
Divergence Detector

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

Login

Login Page - Create Account