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.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.