OPEN-SOURCE SCRIPT

Turtle strategy

35
highestNow = the highest high in the most recent 30 bars.

highestPrev = the highest high in the previous 30 bars (bars 31–60).

If highestPrev > highestNow → we had a Lower High.

If highestNow > highestPrev → we now have a Higher High.

Alert fires only when the sequence is LH → HH.

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.