PROTECTED SOURCE SCRIPT
已更新

Worstfx Sessions

39
This indicator is designed to outline major Forex/Futures market sessions.
It is built for traders who want visual clarity on sessions & important market structure zones.

✅ Features:
• Automatic shading of Asia, London, Pre-NY, and NY sessions.
• Centered session titles that adapt to each window.
• 6:00 pm ET day divider (new trading day) with vertical weekday labels.
• Lightweight design — no extra clutter, just structure.

⚙️Customization
• Session colors & opacity: change each session’s look.
• Titles: toggle on/off, adjust color and font size.
• Dividers: toggle day divider on/off, change line color, choose weekday label color/size.
發行說明
This indicator is designed to outline major Forex/Futures market sessions.
It is built for traders who want visual clarity on sessions & important market structure zones.

✅ Features:
• Automatic shading of Asia, London, Pre-NY, and NY sessions.
• Centered session titles that adapt to each window.
• 6:00 pm ET day divider (new trading day) with vertical weekday labels.
• Lightweight design — no extra clutter, just structure.

⚙️Customization
• Session colors & opacity: change each session’s look.
• Titles: toggle on/off, adjust color and font size.
• Dividers: toggle day divider on/off, change line color, choose weekday label color/size.
發行說明
Master the rhythm of the markets.
This tool highlights Asia, London, Pre-NY, and NY sessions with clean shading, titles, and day dividers — plus next-day previews and a dedicated Asia swing-entry marker (7:45 pm ET). Stay one step ahead with a minimal, professional layout

Core Features
• Automatic Shading → Highlights Asia, London, Pre-NY, and NY sessions directly on your chart.
• Session Titles → Centered titles for each session, with adjustable color and font size.
• 6:00 pm ET Divider → Marks the start of a new trading day, with vertical weekday labels.
• Lightweight Design → Focused on clarity — no clutter, only structure.



⚙️ Customization
• Session Colors & Opacity → Customize shading for each session.
• Titles → Toggle on/off, select color, adjust font size.
• Divider Line → Customize color, and choose between Normal / Thick / Dotted styles.
• Weekday Labels → Adjust label color & font size.



🔄 New Features
• Next-Day Session Preview → Displays tomorrow’s London, Pre-NY, NY, and Asia sessions one day ahead, with custom opacity control.
• Today’s Asia Session Box → Dedicated 7:45 pm–2:00 am highlight for the current trading day (with its own opacity control).
• Asia Swing Entry Marker → Marks the first 7:45 pm ET close each day.
• Option to display either a “*” or “🚪”.
• Adjustable tick offset keeps the marker above the wick for clarity.
發行說明
//version=5
indicator("Worstfx Sessions — Minimal", overlay=true, max_labels_count=500)

// ================= Inputs (parameters only) =================
string TZ = input.string("America/New_York", "Timezone (ET)")
color asiaColor = input.color(color.new(color.yellow, 85), "Asia (7:45pm–2:00am)")
color londonColor = input.color(color.new(color.purple, 85), "London (2:00–7:00am)")
color preNyColor = input.color(color.new(color.rgb(135,206,250), 85), "Pre NY (7:00–8:45am)")
color nyColor = input.color(color.new(color.rgb(135,206,250), 75), "NY (9:15am–3:00pm)")

// ================= Session windows =================
asiaA = time(timeframe.period, "1945-2359", TZ)
asiaB = time(timeframe.period, "0000-0200", TZ)
london = time(timeframe.period, "0200-0700", TZ)
preNY = time(timeframe.period, "0700-0845", TZ)
ny = time(timeframe.period, "0915-1500", TZ)

// Booleans
inAsia = not na(asiaA) or not na(asiaB)
inLondon = not na(london)
inPreNY = not na(preNY)
inNY = not na(ny)

// ================= Shading =================
bgcolor(inAsia ? asiaColor : na)
bgcolor(inLondon ? londonColor : na)
bgcolor(inPreNY ? preNyColor : na)
bgcolor(inNY ? nyColor : na)

// ================= Minimal labels =================
asiaStart = inAsia and not nz(inAsia[1])
londonStart = inLondon and not nz(inLondon[1])
preNYStart = inPreNY and not nz(inPreNY[1])
nyStart = inNY and not nz(inNY[1])

if asiaStart
label.new(bar_index, high, "Asia", xloc=xloc.bar_index, yloc=yloc.price,
textcolor=color.white, style=label.style_none, size=size.tiny, textalign=text.align_center)
if londonStart
label.new(bar_index, high, "London", xloc=xloc.bar_index, yloc=yloc.price,
textcolor=color.white, style=label.style_none, size=size.tiny, textalign=text.align_center)
if preNYStart
label.new(bar_index, high, "Pre NY", xloc=xloc.bar_index, yloc=yloc.price,
textcolor=color.white, style=label.style_none, size=size.tiny, textalign=text.align_center)
if nyStart
label.new(bar_index, high, "NY", xloc=xloc.bar_index, yloc=yloc.price,
textcolor=color.white, style=label.style_none, size=size.tiny, textalign=text.align_center)

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。