Support Board
Date/Time: Fri, 07 Feb 2025 15:23:21 +0000
how to change the candlestick outline different color when certain condition met?
View Count: 207
[2024-11-21 15:54:45] |
User909835 - Posts: 8 |
Hi, I'm currently using the study "number bars calculated values". can I change the candlestick outline color to match the delta? for example, I would like to make the candlestick outline color deep green if the delta is greater than +500, regular green if the delta is within the range of +100 to +500, light green if the delta is within the range of 0-100, and light red if the delta is -100-0, regular red if the delta is -500 to -100, deep red if the delta is less than -500?
|
[2024-11-21 16:47:02] |
John - SC Support - Posts: 37810 |
You would need to have 5 copies of the "Color Bar Based on Alert Condition" and setup each condition for what you want. In the Color Bar Based on Alert Condition, set the Draw Style for the 'Color Bar" subgraph to be "Color Bar Hollow" and set the color to match your condition. For example, to have deep green when the delta is greater than +500, your formula would look like the following: =ID1.SG1 > 500 And the color of the Color Bar subgraph would be deep green. You only need 5 conditions as one of the conditions would be your default, in which case you would need to set the color for the "Candlestick Up Outline" and "Candlestick Down Outline" to be your default situation. Or you could just add a sixth Color Bar Based on Alert Condition. Refer to the following: Color Bar Based on Alert Condition Graphics Settings: Candlestick Up Outline For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2024-11-21 19:44:15] |
User909835 - Posts: 8 |
thank you for your clarification. It works on the candlestick when I set the value >500 and the color matches but won't work when i set the value <-300, no color changes. can you help me with that?
|
[2024-11-21 20:02:18] |
John - SC Support - Posts: 37810 |
Do you have bars in which the delta is less than -300? If you have a bar that meets this criteria (you see the value in the Numbers Bars Calculated Values) and the Color Bar is not working then we would need to see an image showing the Numbers Bars Calculated Values and the bar not colored. Refer to the following for how to get us an image: Support Board Posting Information: Providing Chartbook with Only a Single Chart For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2024-11-21 20:19:25] |
User909835 - Posts: 8 |
sorry that was my bad, turn ID7.SG1 to ID1.SG7, wrong number. Thanks!
|
To post a message in this thread, you need to log in with your Sierra Chart account: