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 a publication is governed by House Rules. You can favorite it to use it on a chart.
need to use real candles
The idea is to identify the trend with Hiken-Ashi.
Ideally, when on Hiken-Ashi sell signal is generated, one should wait for a better price point to enter the trade.
Vice versa for Buy signal.
If you apply the strategy on real candles the signls will look different simply because Hiken-Ashi are averaged bars and the signals generated are more accurate on Hiken-Ashi.