Support Board
Date/Time: Fri, 07 Feb 2025 18:09:50 +0000
[Programming Help] - Alert condition based on subgraph being true or present
View Count: 665
[2022-07-29 03:35:24] |
User658125 - Posts: 20 |
I'll be brief. I am trying to set a color bar based on alert condition for a study where the subgraphs are as follows: UpBar (SG1) Color bar DownBar (SG2) Color bar This simple study (Bricks Trend) changes the bar color to green for an UpBar and red for a DownBar based on a trend. I use color bar based alerts frequently with different crossovers etc, but this one has me stumped because there is no other condition other than the subgraph being present/active. I thought "=ID1.SG1" or "=C=ID1.SG1" for the alert condition in the "color bar based on alert" study would work, but that changes all the bars on the entire chart to the alert color. When I do the same for "ID1.SG2", absolutely nothing happens. This is probably so simple but I can't seem to figure it out. Any input would be greatly appreciated. Thanks |
[2022-07-29 11:22:08] |
Sawtooth - Posts: 4173 |
Use SG3, where the green bars are 1 and the red bars are 0. Tip: When you want to know what a study outputs, add the Spreadsheet Study study, and look in columns AA and above. |
[2022-07-29 12:51:11] |
User658125 - Posts: 20 |
@tomgilb That worked. I was making a small error. I really appreciate the input. Date Time Of Last Edit: 2022-07-29 12:58:21
|
To post a message in this thread, you need to log in with your Sierra Chart account: