Login Page - Create Account

Support Board


Date/Time: Fri, 07 Feb 2025 10:20:35 +0000



Post From: A way to color candle chart with Heiken Ashi

[2020-05-28 02:20:34]
Sawtooth - Posts: 4173
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