OPEN-SOURCE SCRIPT

Real Candles Heikin Ashi (HA) Candle functions

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.
backtestbacktestingCandlestick Analysisfunctionfunctionsheikin-ashiheikinashi

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer