OPEN-SOURCE SCRIPT
Mis à jour

Fix PIPS - 4 Sessions - FRA / LDN / NY / ASIA

283
4 Sessions draws High/Low range boxes for the four major market sessions — Frankfurt, London, New York and Tokyo.

HOW IT WORKS
Each session is a translucent box that tracks the session's running High/Low as it develops. Session hours are defined in each market's home timezone (Europe/Berlin, Europe/London, America/New_York, Asia/Tokyo), so the boxes always land in the right place regardless of your chart's timezone, and DST transitions in every region are handled automatically — nothing to adjust twice a year.

DEFAULT HOURS (exchange hours, editable)
• Frankfurt — 08:00–09:00 (Xetra open, the hour before London)
• London — 08:00–16:30
• New York — 09:30–16:00 (NYSE)
• Tokyo — 09:00–15:00 (TSE)

SETTINGS
One row per session: enable toggle, color (set fill opacity right in the color picker) and hours. Weekdays only — no weekend boxes on 24/7 markets like crypto. Works on intraday timeframes. Optional on-chart info note with a UA/EN/RU language switch.

ALERTS
Alert conditions fire on each session open (Frankfurt, London, New York, Asia).
Notes de version
Cleaner UI update:

• Removed the on-chart info note (and with it the "Tables" entry in the Style tab).
• Input values are no longer shown in the status line next to the indicator name (display.none on all inputs).
• Settings are now just four rows — one per session: enable, color, hours.

No changes to session logic, timezones or alerts.
Notes de version
Session boxes now fill the full width of the edge candles.

Previously the shaded area stopped at the center of the first and last candle of each session (bar-index anchoring). Boxes are now drawn on time coordinates with a half-bar padding on each side, so the fill reaches the outer edges of the candles.
Notes de version
Two improvements:

• Session boxes now fill the full width of the edge candles, instead of stopping at the center of the first and last candle.

• The Asian session now closes exactly when Frankfurt opens, with no gap or overlap in either half of the year. Tokyo has no DST while Frankfurt does, so a fixed Asian close drifted by an hour seasonally; the close is now anchored to the Frankfurt open and follows DST automatically.

Clause de non-responsabilité

Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.