OPEN-SOURCE SCRIPT
Updated

TJR Session High/Lows

200
This indicator plots the session Highs and Lows for Tokyo (20:00–03:00), London (03:00–08:00), and New York (08:00–17:00).
Each session can be toggled on or off, and you can choose whether to display only the High, only the Low, or both.

Customization options include:

Colors and line styles (Solid, Dashed, Dotted) for each session

Line width

Optional vertical markers at the session boundaries (20:00, 03:00, 08:00, 17:00) – dashed blue lines by default

The indicator updates dynamically: session High/Low levels are recalculated in real time as new bars come in, and only the most recent session lines are shown (no clutter from past sessions).

Default session times are set for Tokyo, London, and New York, but you can adjust them if needed.
Release Notes
This indicator plots the session Highs and Lows for Tokyo (20:00–03:00), London (03:00–08:00), and New York (08:00–17:00).
Each session can be toggled on or off, and you can choose whether to display only the High, only the Low, or both.

Customization options include:

Colors and line styles (Solid, Dashed, Dotted) for each session

Line width

Optional vertical markers at the session boundaries (20:00, 03:00, 08:00, 17:00) – dashed blue lines by default

The indicator updates dynamically: session High/Low levels are recalculated in real time as new bars come in, and only the most recent session lines are shown (no clutter from past sessions).

Default session times are set for Tokyo, London, and New York, but you can adjust them if needed.
Release Notes
New features & changes

“Candle range (TJR)” verticals
Anchor on the session’s first candle; the vertical line extends up to the current session High (updates dynamically). The classic Full height mode is still available.

Anti-ghosting / no flicker on the last bar
Hard anchors by bar index + drawing only on confirmed bars → no stray verticals on the current candle.

More robust session boundary detection
Uses session state changes (start*/end*) instead of time("1700-1700"), making it stable across timeframes.

Start H/L lines from the actual extremum (option)
Start from extremum candle lets High/Low lines begin at the candle that set the extreme instead of the session open.

Default session colors changed

Tokyo: black (was lime)

London: red (was blue)

New York: blue (was red)

Vertical markers ON by default
Show vertical markers = ON (previously OFF).

Default vertical marker mode: TJR
Marker type = Candle range (TJR).

Default vertical marker appearance
Marker color = red, Marker line style = Solid, Marker width = 1.

Cleanup & safety
Properly clears verticals when sessions/markers are turned off; no vertical at 17:00 NY (session end doesn’t imply a new-session start).

Default behavior changes (user-visible)

Verticals are visible immediately after adding the indicator (ON by default).

Verticals use TJR mode by default (not Full height).

Session colors updated (Tokyo=black, London=red, NY=blue).

Vertical style defaults to Solid, color red, width 1.

How to restore the “old” look

Set Marker type → Full height.

Set Show vertical markers → OFF (if you don’t want verticals).

Revert session colors to: Tokyo lime, London blue, NY red.

(Optional) Disable Start from extremum candle to start H/L at session open.

Under-the-hood improvements

More reliable resets and updates at session start.

Stores start-bar indices and extreme-bar indices (for TJR logic).

Prevents duplicate verticals when switching modes.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.