OPEN-SOURCE SCRIPT
Updated

Historical Price Levels

233
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
Release Notes
Historical Price Levels

Displays 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

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.