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.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.