OPEN-SOURCE SCRIPT
已更新 Best Sessions - New York, London & Asia - Xcelerate Trade

Xcelerate — Best Sessions: New York, London & Asia | Xcelerate Trade
A professional session-mapping overlay from the Xcelerate Trade team. It highlights the three major forex / index trading windows — Asia, London (Europe) and New York — plus a full daily range toolkit, all anchored to America/New_York (EST/EDT). Built for intraday traders who plan entries around session highs/lows, daily open/close and kill-zone timing.
What you get on the chart
Three session boxes (intraday only)
Each session draws a live box from session open to the current bar, then freezes it as history when the session ends:
Session Default window (EST) Color
Asia
20:00 → 05:00
Yellow
London
03:00 → 12:00
Blue
New York
09:30 → 16:00
Red
Live box — grows with price during the active session (high/low tracked in real time).
Historical boxes — completed sessions saved to chart history (FIFO cap per session).
Outline-only mode — optional per session: border highlight with transparent fill (“Daily Highlights” style).
Session times are fully editable via input.session — adapt them to your broker’s server time or personal kill-zone preferences.
Daily box (00:00 → 24:00 NY)
Current day — live lime box from midnight NY to midnight NY, expanding with the day’s high/low.
Historical days — completed daily ranges saved to history (default keep: 31 days).
Outline-only — optional transparent fill for a cleaner chart.
Daily high / low labels
D Hi and D Lo labels at the exact timestamp of the day’s extreme.
Separate toggles for historical and live labels.
Customizable colors, decimal precision and vertical offset (ticks).
Daily open / close lines
Horizontal Open line (purple by default) and Close/Last line (gray) spanning the full NY trading day.
Optional historical and live price labels on the lines.
Label placement by ticks or percentage offset from the daily range.
Global controls
Show Asia / Europe / New York — master toggles to hide entire sessions without digging into each group.
Per-session history — independent keep limits (default 31 sessions each).
Smart drawing guards — automatic FIFO caps scaled to your timeframe so you never hit TradingView’s object limits (boxes, lines, labels). Works from 1-second charts up to monthly.
Timezone accuracy
All session detection and daily rollover use America/New_York consistently:
Session time() checks use the NY timezone string.
Daily box boundaries use timestamp(TIMEZONE, …) at 00:00 NY.
Daily open pulled via request.security(..., "1D", open) for alignment with the daily candle.
This keeps Asia / London / NY boxes and the daily box synchronized — no drift between session logic and daily logic.
Suggested settings
Forex (EURUSD, GBPUSD, XAUUSD) on 1m–15m: all three sessions ON, daily box + D Hi/Lo labels ON, open/close lines ON.
US indices (SPX, NQ) on 1m–5m: focus on New York session; optionally hide Asia if your broker’s overnight session is quiet.
Cleaner chart: enable Outline only on sessions and/or daily box; turn off historical labels if you only care about today.
Higher timeframes (1H+): session boxes auto-disable on daily+ charts (isIntraday guard) — only the daily toolkit remains active.
Inputs overview
Group What you control
Session schedules
Asia / London / NY time windows
Colors
Fill + border per session and daily
Daily Box
Historical + live, outline mode
Daily Labels
Hi/Lo labels, colors, offsets
Asia / London / NY
Per-session historical + live toggles
GLOBAL
Master show/hide per session
Daily Lines
Open/Close lines + labels
Promo Banner
Flash timing (minutes hidden / seconds visible)
Notes & disclaimers
Session boxes appear on intraday timeframes only (below 1D). On daily/weekly charts the session engine is disabled automatically.
Session boxes track the high/low range inside the window, not volume or order flow — use them as a time + range reference, not as a signal generator.
Default session times follow common EST conventions; verify against your broker if you trade instruments with different session cuts (e.g. futures RTH vs ETH).
Pine Script v6.
Built and maintained by the Xcelerate Trade team. Asia, London and New York session boxes + daily range, Hi/Lo labels and open/close lines — all in one clean, NY-timezone-aware overlay.
A professional session-mapping overlay from the Xcelerate Trade team. It highlights the three major forex / index trading windows — Asia, London (Europe) and New York — plus a full daily range toolkit, all anchored to America/New_York (EST/EDT). Built for intraday traders who plan entries around session highs/lows, daily open/close and kill-zone timing.
What you get on the chart
Three session boxes (intraday only)
Each session draws a live box from session open to the current bar, then freezes it as history when the session ends:
Session Default window (EST) Color
Asia
20:00 → 05:00
Yellow
London
03:00 → 12:00
Blue
New York
09:30 → 16:00
Red
Live box — grows with price during the active session (high/low tracked in real time).
Historical boxes — completed sessions saved to chart history (FIFO cap per session).
Outline-only mode — optional per session: border highlight with transparent fill (“Daily Highlights” style).
Session times are fully editable via input.session — adapt them to your broker’s server time or personal kill-zone preferences.
Daily box (00:00 → 24:00 NY)
Current day — live lime box from midnight NY to midnight NY, expanding with the day’s high/low.
Historical days — completed daily ranges saved to history (default keep: 31 days).
Outline-only — optional transparent fill for a cleaner chart.
Daily high / low labels
D Hi and D Lo labels at the exact timestamp of the day’s extreme.
Separate toggles for historical and live labels.
Customizable colors, decimal precision and vertical offset (ticks).
Daily open / close lines
Horizontal Open line (purple by default) and Close/Last line (gray) spanning the full NY trading day.
Optional historical and live price labels on the lines.
Label placement by ticks or percentage offset from the daily range.
Global controls
Show Asia / Europe / New York — master toggles to hide entire sessions without digging into each group.
Per-session history — independent keep limits (default 31 sessions each).
Smart drawing guards — automatic FIFO caps scaled to your timeframe so you never hit TradingView’s object limits (boxes, lines, labels). Works from 1-second charts up to monthly.
Timezone accuracy
All session detection and daily rollover use America/New_York consistently:
Session time() checks use the NY timezone string.
Daily box boundaries use timestamp(TIMEZONE, …) at 00:00 NY.
Daily open pulled via request.security(..., "1D", open) for alignment with the daily candle.
This keeps Asia / London / NY boxes and the daily box synchronized — no drift between session logic and daily logic.
Suggested settings
Forex (EURUSD, GBPUSD, XAUUSD) on 1m–15m: all three sessions ON, daily box + D Hi/Lo labels ON, open/close lines ON.
US indices (SPX, NQ) on 1m–5m: focus on New York session; optionally hide Asia if your broker’s overnight session is quiet.
Cleaner chart: enable Outline only on sessions and/or daily box; turn off historical labels if you only care about today.
Higher timeframes (1H+): session boxes auto-disable on daily+ charts (isIntraday guard) — only the daily toolkit remains active.
Inputs overview
Group What you control
Session schedules
Asia / London / NY time windows
Colors
Fill + border per session and daily
Daily Box
Historical + live, outline mode
Daily Labels
Hi/Lo labels, colors, offsets
Asia / London / NY
Per-session historical + live toggles
GLOBAL
Master show/hide per session
Daily Lines
Open/Close lines + labels
Promo Banner
Flash timing (minutes hidden / seconds visible)
Notes & disclaimers
Session boxes appear on intraday timeframes only (below 1D). On daily/weekly charts the session engine is disabled automatically.
Session boxes track the high/low range inside the window, not volume or order flow — use them as a time + range reference, not as a signal generator.
Default session times follow common EST conventions; verify against your broker if you trade instruments with different session cuts (e.g. futures RTH vs ETH).
Pine Script v6.
Built and maintained by the Xcelerate Trade team. Asia, London and New York session boxes + daily range, Hi/Lo labels and open/close lines — all in one clean, NY-timezone-aware overlay.
發行說明
Xcelerate — Best Sessions: New York, London & Asia | Xcelerate TradeA professional session-mapping overlay from the Xcelerate Trade team. It highlights the three major forex / index trading windows — Asia, London (Europe) and New York — plus a full daily range toolkit, all anchored to America/New_York (EST/EDT). Built for intraday traders who plan entries around session highs/lows, daily open/close and kill-zone timing.
What you get on the chart
Three session boxes (intraday only)
Each session draws a live box from session open to the current bar, then freezes it as history when the session ends:
Session Default window (EST) Color
Asia
20:00 → 05:00
Yellow
London
03:00 → 12:00
Blue
New York
09:30 → 16:00
Red
Live box — grows with price during the active session (high/low tracked in real time).
Historical boxes — completed sessions saved to chart history (FIFO cap per session).
Outline-only mode — optional per session: border highlight with transparent fill (“Daily Highlights” style).
Session times are fully editable via input.session — adapt them to your broker’s server time or personal kill-zone preferences.
Daily box (00:00 → 24:00 NY)
Current day — live lime box from midnight NY to midnight NY, expanding with the day’s high/low.
Historical days — completed daily ranges saved to history (default keep: 31 days).
Outline-only — optional transparent fill for a cleaner chart.
Daily high / low labels
D Hi and D Lo labels at the exact timestamp of the day’s extreme.
Separate toggles for historical and live labels.
Customizable colors, decimal precision and vertical offset (ticks).
Daily open / close lines
Horizontal Open line (purple by default) and Close/Last line (gray) spanning the full NY trading day.
Optional historical and live price labels on the lines.
Label placement by ticks or percentage offset from the daily range.
Global controls
Show Asia / Europe / New York — master toggles to hide entire sessions without digging into each group.
Per-session history — independent keep limits (default 31 sessions each).
Smart drawing guards — automatic FIFO caps scaled to your timeframe so you never hit TradingView’s object limits (boxes, lines, labels). Works from 1-second charts up to monthly.
Timezone accuracy
All session detection and daily rollover use America/New_York consistently:
Session time() checks use the NY timezone string.
Daily box boundaries use timestamp(TIMEZONE, …) at 00:00 NY.
Daily open pulled via request.security(..., "1D", open) for alignment with the daily candle.
This keeps Asia / London / NY boxes and the daily box synchronized — no drift between session logic and daily logic.
Suggested settings
Forex (EURUSD, GBPUSD, XAUUSD) on 1m–15m: all three sessions ON, daily box + D Hi/Lo labels ON, open/close lines ON.
US indices (SPX, NQ) on 1m–5m: focus on New York session; optionally hide Asia if your broker’s overnight session is quiet.
Cleaner chart: enable Outline only on sessions and/or daily box; turn off historical labels if you only care about today.
Higher timeframes (1H+): session boxes auto-disable on daily+ charts (isIntraday guard) — only the daily toolkit remains active.
Inputs overview
Group What you control
Session schedules
Asia / London / NY time windows
Colors
Fill + border per session and daily
Daily Box
Historical + live, outline mode
Daily Labels
Hi/Lo labels, colors, offsets
Asia / London / NY
Per-session historical + live toggles
GLOBAL
Master show/hide per session
Daily Lines
Open/Close lines + labels
Promo Banner
Flash timing (minutes hidden / seconds visible)
Notes & disclaimers
Session boxes appear on intraday timeframes only (below 1D). On daily/weekly charts the session engine is disabled automatically.
Session boxes track the high/low range inside the window, not volume or order flow — use them as a time + range reference, not as a signal generator.
Default session times follow common EST conventions; verify against your broker if you trade instruments with different session cuts (e.g. futures RTH vs ETH).
Pine Script v6.
Built and maintained by the Xcelerate Trade team. Asia, London and New York session boxes + daily range, Hi/Lo labels and open/close lines — all in one clean, NY-timezone-aware overlay.
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。