OPEN-SOURCE SCRIPT

Highest High, Lowest Low + LH→HH Alert

26
Added a persistent variable lastWasLowerHigh that remembers if the last window was a LH.

When a Higher High comes after that, it fires the alert and resets.

No more direct [topPer] lookback → instead it uses logic across bars.

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.