Multi-Day Liquidity Map (PDH/PDL History)This indicator implements a persistent multi-session liquidity level tracking framework for daily, weekly, and monthly ranges.
Unlike traditional Previous Day High / Previous Day Low (PDH / PDL) indicators that only plot the latest session levels, this script stores and extends historical unmitigated highs and lows across multiple sessions. Levels remain active until price interacts with them, allowing traders to visualize untouched liquidity pools and structural reference levels.
Core methodology:
• Session-based high/low detection for daily, weekly, and monthly ranges
• Persistent historical level tracking using dynamic arrays
• Level lifecycle management (creation, extension, optional removal after mitigation)
• Touch detection logic with real-time alerts on first interaction
• User-configurable history depth and visualization parameters
Key features:
• Multi-day PDH/PDL history visualization
• Previous Week High/Low (PWH/PWL) and Previous Month High/Low (PMH/PML) support
• Optional level removal after mitigation
• Custom colors, line styles, and labels
• Alert system for first-touch liquidity events
Use cases:
• Liquidity mapping and market structure analysis
• Identifying unmitigated institutional reference levels
• Intraday trading and session-based confluence models
This script is not a simple PDH/PDL plotter but a multi-session liquidity persistence framework designed for structural market analysis.
Previously known as "Previous Day High & Low (PDH/PDL) with History".
Indicateur Pine Script®






















