Bright Green: Heiken Ashi candle data is still putting in higher lows and higher highs, and the price closed above the previous low.
Dark Green: Heiken Ashi candle closed green, but had a lower low or lower high (trend weakening).
Bright Red: Heiken Ashi candle data is still putting in lower lows and lower highs, and the price closed below the previous high.
Dark Red: Heiken Ashi candle closed red, but had a higher low or higher high (trend weakening).
Optional: I included a setting for allowing high values to overrule Heiken Ashi values (disabled by default).
This kind of indicator is best used for managing open positions rather than entering trades. It works on all timeframes and instruments.
Feel free to contact me if you have any questions :)
PS. Here's a snapshot of it against a Heiken Ashi chart for reference:
Indicator no longer repaints, and only uses the current timeframe data for signals.
- Converted to Pine Script version 4
- Several minor code improvements & optimizations
- Added candle offset (0 = use current bar data, 1 = use previous bar data)