Support Board
Date/Time: Sun, 22 Dec 2024 05:24:13 +0000
[User Discussion] - Color Bar Based On Alert Condition
View Count: 2593
[2015-02-22 15:34:11] |
Kenneth.S - Posts: 20 |
I am trying to color a bar based on an alert condition and have added the study. My chart consists of Subgraph 1 - volume study Subgraph 2 - Color Bar Based On Alert Condition Subgraph 3 - Moving Average if I in the color bar based... study uses alert condition = V > 1000 , i get the bar colored (as expected) when volume is larger than 1000. If I use the condition = SG1 > 1000, i do not get the bar colored when volume is larger than 1000 (nothing is ever colored). If I use the condition = SG3 > L, i would expect the bar to be colored if the value of the moving average is larger than the low of the bar, however that doesnt happen either. I tried several other studies as subgraphs, it seems the color bar based on.... study doesn't color anything when I reference any subgraph in the alert. The coloring works fine when I use any other alert condition, except referencing any subgraph. I have tried this in version 1224 and also in the pre-release 1233. |
[2015-02-22 21:18:10] |
Sawtooth - Posts: 4141 |
You are confusing Subgraphs with Chart Regions. Subgraphs are separate outputs within a study. Referencing V or L directly works because it is part of the OHLCVT data, but to reference the Volume study specifically, you need to use its ID#. The Studies to Graph list will show the ID# of each study. So from the Color Bar study, the syntax will look like this: =ID1.SG1>1000 assuming the Volume study is ID1. The same goes for the MA. |
[2015-02-23 09:10:29] |
Kenneth.S - Posts: 20 |
Thanks...
|
[2015-02-23 09:18:20] |
Sierra Chart Engineering - Posts: 104368 |
When using the Color Bar Based on Alert Condition study you cannot reference any Subgraphs within that study. This simply will not work. You can only reference other studies or the main price graph. Refer to the documentation here: http://www.sierrachart.com/index.php?page=doc/doc_AlertCondAndScan.html#ReferencingOtherStudies 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: 2015-02-23 09:18:45
|
To post a message in this thread, you need to log in with your Sierra Chart account: