Login Page - Create Account

Support Board


Date/Time: Fri, 09 Jan 2026 12:46:02 +0000



Post From: How to set Alerts for ATR?

[2026-01-07 15:46:37]
John - SC Support - Posts: 43873
Sierra Chart is a very powerful program, but in order to take full advantage of it, you do need to learn a little bit about programming. Not low-level C++ stuff, but just the basics of how computers interpret code in order to be able to create alerts and setup items like you want.

To start with, review the information at the following link for how to create alerts in general:
Study/Chart Alerts And Scanning

To have an alert (sound and a notice in the Chart Header) when the ATR is greater than 2.5, then you would use the following formula in the Alert tab for the ATR study itself:
=SG1 > 2.5

This says that when Subgraph 1 (this contains the actual data for the ATR at each bar) is greater than 2.5, then give the alert.

In order to color the ATR at those levels where the value is greater than 2.5, then you need to use the "Color Bar Based on Alert Condition" study. Refer to the following:
Color Bar Based on Alert Condition

In this case, since you are entering the Alert condition on a different study, you also need to specify the study in addition to the subgraph for the test, therefore the alert condition entered in the Alert tab of the Color Bar Based on Alert Condition would look like the following:
=ID1.SG1 > 2.5

Where ID1 is the ID of the ATR study (you can see the ID in the Studies to Graph area of the Analysis window).

You then need to setup the Color Bar Based on Alert Condition to color the line by setting these inputs and subgraph settings:
- Based On: ATR study
- Chart Region: Same as ATR study
- Output When Condition True: Use Input Data
- Input Data: ATR
- Subgraphs >> Color Bar (SG1) >> Draw Style: Line Skip Zeros
- Subgraphs >> Color Bar (SG1) >> Width/Size: Same as the ATR line subgraph in the ATR study
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing