OPEN-SOURCE SCRIPT
Kim Lisa – Accurate PDH/PDL + PWH/PWL + Weekend Gap (EST)

This indicator provides highly accurate market structure reference levels using official New York (EST) session data. It is designed for traders who rely on precise daily and weekly highs/lows as well as the weekly opening gap between Friday’s close and Monday’s open.
✔ Accurate Daily & Weekly Levels (EST)
The indicator fetches all levels directly from the D and W timeframes using request.security().
This ensures the levels are always correct, regardless of:
your broker
your chart’s timezone
your instrument
or your platform settings
You will always see the true official market structure:
PDH – Previous Day High
PDL – Previous Day Low
PWH – Previous Week High
PWL – Previous Week Low
These levels are essential for liquidity targeting, reversals, sweeps, and intraday trading.
✔ Clean Visual Lines + Labels
Each level is displayed as a clean, thin line on the chart with a small label for quick identification:
PDH (red)
PDL (green)
PWH (purple)
PWL (light purple)
The labels automatically update and move with the chart.
✔ New Week Opening Gap (Friday Close → Monday Open)
The indicator also identifies and highlights the Weekend Opening Gap, which forms between:
Friday’s official NY close (17:00 EST)
Monday’s official NY open
If a gap exists, the indicator draws a shaded box across the chart and labels it:
“NEW WEEK OPENING GAP”
This makes it easy to spot imbalances that often act as magnets for price during the new trading week.
✔ Works on ALL Timeframes
Intraday (1m–15m), swing trading, and even higher timeframes.
The levels always come from the correct higher timeframe data.
⭐ Ideal For:
Smart Money Concepts (SMC)
ICT trading
Liquidity strategies
Reversal traders
Scalpers
Gap traders
Market structure analysis
Opening week setups
💡 Why This Indicator Is Better
Most PDH/PDL indicators recalc levels from the local chart timezone, which leads to incorrect values.
This one pulls official NY session data, giving you:
✔ Consistency
✔ Accuracy
✔ Institutional-grade levels
✔ Perfect alignment with professional trading models
✔ Accurate Daily & Weekly Levels (EST)
The indicator fetches all levels directly from the D and W timeframes using request.security().
This ensures the levels are always correct, regardless of:
your broker
your chart’s timezone
your instrument
or your platform settings
You will always see the true official market structure:
PDH – Previous Day High
PDL – Previous Day Low
PWH – Previous Week High
PWL – Previous Week Low
These levels are essential for liquidity targeting, reversals, sweeps, and intraday trading.
✔ Clean Visual Lines + Labels
Each level is displayed as a clean, thin line on the chart with a small label for quick identification:
PDH (red)
PDL (green)
PWH (purple)
PWL (light purple)
The labels automatically update and move with the chart.
✔ New Week Opening Gap (Friday Close → Monday Open)
The indicator also identifies and highlights the Weekend Opening Gap, which forms between:
Friday’s official NY close (17:00 EST)
Monday’s official NY open
If a gap exists, the indicator draws a shaded box across the chart and labels it:
“NEW WEEK OPENING GAP”
This makes it easy to spot imbalances that often act as magnets for price during the new trading week.
✔ Works on ALL Timeframes
Intraday (1m–15m), swing trading, and even higher timeframes.
The levels always come from the correct higher timeframe data.
⭐ Ideal For:
Smart Money Concepts (SMC)
ICT trading
Liquidity strategies
Reversal traders
Scalpers
Gap traders
Market structure analysis
Opening week setups
💡 Why This Indicator Is Better
Most PDH/PDL indicators recalc levels from the local chart timezone, which leads to incorrect values.
This one pulls official NY session data, giving you:
✔ Consistency
✔ Accuracy
✔ Institutional-grade levels
✔ Perfect alignment with professional trading models
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.