You can use this script to backtest Heikin-Ashi bar color change strategy.
You have to apply this script to usual candles and not Heikin-Ashi!!!
Background color indicates HA bar color. On change you'll see green/red arrows and alert will be fired.
Also you can find in the code calculations of all HA OHLC values.
A deterministic approach to identify Heikin-Ashi chart type.
The script checks the next statements about HA:
HA chart does not have any gaps in a classic sense
Every new HA open price is calculated using a specific recurrence formula. This fact also means that initial HA open price is used to calculate all the next and so on (a construction of Infinite...
This is Traditional Heikin-Ashi bars overlayed with regular candlestick/any chart type
Although HA is available in TradingView by default, this script is to recalculate HA by traditional calculations.
This version REPAINTS!! This is because Traditional HA uses Close Price (which is calculated on the fly).