Login Page - Create Account

Support Board


Date/Time: Thu, 16 Jul 2026 02:35:12 +0000



Colour bar based on alert condition for Heikin Ashi bars.

View Count: 314

[2026-05-28 21:56:17]
Louis Vs - Posts: 15
Hi,

My formulae is working for regular candlestick bars, but not for Heikin ashi Study bars. Someone posted a thread discussing the same issue, their fix seemed to be setting the Heikin ashi study to display as main price graph.

When I do this, the entire chart, my studies and scale goes blank.

I have also tried setting the scale to “same as region” on both the Heikin Ashi study and the colour bar study. Which does nothing at all.

Any ideas on how to resolve this?
My formula is based on range bars reaching a minimum volume, and a ratio of 70% bid-ask or ask-bid volume.

Again, this works on regular candlestick bars, but not on the Heikin Ashi study. (I have also tried writing the Heikin Ashi study’s ID directly into the formula. Using its open and close.)
[2026-05-28 21:58:50]
John - SC Support - Posts: 47216
Please get us the chart so we can take a look at how you have this setup and see if we can quickly identify the issue. Follow these instructions to get us the chart:
Support Board Posting Information: Providing Chartbook with Only a Single Chart

You can attach it privately, so that only you and Sierra Chart can view it.
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2026-05-28 22:22:19]
Louis Vs - Posts: 15
Single chart in chartbook should be attached. Thank you. The study subgraph will be hidden when the issue is resolved, it is simply there for the bars volume ratio to be pulled from.
Private File
Attachment Deleted.
[2026-05-29 14:37:45]
John - SC Support - Posts: 47216
To start with, you are missing a comma, so the alert condition is wrong. Here is what you have now:
=OR(
id22.sg1 > 0.7
id4.sg15 > id15.sg1
)

Here is what it should be:
=OR(
id22.sg1 > 0.7,
id4.sg15 > id15.sg1
)

We are also missing the study with ID of 4. Can you please get us another chart that includes that study in it?
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2026-05-29 15:23:16]
Louis Vs - Posts: 15
Terribly sorry, the 4 and 15 in the first section of line 2 were swapped. I have instead attached a chartbook with a time-based, candlestick chart, on which the study is working as desired. The code I will be using is on the candlestick chart (IDs 21 and 24). I simply would like to use that given code, and reference the HA bars instead of candlestick bars, I added a HA study (ID1) and hid it for this purpose. I believe this study/ID needs to be referenced in the formula, for the HA bars to be painted, but I cannot figure it out. If we can resolve this, I will then change the time based chart back to a range chart, and adjust the minimum volume alert condition accordingly. I figure this is the most efficient way to supply you with the problem/chart.
Thank you very much for all your help.
Private File
[2026-05-29 16:00:27]
John - SC Support - Posts: 47216
Your Alert condition has no dependency on the Main Price Graph, so the first thing to do is to enable the option for the "Heikin-Ashi" study for "Display as Main Price Graph". This will then display the Heikin-Ashi bars.

In the "Color Bar Based on Alert Condition" studies, set the "Draw Style" for the "Color Bar" subgraph to be "Color Bar". This will automatically update to color the bar based on the actual bar type that is displayed, so you do not need to choose a different one.

That should be all you need to do.

We have attached your Chartbook with these changes in it and set the color of one of the "Color Bar Based on Alert Condition" to be Pink, so it can easily be seen for verification.
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
attachmentChartbook2-Updated.Cht - Attached On 2026-05-29 16:00:23 UTC - Size: 5.77 KB - 43 views
[2026-05-29 21:27:23]
Louis Vs - Posts: 15
I have tried both of those things. When I set Heikin ashi to display as main price graph, the entire chart and its studies, as well as the scale go completely blank. Also, the 'colour bar' draw style seems to be what is automatically chosen. I have never changed said draw style. Nonetheless, I would be happy to attempt running your updated version of the chart, but upon trying to open the downloaded chart, I received the following; 'The chartbook file is not compatible. Contact Sierra Chart support for help withconverting it.' I am sorry for any inconvenience but im unsure of what to do.
[2026-06-01 14:57:57]
John - SC Support - Posts: 47216
Please update to the latest release and then see if you have an issue with the chartbook that we attached. Follow these instructions to update:
Software Download: Fast Update
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2026-06-01 15:38:30]
Louis Vs - Posts: 15
Updated to new version. Same 'not compatible' message in the message log.
[2026-06-01 15:38:30]
Louis Vs - Posts: 15
Updated to new version. Same 'not compatible' message in the message log.
[2026-06-01 18:58:56]
John - SC Support - Posts: 47216
What version are you currently running? Please select "Help >> About" and tell us the entry for "Version".
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2026-06-01 19:15:37]
Louis Vs - Posts: 15
2915 64-bit
[2026-06-01 19:32:25]
John - SC Support - Posts: 47216
We tested that specific chartbook that we had attached, and it works fine for us. We are attaching it again in case there is something about the previous one that we are not seeing.

Please follow these instructions to use the chartbook we supplied:
Chartbooks (Workspaces): Using a Chartbook Provided by Sierra Chart Support

Otherwise, there is no reason for you to be having any issue with this.
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
attachmentChartbook2-Updated.Cht - Attached On 2026-06-01 19:32:06 UTC - Size: 5.77 KB - 43 views
[2026-06-01 19:53:09]
Louis Vs - Posts: 15
Same message. Not sure what the issue could be. Are there any alternatives? Perhaps I could natively direct the formula to colour the HA ashi study, using its study ID, rather than leaving the colouring to be automatically directed to the main price graph?

Displaying Heikin ashi as main price graph seems to delve the chart in to negative space. It now displays -1073356 at the top of the scale when I do so, and leaves everything else, including the rest of the scale completely blank.
I imagine most people would probably be able to resolve the issue at this point and this is an unorthodox occurrence?

If this is ridiculously unusual then I understand it may be a dead end, and will not waste any more of your time.

Thank you for your help!
[2026-06-02 13:09:15]
John - SC Support - Posts: 47216
This is VERY unusual. You should not have any issue opening the chartbook we have provided.

Please do the following:
- Set the "Heikin-Ashi" study to have the option for "Display as Main Price Graph" to be enabled (checkmark next to the option)
- Select "Chart >> Graph Draw types >> Candlestick Bars" (or whatever type of bar you want to view the Heikin-Ashi as)
- If you have an issue with the scaling, then right click in the Values scale (price ladder) and be sure the Scale Range is set to "Automatic" (i.e. "Scale Range: Automatic" should be selected with a checkmark next to it).
- Right-click in the Values Scale to bring up the options again and select the "Reset" option.

Let us know if you still do not have the bars showing after this.

If you do have the bars showing, then do the following:
- In the Color Bar Based on Alert Condition study, set the "Draw Style" for the "Color Bar" subgraph to be "Color Bar".

You should be fine after this.
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2026-06-02 17:19:45]
Louis Vs - Posts: 15
That worked. I just had to scroll for a while to find them. Thank you very much. I view this as the sort of last piece of the puzzle within my created chartbook. You are a lifesaver.

Sierra charts are the greatest. Thank you for your dedicated support.

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

Login

Login Page - Create Account