Login Page - Create Account

Support Board


Date/Time: Mon, 29 Apr 2024 06:33:35 +0000



Alert Code Requests

View Count: 1395

[2014-04-09 19:03:49]
infpz - Posts: 826
Please refresh my memory - need 2 alert codes (separate):

1. When the CCI cross either Line 1 or 2 from either direction, alert.
2. When the 89EMA cross the 34 EMA, alert.

Thank you,
Patrick Z
[2014-04-10 12:54:03]
infpz - Posts: 826
2. is easy enough: =CROSSOVER(ID1.SG1,ID2.SG1), correct?

Can someone help with 1? Would it be:

=OR(CROSSOVER(SG1,100),CROSSOVER(SG1,-100))

Assuming Line 1 is 100 and Line 2 is -100?
[2014-04-10 13:37:12]
Sawtooth - Posts: 3982
=OR(CROSSOVER(SG1,100),CROSSOVER(SG1,-100))
Yes, that works.

This works also, with the advantage that the alert follows the line value settings:
=OR(CROSSOVER(SG1,SG3),CROSSOVER(SG1,SG4))

For further reference:
For a visual test of an alert formula, add the Color Bar Based On Alert Condition study and put the formula in its Alerts tab, adding the ID# of the referenced study:
=OR(CROSSOVER(ID3.SG1,ID3.SG3),CROSSOVER(ID3.SG1,ID3.SG4))
where ID3 is the CCI study.
Price bars will color at every alert TRUE.
[2014-04-10 13:37:55]
infpz - Posts: 826
perfect. thank you.
[2014-04-10 17:27:30]
Sierra Chart Engineering - Posts: 104368
Both of these are documented here:
https://www.sierrachart.com/index.php?l=doc/doc_AlertCondAndScan.html#examples

Specifically refer to:
Moving Average Crossover Alert Using Separate Moving Averages

Alert for Commodity Channel Index (CCI) when it crosses its Line 2 or Line 3 Subgraphs:
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
Date Time Of Last Edit: 2014-04-10 17:28:25

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

Login

Login Page - Create Account