OPEN-SOURCE SCRIPT
Five Session by Mach0

Five Session — Customizable Trading Sessions with Opening Range
Overview
Five Session highlights up to five fully customizable trading sessions directly on your chart. Each session is drawn as a box that tracks the session's high and low in real time, with an optional label, Fibonacci retracement levels, and an Opening Range with breakout alerts.
Designed for intraday traders who work with session-based concepts such as the London/New York overlap, Asian range breakouts, or opening range strategies.
Features
- 5 independent sessions — each with its own time window, label, and color. Defaults cover London, New York, Tokyo, and two custom slots, but every session can be freely reconfigured.
- Session boxes — automatically track the high/low of the session as it develops. Choose line style, line width, and background opacity, or hide historical boxes to keep the chart clean.
- Extend modes — keep session levels projected to the right after the session closes ("Extend" or "Extend + End line"), useful for trading reactions to prior-session highs and lows.
- Fibonacci levels (experimental) — plots the 0.382, 0.5, and 0.618 retracement levels of the session range inside each box.
- Opening Range — marks the high/low of the first N minutes of each session (lookback configurable, default 30 minutes) with its own color and style.
- Timezone support — set any timezone (e.g. "America/New_York", "GMT+2") so sessions stay correct regardless of the chart's exchange timezone.
Alerts
- Session started / ended — separate alert conditions for each of the five sessions.
- Opening Range breakout — fires when price closes above the opening range high (bullish) or below the opening range low (bearish) of a session.
- Optional on-chart markers ("Start"/"End" and "Bull"/"Bear") can be toggled in the settings.
Notes
- Works on intraday timeframes from 1 to 60 minutes.
- Session times use the HHMM-HHMM format and support overnight sessions (e.g. 2000-0200).
- Written in Pine Script v6.
This script is for informational and educational purposes only and does not constitute financial advice.
Overview
Five Session highlights up to five fully customizable trading sessions directly on your chart. Each session is drawn as a box that tracks the session's high and low in real time, with an optional label, Fibonacci retracement levels, and an Opening Range with breakout alerts.
Designed for intraday traders who work with session-based concepts such as the London/New York overlap, Asian range breakouts, or opening range strategies.
Features
- 5 independent sessions — each with its own time window, label, and color. Defaults cover London, New York, Tokyo, and two custom slots, but every session can be freely reconfigured.
- Session boxes — automatically track the high/low of the session as it develops. Choose line style, line width, and background opacity, or hide historical boxes to keep the chart clean.
- Extend modes — keep session levels projected to the right after the session closes ("Extend" or "Extend + End line"), useful for trading reactions to prior-session highs and lows.
- Fibonacci levels (experimental) — plots the 0.382, 0.5, and 0.618 retracement levels of the session range inside each box.
- Opening Range — marks the high/low of the first N minutes of each session (lookback configurable, default 30 minutes) with its own color and style.
- Timezone support — set any timezone (e.g. "America/New_York", "GMT+2") so sessions stay correct regardless of the chart's exchange timezone.
Alerts
- Session started / ended — separate alert conditions for each of the five sessions.
- Opening Range breakout — fires when price closes above the opening range high (bullish) or below the opening range low (bearish) of a session.
- Optional on-chart markers ("Start"/"End" and "Bull"/"Bear") can be toggled in the settings.
Notes
- Works on intraday timeframes from 1 to 60 minutes.
- Session times use the HHMM-HHMM format and support overnight sessions (e.g. 2000-0200).
- Written in Pine Script v6.
This script is for informational and educational purposes only and does not constitute financial advice.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.