Support Board
Date/Time: Wed, 27 Nov 2024 08:28:58 +0000
INCONSISTENT: Color Bar Based on Alert Formula
View Count: 440
[2023-08-22 22:20:42] |
User429065 - Posts: 118 |
I'm trying to colorize the Price based LRC the same as the Stochastic based LRC... See my "Regions" screenshot showing the logarithmic 7 bar LRC (Stochastics) ID36.SG1 with the "Based On:" input 7 bar LRC for the price (ID29.SG3 (LRC low) and ID29.SG2 (LRC High)). Why do they not match? This seems to work only part of the time. Is it my alert formula??? My Short Alert is =ID36.SG1[7]>ID36.SG1 and my Long Alert is =ID36.SG1[7]<ID36.SG1... See attached Please advise, Thank you! Date Time Of Last Edit: 2023-08-23 04:31:51
|
Private File Private File Private File |
[2023-08-23 17:40:10] |
John - SC Support - Posts: 36309 |
We are not sure exactly what you are wanting to color. The way you have the "Based On", "Input Data" and "Output When Condition is True" implies you are trying to color a line. But did you change the Subgraph settings to make this occur properly? Refer to the following: Color Bar Based on Alert Condition: Coloring Subgraphs of Other Studies For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2023-08-23 21:12:42] |
User429065 - Posts: 118 |
In this case, I want to color the lower line of the price-based LRC the same color as the LRC that is based on a stochastic study (which is the thicker Red LRC set to an independent logarithmic scale which is also in the price region). See my attached screenshots for the subgraph settings.
|
Subgraph Long.JPG / V - Attached On 2023-08-23 21:01:34 UTC - Size: 109.15 KB - 98 views Subgraph Short.JPG / V - Attached On 2023-08-23 21:01:45 UTC - Size: 101.26 KB - 94 views |
[2023-08-23 21:27:33] |
John - SC Support - Posts: 36309 |
The setup for the Color Bar Based on Alert Condition looks good. One other item that we see is that your reference to a bar 7 bars back is entered incorrectly in the Alert formula. It needs to be -7 (such as ID36.SG1[-7]). Also, keep in mind that a setting of -7 means the 8th bar back (the current bar is 0). It looks like you may need to change this to -6 to actually get the correct bar. For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2023-08-25 18:39:16] |
User429065 - Posts: 118 |
I've corrected the formula as per your instructions Long=ID36.SG1[6]<ID36.SG1 and Short=ID36.SG1>ID36.SG1[-6]. I've not changed anything else. The remaining problem is that the short position LRC line does not disappear in a long condition and vice versa. Again, I'm coloring the LRC top line red in a short condition and the LRC lower line green in a long condition based on the logarithmic LRC (ID36.SG1) on the main price region in my original post. I've experimented with numbers [8] thru [-5] but the problem still exists. Any suggestions? Thanks!
Date Time Of Last Edit: 2023-08-25 18:42:37
|
[2023-08-25 18:58:52] |
John - SC Support - Posts: 36309 |
If you want the lines to disappear when the condition is not met, then you need to set the original color of the line to be the same as your background. This will make the line disappear until the condition is true, at which time it will color the way you have it set.
For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2023-08-25 20:13:21] |
User429065 - Posts: 118 |
Tried that but they still do not disappear
|
[2023-08-25 20:57:31] |
John - SC Support - Posts: 36309 |
Due to how Sierra Chart deals with studies, what you are wanting to do gets a bit difficult. The best solution is to create a custom study to do what you want, which will allow you to control the number of bars that are getting recalculated, which is what needs to occur. The workaround is to use the "Chart Calculation - Periodic" study and set it to recalculate the chart every 1 second. But if you have a lot of studies this can cause the program to slow down. Refer to the information here: Chart Recalculation - Periodic For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
To post a message in this thread, you need to log in with your Sierra Chart account: