OPEN-SOURCE SCRIPT
USD Session 8FX - LDN & NY (TF-invariant, Live + Table)

USD Session 8FX — London & New York Bias Index (Pine v6)
What it does
This indicator builds a USD bias score during two trading windows:
London: 08:00–08:45
New York: 15:30–16:00 or 15:30–16:15 (selectable)
It blends 8 instruments into one number:
EURUSD, GBPUSD, AUDUSD, NZDUSD, USDCHF, USDCAD, USDJPY, XAUUSD.
Score > 0 → USD Strong
Score < 0 → USD Weak
How the score is computed
At window start, it stores reference prices; during the window it updates current prices.
For each symbol it computes return = end / start − 1.
Returns are optionally ATR-normalized (to balance volatility across pairs).
Returns are multiplied by weights:
Anti-USD (EUR/GBP/AUD/NZD/XAU): negative weights
USD-base (JPY/CHF/CAD): positive weights
The weighted sum is normalized by the sum of absolute weights → a single comparable Score across days and sessions.
Key features
Dual sessions in one script: toggle London or New York; NY end time 16:00 or 16:15.
ATR normalization (optional): prevents one volatile instrument (e.g., XAUUSD) from dominating the basket.
Min |Score| to trade: sets a threshold so you act only when bias is strong enough.
Top-2 drivers: highlights the two instruments with the largest absolute contribution to the basket (great for instrument selection).
Anti-USD vs USD-base plots: optional secondary lines showing the average move of anti-USD vs USD-base groups (post-normalization, pre-weights).
Theme-aware live table (Light/Dark): readable on light or dark charts; shows % change, weight, contribution, verdict, window, and status (LIVE/CLOSED/WAIT).
Session shading & end label: background shading during the window; at close it stamps “USD Strong/Weak + time window.”
Alerts:
Session close: “USD Strong/Weak – session close.”
Live threshold: alerts when |Score| crosses your live threshold during the window.
Trade Gate (VWAP check)
Your operational filter is built in as a “TRADE GATE” panel that turns OK (green) only if:
The bias is valid → |Score| ≥ Min |Score|, and
At least one of the Top-2 instruments is aligned with its VWAP in the direction of the bias.
VWAP logic (per instrument, not basket):
USD Strong:
Anti-USD (EUR/GBP/AUD/NZD/XAU) should trade below their VWAP (short bias).
USD-base (USDJPY/USDCHF/USDCAD) should trade above their VWAP (long bias).
USD Weak: reverse conditions.
The script computes 8 individual VWAPs (one per instrument). The Gate checks alignment only for the Top-2 contributors to keep things practical.
How to use it
Wait for session close (08:45 LDN; 16:00 or 16:15 NY) to get a frozen Score.
Confirm |Score| ≥ threshold (table shows the OK badge).
Look at the Top-2: if Trade Gate = OK, you have both bias strength and VWAP alignment on at least one prime mover.
Execute with your preferred breaker + retest timing on that instrument.
Manage risk with stops beyond the retest and R-multiple targets.
Recommended starting settings
Min |Score| to trade: 0.12–0.15
ATR length: 14 (tune as desired)
Live |Score| alert: ~0.15
Table theme: Light on white charts, Dark on dark charts
What’s customizable
Session (London / New York + NY end)
Timezone and 1-minute boundary timeframe (keeps the window invariant)
Weights per instrument
ATR normalization on/off & length
Table theme/position
VWAP timeframe for the Gate (blank = current chart TF)
Summary:
A compact, session-aware USD index that’s actionable: it quantifies USD bias, shows who’s driving it (Top-2), and enforces your trade discipline via the VWAP-based Trade Gate.
What it does
This indicator builds a USD bias score during two trading windows:
London: 08:00–08:45
New York: 15:30–16:00 or 15:30–16:15 (selectable)
It blends 8 instruments into one number:
EURUSD, GBPUSD, AUDUSD, NZDUSD, USDCHF, USDCAD, USDJPY, XAUUSD.
Score > 0 → USD Strong
Score < 0 → USD Weak
How the score is computed
At window start, it stores reference prices; during the window it updates current prices.
For each symbol it computes return = end / start − 1.
Returns are optionally ATR-normalized (to balance volatility across pairs).
Returns are multiplied by weights:
Anti-USD (EUR/GBP/AUD/NZD/XAU): negative weights
USD-base (JPY/CHF/CAD): positive weights
The weighted sum is normalized by the sum of absolute weights → a single comparable Score across days and sessions.
Key features
Dual sessions in one script: toggle London or New York; NY end time 16:00 or 16:15.
ATR normalization (optional): prevents one volatile instrument (e.g., XAUUSD) from dominating the basket.
Min |Score| to trade: sets a threshold so you act only when bias is strong enough.
Top-2 drivers: highlights the two instruments with the largest absolute contribution to the basket (great for instrument selection).
Anti-USD vs USD-base plots: optional secondary lines showing the average move of anti-USD vs USD-base groups (post-normalization, pre-weights).
Theme-aware live table (Light/Dark): readable on light or dark charts; shows % change, weight, contribution, verdict, window, and status (LIVE/CLOSED/WAIT).
Session shading & end label: background shading during the window; at close it stamps “USD Strong/Weak + time window.”
Alerts:
Session close: “USD Strong/Weak – session close.”
Live threshold: alerts when |Score| crosses your live threshold during the window.
Trade Gate (VWAP check)
Your operational filter is built in as a “TRADE GATE” panel that turns OK (green) only if:
The bias is valid → |Score| ≥ Min |Score|, and
At least one of the Top-2 instruments is aligned with its VWAP in the direction of the bias.
VWAP logic (per instrument, not basket):
USD Strong:
Anti-USD (EUR/GBP/AUD/NZD/XAU) should trade below their VWAP (short bias).
USD-base (USDJPY/USDCHF/USDCAD) should trade above their VWAP (long bias).
USD Weak: reverse conditions.
The script computes 8 individual VWAPs (one per instrument). The Gate checks alignment only for the Top-2 contributors to keep things practical.
How to use it
Wait for session close (08:45 LDN; 16:00 or 16:15 NY) to get a frozen Score.
Confirm |Score| ≥ threshold (table shows the OK badge).
Look at the Top-2: if Trade Gate = OK, you have both bias strength and VWAP alignment on at least one prime mover.
Execute with your preferred breaker + retest timing on that instrument.
Manage risk with stops beyond the retest and R-multiple targets.
Recommended starting settings
Min |Score| to trade: 0.12–0.15
ATR length: 14 (tune as desired)
Live |Score| alert: ~0.15
Table theme: Light on white charts, Dark on dark charts
What’s customizable
Session (London / New York + NY end)
Timezone and 1-minute boundary timeframe (keeps the window invariant)
Weights per instrument
ATR normalization on/off & length
Table theme/position
VWAP timeframe for the Gate (blank = current chart TF)
Summary:
A compact, session-aware USD index that’s actionable: it quantifies USD bias, shows who’s driving it (Top-2), and enforces your trade discipline via the VWAP-based Trade Gate.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.