Login Page - Create Account

Support Board


Date/Time: Fri, 29 Nov 2024 03:37:28 +0000



Color Bar by Alert Condition - Not Painting Over Bars

View Count: 544

[2023-03-10 17:21:06]
stockwet - Posts: 32
Hi,

I'm struggling to get the Color Bar by Alert Condition to work properly. It's not painting over the bars.

The following screenshot shows that the basic alert condition is working. This is an example with Draw Style set to "Bar".
https://www.sierrachart.com/image.php?Image=1678468309215.png

However, when I change the Draw Style to "Color Bar", then I end up with just the normal chart:
https://www.sierrachart.com/image.php?Image=1678468557707.png

Oddly enough, if I shift the main chart area so that bars go into my the MACD zone, those bars are colored.
https://www.sierrachart.com/image.php?Image=167846870657.png

Here are some of the troubleshooting steps I've followed:
- Completely clean (non-duplicated) chart
- Moved the study above and below the MACD study

I'd welcome any suggestions. I'm sure I'm missing something basic.
[2023-03-10 20:38:48]
John - SC Support - Posts: 36350
It sounds like you did not change the Region when you changed it to "Color Bar". Refer to the following:
Chart Studies: Settings and Inputs Tab >> Chart Region
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
Date Time Of Last Edit: 2023-03-10 20:39:17
[2023-03-10 21:19:35]
stockwet - Posts: 32
Hey John,

Oh man, I wish it were that easy! No, my MACD region (2) is the same as the Color Bar On Alert region (2). Here's a screenshot of the settings.

Best,

Taylor
image2023-03-10 15_17_37.png / V - Attached On 2023-03-10 21:18:16 UTC - Size: 202.03 KB - 79 views
Attachment Deleted.
[2023-03-10 22:40:59]
John - SC Support - Posts: 36350
Right, but when you change to "Color Bar", you are wanting to color the bars in the Main Price Graph - correct? As such, you would need to change the "Based On" and the "Region" to be where the Main Price Graph is.
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2023-03-10 23:29:55]
stockwet - Posts: 32
My intended goal is to change the bars in the MACD Histogram. So, if the prior MACD Histogram value is higher than the current MACD Histogram value, color current MACD Histogram bar.

I do not want to color the MACD histogram bars based on slope. My use case will be that when the Histogram value is below 0, then there will be two red shades applied. A dark shade for when the current value is lower than the prior value, a lighter shade for when the current value is higher than the prior value, but still below zero. Inverted for the bullish case but with different colors. I know I'll need two Color Bar by Alert studies.

Does that make sense? Here's an example from Trading View.
Date Time Of Last Edit: 2023-03-10 23:34:38
imagetv-example.png / V - Attached On 2023-03-10 23:34:30 UTC - Size: 152.64 KB - 83 views
[2023-03-11 07:03:06]
User719512 - Posts: 267
You need 4 CBBOAC studies.
Set MACD SG3 to Ignore

For each CBBOAC study:
Based On: MACD ID:1
Chart Region 2
In4: Study Subgraph Reference
In8: MACD Diff
In15: ID1.SG3

SG1, Draw Style: Bar, Width 8 (or whatever), desired color

Alert Formulas (one for each CBBOAC):
and(
ID1.SG3[0] < 0,
ID1.SG3[0] < ID1.SG3[-1]
)

and(
ID1.SG3[0] < 0,
ID1.SG3[0] >= ID1.SG3[-1]
)

and(
ID1.SG3[0] > 0,
ID1.SG3[0] > ID1.SG3[-1]
)

and(
ID1.SG3[0] > 0,
ID1.SG3[0] <= ID1.SG3[-1]
)
imageMACD-CBBOAC.png / V - Attached On 2023-03-11 07:00:51 UTC - Size: 6.16 KB - 70 views
[2023-03-11 15:10:43]
stockwet - Posts: 32
Thanks @User719512,

This is definitely closer to what I want. My scale seems to be hosed. No values on the left and the bars are not being drawn from the 0 line.
image2023-03-11 09_09_10.png / V - Attached On 2023-03-11 15:09:51 UTC - Size: 178.98 KB - 74 views
image2023-03-11 09_07_48.png / V - Attached On 2023-03-11 15:10:03 UTC - Size: 95.83 KB - 72 views
[2023-03-12 00:31:39]
User719512 - Posts: 267
Perhaps In:12 draw zero values also.

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account