Login Page - Create Account

Support Board


Date/Time: Fri, 03 May 2024 08:42:46 +0000



[User Discussion] - A way to color candle chart with Heiken Ashi

View Count: 1603

[2020-05-28 01:45:08]
User542430 - Posts: 50
I would like to use volume price candles that use coloring from Heiken Ashi candles. I can see a way to make a subgraph study use Hollow Volume Price Candles, but no way for the main chart study to do that. This would have been the simplest way I could see to color the main chart candles with Heiken. I could not find any alerts based on color changes on the support page for Alerts, which would have been my second option.
[2020-05-28 02:20:34]
Sawtooth - Posts: 3992
1. Assuming the HA study is in its own chart region, use the Spreadsheet Formula study to determine the HA candle color, using a formula like this, modified from spreadsheet syntax to Simple Alert syntax:
Spreadsheet Example Formulas and Usage: Formula that Matches the Coloring of Up and Down Price Bars
where:
B3 is ID2.SG1
E3 is ID2.SG4
E4 is ID2.SG4[-1]
T4 is ID1.SG1[-1]
where ID1 is the Spreadsheet Formula study and ID2 is the HA study.

2. Use two instances of the Color Bar Based On Alert Condition study, one for each price bar color.
Green bar formula:
=ID1.SG1=1
Red bar formula:
=ID1.SG1=-1
where ID1 is the Spreadsheet Formula study.
Date Time Of Last Edit: 2020-05-28 02:27:38
[2020-05-28 16:47:46]
User542430 - Posts: 50
Thanks for taking the time to explain that, it worked perfectly. Only oddity is that the "Sum of Alerts" Subgraph color for the Red Bar formula changes the color for both the red and green bar. The same setting on the Green Bar subgraph only changes the green bar. I can work around by just not using the Sum of Alerts as an outline color.
Date Time Of Last Edit: 2020-05-28 16:55:46

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

Login

Login Page - Create Account