Login Page - Create Account

Support Board


Date/Time: Fri, 07 Feb 2025 16:48:07 +0000



[Programming Help] - ATR alerts & alert formulas

View Count: 784

[2021-03-19 14:36:13]
Sawtooth - Posts: 4173
Add the Color Bar Based On Alert Condition study, and use a formula like this on its Alerts tab:
=ID4.SG1>MAX(ID4.SG1[-1:-21])
where the ATR study is ID4.
This formula is a modification of these examples:
Study/Chart Alerts And Scanning: Referencing A Range of Data

Then follow these instructions to color the ATR bars:
Color Bar Based on Alert Condition: Coloring Subgraphs of Other Studies
[2021-08-31 13:14:52]
User246553 - Posts: 33
Hi Tom, thx for the detailed answer! i did follow your instructions, but still, the chart looks a bit off from how i would like to appear. for example, i would want that the bars that match alert criteria get only different colour and other bars to stay the same. i played around with the settings for a while, but was not able to fix this issue.
Do you have some idea how this could be fixed?
I attach image of how it looks now.
http://www.sierrachart.com/image.php?Image=1630415474900.png
[2021-08-31 23:51:06]
Sawtooth - Posts: 4173
Do you have some idea how this could be fixed?
I can't tell from the pic what needs to be fixed.

The color bar study should be below the ATR study in the studies to graph list.

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

Login

Login Page - Create Account