PROTECTED SOURCE SCRIPT
Mis à jour Trading Sessions By TheTradingSmurf

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Trading Sessions By TheTradingSmurf
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Highlights the 3 major trading sessions:
• Asia (00–09 GMT)
• London (08–17 GMT)
• New York (13–22 GMT)
━━━━━━━━━━ FEATURES ━━━━━━━━━━
✓ Shows only the last 2 sessions (48h lookback)
✓ Session High / Low / Mid lines
✓ Labels at line end with 24h / 48h tag
✓ Font colors match session colors by default
✓ Configurable line widths & extensions
✓ Optional info block (Range / Avg / High / Low / Mid)
✓ Toggle Open/Close lines, averages, and ranges
━━━━━━━━━━ DEFAULTS ━━━━━━━━━━
• Minimal view → only H/L/M lines
• Asia = Orange
• London = Blue
• New York = Green
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Ideal for liquidity mapping, overlap awareness,
and market structure analysis.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Trading Sessions By TheTradingSmurf
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Highlights the 3 major trading sessions:
• Asia (00–09 GMT)
• London (08–17 GMT)
• New York (13–22 GMT)
━━━━━━━━━━ FEATURES ━━━━━━━━━━
✓ Shows only the last 2 sessions (48h lookback)
✓ Session High / Low / Mid lines
✓ Labels at line end with 24h / 48h tag
✓ Font colors match session colors by default
✓ Configurable line widths & extensions
✓ Optional info block (Range / Avg / High / Low / Mid)
✓ Toggle Open/Close lines, averages, and ranges
━━━━━━━━━━ DEFAULTS ━━━━━━━━━━
• Minimal view → only H/L/M lines
• Asia = Orange
• London = Blue
• New York = Green
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Ideal for liquidity mapping, overlap awareness,
and market structure analysis.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Notes de version
Trading Sessions By TheTradingSmurf — EST sessions + optional rangesWHAT IT DOES
- Draws Asia, London, and New York sessions (boxes + H/L/M/O/C/AVG) in EST.
- Clean labels on the right edge for High / Low / Mid; optional info block (range/avg).
- No stray “full-height last-bar” lines (session lines update safely and stop at bar_index).
OPTIONAL RANGES (OFF by default)
- Premarket High/Low → color/thickness per market (default RED, width 2).
- Initial Balance (first N minutes of session) High/Low → per market (default YELLOW, width 1).
- Opening Range (first M minutes of session) High/Low → per market (default WHITE, width 2).
- Labels use smaller font to match the session style.
MARKET-AWARE BEHAVIOR
- Only shows optional ranges for the CURRENT market:
• During PREMARKET: builds the premarket range live.
• When the SESSION starts: the premarket lines persist across the whole session.
• After the session ends: all optional-range objects for that market are cleared.
- Asia, London, NY work independently with their own premarket windows.
CONFIGURABLE INPUTS
- Session times (EST) for Asia/London/NY.
- Toggle: Info block, session O/C lines, H/L/M lines, extend right, label age tags.
- Optional ranges toggles: Premarket HL, IB HL, OR HL.
- IB minutes (default 60) and OR minutes (default 15).
- Per-market colors + widths for Premarket / IB / OR.
- Hide objects older than N hours (default 48h).
DEFAULT STYLE
- Premarket: red
- Initial Balance: yellow (thin)
- Opening Range: white
NOTES
- Designed for intraday charts; throws a runtime message on D/W/M.
- All times are locked to America/New_York (EST/EDT) automatically.
- Efficient object management (deletes stale boxes/lines/labels) to keep charts snappy.
Notes de version
minor updateNotes de version
minor updateNotes de version
minor updateNotes de version
minor updateNotes de version
minor updateScript protégé
Ce script est publié en source fermée. Toutefois, vous pouvez l'utiliser librement et sans aucune restriction - en savoir plus ici.
Clause de non-responsabilité
Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.
Script protégé
Ce script est publié en source fermée. Toutefois, vous pouvez l'utiliser librement et sans aucune restriction - en savoir plus ici.
Clause de non-responsabilité
Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.