OPEN-SOURCE SCRIPT

Lightning Session Levels

92
Lightning Session Levels (LSL) draws clean, non-repainting levels for the major market sessions and a compact HUD in the top-right corner. It’s built to be lightweight, readable, and “set-and-forget” for intraday traders.

What it shows

Session High/Low and Open/Close levels for:

ASIA (00:00–08:00 UTC)

EUROPE (07:00–16:00 UTC)

US (13:30–20:00 UTC)

OVERNIGHT (20:00–24:00 UTC)

HUD panel:

Current active session

Countdown to the next US session (auto-calculated from UTC)https://www.tradingview.com/x/ECKOMGVH/

How it works (non-repainting)

Levels are anchored at session close. Each line is created once on the confirmed closing bar of the session (x2 = session end).

Optional Extend Right keeps the level projecting forward without changing the anchor (no “drifting”).

All drawings are pinned to the right price scale for stable reading.

Inputs

Show HUD — toggle the top-right panel.

Show Levels — master switch for drawing levels.

Draw High/Low — H/L session levels.

Draw Open/Close — O/C session levels.

Extend Right — extend all session lines to the future.

Keep N past sessions per market — FIFO limit per session group (default 12).

ASIA / EUROPE / US / OVERNIGHT — enable/disable specific sessions.

Style & palette

Consistent “Lightning” colors:

ASIA = Cyan, EUROPE = Violet, US = Amber, OVERNIGHT = Teal

Labels are always size: Normal for readability.

HUD uses a dark, subtle two-tone background to stay out of the way.

Recommended use

Timeframes: intraday (1m → 4h).
On 1D and higher, TradingView’s session-window time() filters won’t match intraday windows, so levels won’t plot (by design).

Markets: crypto, indices, FX, equities — any symbol where intraday session context helps.

Notes & limitations

Fixed UTC windows. The US window is set to 13:30–20:00 UTC. Daylight-saving shifts (DST) are not auto-adjusted; if you need region-specific DST behavior, treat this as a consistent UTC model.

The HUD timer counts down to the next US open from the current UTC clock.

Draw limits are capped (500 lines, 500 labels) for performance and stability.

Quick start

Add Lightning Session Levels to your chart.

Toggle Draw High/Low and/or Draw Open/Close.

Turn on Extend Right if you want the levels to project forward.

Enable only the sessions you care about (e.g., just EUROPE and US).

Use Keep N past sessions to control clutter (e.g., 6–12).

Disclaimer

This tool is for educational/informational purposes only and is not financial advice. Past session behavior does not guarantee future results. Always manage risk.

คำจำกัดสิทธิ์ความรับผิดชอบ

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.