Support Board
Date/Time: Thu, 08 Jan 2026 17:37:55 +0000
How to set Alerts for ATR?
View Count: 55
| [2026-01-07 06:24:34] |
| Jethro Go - Posts: 13 |
|
Hello, I have no knowledge on coding and wanted to know how to setup an alert when ATR levels crosses 2.50 and is it also possible to change the color of the study based on whether the ATR is above 2.50 (Green) and below 2.50 (Red)?
|
| |
| [2026-01-07 15:46:37] |
| John - SC Support - Posts: 43858 |
|
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 |
| [2026-01-07 15:51:06] |
| Jethro Go - Posts: 13 |
|
Ok, thank you again! I'll try to learn more, I'm still figuring it out since I'm fairly new to this.
|
To post a message in this thread, you need to log in with your Sierra Chart account:
