OPEN-SOURCE SCRIPT

Real Candles Heikin Ashi (HA) Candle functions

11 568
This script plots both real and HA candles regardless or which are used on the chart in TV settings.
(and has the functions for you to use.)

Lots of people seem to misunderstand backtesting (or scam people) based on HA candles.
Backtesting with HA candles leads to impossible trades. ALWAYS backtest with real candles.
That doesn't mean you might not want to look at HA candle values to make trading decisions.

Add the code below to calculate HA candles from real and use that in your HA trading algo,
but test it on real charts.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.