PROTECTED SOURCE SCRIPT
Cập nhật 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.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Phát hành các Ghi chú
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.
Phát hành các Ghi chú
minor updatePhát hành các Ghi chú
minor updatePhát hành các Ghi chú
minor updatePhát hành các Ghi chú
minor updatePhát hành các Ghi chú
minor updateMã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể tự do sử dụng tập lệnh mà không có bất kỳ hạn chế nào – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể tự do sử dụng tập lệnh mà không có bất kỳ hạn chế nào – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.