OPEN-SOURCE SCRIPT
Updated Historical Price Levels

Historical Price Levels is a lightweight indicator that visualizes key price extremes over multiple recent time windows.
The indicator automatically calculates and displays the highest high and lowest low for the following periods:
• Last 1 Day
• Last 7 Days
• Last 15 Days
• Last 30 Days
Core Purpose
• Quickly identify recent support and resistance zones
• Provide objective historical context without subjective drawing
• Help traders assess range expansion, compression, and breakout potential
The indicator automatically calculates and displays the highest high and lowest low for the following periods:
• Last 1 Day
• Last 7 Days
• Last 15 Days
• Last 30 Days
Core Purpose
• Quickly identify recent support and resistance zones
• Provide objective historical context without subjective drawing
• Help traders assess range expansion, compression, and breakout potential
Release Notes
Historical Price LevelsDisplays high and low prices for multiple time periods (1, 7, 15, 30 days by default) as dashed lines on the chart.
Features:
- 4 customizable time periods
- Auto-merges overlapping price levels
- Labels offset to avoid overlap
- Uses daily timeframe data for stability
Settings:
- Period 1-4: Number of days for each period
- Show Period 1-4: Toggle display on/off
- Label Offset %: Spacing between labels
- Colors: Customize high/low colors for each period
Tip: Increase Label Offset % if labels overlap.
Release Notes
Simplified View 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.