This is my favorite for Tradingview.

Please use other indicators to find good entry and good exit. This is why this publication has so many indicators. A good indicator will find good results even on line chart. Feel free to try on "Heiken Ashi" but understand that "line" chart is much more realistic
Due to tradingview's crappy auto resize, the best way to view this script is to click on the share button and "Make it Mine".

Then you can see why my other indicators are "PRESENT"

Release Notes: This strategy calculates the last high or the last low of a lookback period. If the previous high or low is breached, a signal to enter market is given. This new version adds safety check formula to try to catch potential fake-outs.

Remember that Heiken Ashi do not provide true backtest results because bars are "averaged".

However, this strategy works well with regular candles and line charts if you find the right settings and chart time frame

Release Notes: Apologies - Changed version number from 1 to 4
Release Notes: Updated to show back test on line chart on 8H BTCUSD

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 a publication is governed by House Rules. You can favorite it to use it on a chart.

Want to use this script on a chart?