Login Page - Create Account

Support Board


Date/Time: Sat, 11 Jan 2025 17:51:54 +0000



Alert Coding

View Count: 873

[2017-01-02 19:10:34]
isa74 - Posts: 54
I would like to understand which code I need for setting an alert on a graph relative to the cross of the MACD curve with the signal curve as it does not work:

CROSSOVER(ID13.SG1.ID13.SG2)

The MACD has the ID13.

Please check attached visual file.

I have copied the code illustrated on this youtube video from Infinity: https://www.youtube.com/watch?v=-Edzq9v-8a0&t=2449s (minutes 42)

I would be nice to make some video with several examples (crossing CCI levels, MACD0 with signal, Stochastics, Value Chart levels, ecc.

Why not allow people to copy and paste their code to build a community of coders like it is the case with ProRealtime ?


Thanks a lot,

I.B
imagesc_sierracharts_macd_alert-code.png / V - Attached On 2017-01-02 19:07:31 UTC - Size: 119.61 KB - 265 views
[2017-01-02 19:31:25]
Sawtooth - Posts: 4148
Use a comma instead of a period to separate the subgraphs. Try this:

CROSSOVER(ID13.SG1,ID13.SG2)
[2017-01-03 02:23:50]
Sierra Chart Engineering - Posts: 104368

Why not allow people to copy and paste their code to build a community of coders like it is the case with ProRealtime ?
This is already the case. We really do not understand what you mean.

We even have many examples here:
http://www.sierrachart.com/index.php?page=doc/StudyChartAlertsAndScanning.php#FormulaExamples

When you are entering the Alert Condition Formula directly on the study it is referencing, you do not need the ID numbers. Just use:
CROSSOVER(SG1, SG2)
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: 2017-01-03 02:25:07

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

Login

Login Page - Create Account