Login Page - Create Account

Support Board


Date/Time: Fri, 07 Feb 2025 15:13:27 +0000



Color candles based on the Range colors from the Number Bars Calculated Values study?

View Count: 43

[2025-02-04 19:46:58]
User214239 - Posts: 30
Is there a way to color candles based on the Range Up/Down colors from the Number Bars Calculated Values study? I was trying to do it with some of the Color Bar based on studies, but I can't figure out how to do it that way because there's not a SG for each Range 1, 2 ,3, etc. If I set it to SG1 from the number bars study I can only choose one color for the color bar study based on alert condition for example. I wanted to try and color each candle dynamically so to speak so it changes color as the delta is changing from SG1 in the numbers bars study. Is there a way to do that that I'm just not thinking of?
[2025-02-04 21:59:16]
John - SC Support - Posts: 37808
There is no direct way to do this, but there are workarounds, although you may not be able to do this perfectly - depending on how much data is in the chart and how you are basing your coloring.

The first thing to keep in mind is how the coloring is done. Refer to the following for this:
Numbers Bars: Calculated Values Background Coloring Logic

Therefore, you need to find the Minimum and Maximum values for the period of time you are wanting. The easiest way to do this is to use the Spreadsheet Study, as you will get the data from the Numbers Bars Calculated Values into the spreadsheet. Then use the MIN() and MAX() functions to find the Minimum and Maximum over the range you want.

Then you can apply the math as defined in the above link to determine your percentage and then use that in a Color Bar Based on Alert condition study.
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:

Login

Login Page - Create Account