OPEN-SOURCE SCRIPT
Highest High, Lowest Low 4H 30 Bars Lookback

This indicator plots the Highest High and Lowest Low levels over a selected lookback period, along with a Simple Moving Average (SMA). It helps identify breakout levels and trend direction.
Green Line → Highest High over the chosen period.
Red Line → Lowest Low over the chosen period.
Cyan Line → SMA of closing prices.
How to use:
A breakout above the Highest High may indicate a bullish move.
A breakdown below the Lowest Low may indicate a bearish move.
The SMA helps filter signals by trend direction.
Alerts are triggered when the price crosses above the Highest High or below the Lowest Low.
Green Line → Highest High over the chosen period.
Red Line → Lowest Low over the chosen period.
Cyan Line → SMA of closing prices.
How to use:
A breakout above the Highest High may indicate a bullish move.
A breakdown below the Lowest Low may indicate a bearish move.
The SMA helps filter signals by trend direction.
Alerts are triggered when the price crosses above the Highest High or below the Lowest Low.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.