OPEN-SOURCE SCRIPT
Key Levels by fehzy

Key Levels draws the price levels intraday traders usually mark by hand, as dotted lines that start at the candle where each level formed and extend past current price, with labels.
LEVELS
- Day High/Low (live) and Previous Day High/Low (PDH/PDL)
- Week High/Low (live) and Previous Week High/Low (PWH/PWL)
- Asia, London and New York session High/Low
- Daily Open, Weekly Open, and Market Open price (default 09:30 New York) with an optional vertical line
HOW IT WORKS
- Session presets: Full sessions (Tokyo 09:00-18:00 Tokyo time, London 08:00-17:00 London time, New York 08:00-17:00 NY time), ICT killzones (Asia 20:00-00:00, London 02:00-05:00, NY 07:00-10:00, all NY time), or Custom times with a separate timezone per session. Each session runs on its own clock, so levels stay correct during the weeks when US and UK daylight saving dates differ.
- Session highs/lows update live while a session is open and freeze when it closes.
- Day/week boundary option: chart daily candle, NY 17:00, NY midnight, or UTC 00:00, so PDH/PDL can match the daily candles of the broker you actually trade on.
- Swept levels option: once price trades through a completed level (PDH/PDL, PWH/PWL, session H/L), the line can keep extending, stop at the sweep candle, or be hidden.
- Session resets also work on charts without overnight data (a long data gap starts a new session).
HOW TO USE
Apply on a 15m or lower chart. Choose the session preset and day boundary that match your market and broker. Use the levels as reference zones for liquidity and reactions. The script does not generate buy or sell signals.
LIMITATIONS
- Sessions are designed for 15m and lower. On 1H, a 09:30 start falls inside the 09:00 candle.
- Only the most recent instance of each level is drawn, not past days.
- Day and session levels show on intraday charts only. Weekly levels show on intraday and daily.
- Labels can overlap when two levels share the same price.
LEVELS
- Day High/Low (live) and Previous Day High/Low (PDH/PDL)
- Week High/Low (live) and Previous Week High/Low (PWH/PWL)
- Asia, London and New York session High/Low
- Daily Open, Weekly Open, and Market Open price (default 09:30 New York) with an optional vertical line
HOW IT WORKS
- Session presets: Full sessions (Tokyo 09:00-18:00 Tokyo time, London 08:00-17:00 London time, New York 08:00-17:00 NY time), ICT killzones (Asia 20:00-00:00, London 02:00-05:00, NY 07:00-10:00, all NY time), or Custom times with a separate timezone per session. Each session runs on its own clock, so levels stay correct during the weeks when US and UK daylight saving dates differ.
- Session highs/lows update live while a session is open and freeze when it closes.
- Day/week boundary option: chart daily candle, NY 17:00, NY midnight, or UTC 00:00, so PDH/PDL can match the daily candles of the broker you actually trade on.
- Swept levels option: once price trades through a completed level (PDH/PDL, PWH/PWL, session H/L), the line can keep extending, stop at the sweep candle, or be hidden.
- Session resets also work on charts without overnight data (a long data gap starts a new session).
HOW TO USE
Apply on a 15m or lower chart. Choose the session preset and day boundary that match your market and broker. Use the levels as reference zones for liquidity and reactions. The script does not generate buy or sell signals.
LIMITATIONS
- Sessions are designed for 15m and lower. On 1H, a 09:30 start falls inside the 09:00 candle.
- Only the most recent instance of each level is drawn, not past days.
- Day and session levels show on intraday charts only. Weekly levels show on intraday and daily.
- Labels can overlap when two levels share the same price.
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。