PROTECTED SOURCE SCRIPT
Telah dikemas kini Daily Extremes Buy Sell [Plazo Sullivan Roche Capital]

User Manual — Daily Extremes NY→LDN
Daily Extremes Buy and Sell (2-minute focus) + HTF Dashboard
1) What this indicator does (in plain English)
This tool hunts for intraday reversals that form the extreme of the daily candle—
BUY when a new Low of Day (LOD) prints during the NY-midnight → London close window and daily context favors bulls.
SELL when a new High of Day (HOD) prints in that window and daily context favors bears.
You can keep it pure and simple (new LOD/HOD within the session) or tighten with optional filters:
Daily bias via Daily EMA (+ optional slope)
Distance to the day’s extreme vs ADR
Micro BOS/CHOCH
FVG + retest
One trade per side per day
A compact HTF dashboard (D/H4/H1, default 20 EMA) prints 🟢(above EMA) / 🔴(below EMA) for quick alignment.
2) Quick start (60 seconds)
Load the script on your chart (recommended TF: 2m).
Set your chart timezone to New York if you want exact NY session timing.
Leave defaults loose:
Require Daily Bias? OFF
Use distance filter vs ADR OFF
Require micro BOS/CHOCH OFF
Require FVG + retest OFF
Limit to 1 BUY and 1 SELL per day OFF
Watch for BUY markers on new LOD and SELL markers on new HOD within 00:00–13:00 NY.
Turn Show gate dots (debug) ON briefly to verify the gates.
When you’re comfortable, tighten the logic in this order:
Turn Daily Bias ON → 2) Distance filter ON (0.15–0.20 x ADR) → 3) BOS ON → 4) FVG + retest ON → 5) One-per-side ON.
3) Core logic (formal)
Session window
Uses the session string 0000–1300 (chart timezone).
For exact New York hours, set the chart timezone to New York.
Day context
Tracks bars since the daily session start and computes rolling dayLow / dayHigh.
A new LOD/HOD is identified when today’s rolling extreme updates on the current bar.
Signal base (always on)
BUY base = in session AND new LOD this bar.
SELL base = in session AND new HOD this bar.
Optional gates
Daily Bias (toggle Require Daily Bias?):
Bull: Daily Close > Daily EMA (default 50) and (optionally) EMA slope > 0.
Bear: Daily Close < Daily EMA and (optionally) slope < 0.
Distance filter vs ADR (xADR):
Longs: (close − dayLow) ≤ ADR × maxDistAdr (default 0.20).
Shorts: (dayHigh − close) ≤ ADR × maxDistAdr.
Micro BOS/CHOCH:
Longs: Close ≥ most recent swing high (pivot-based).
Shorts: Close ≤ most recent swing low.
FVG + retest (classic 3-bar):
Bull FVG: low > high[2]; Bear FVG: high < low[2].
We store the mid of the gap after BOS (if required), and the signal requires a retest (price trades through the mid).
One-per-side per day: after a signal fires, suppress another on the same side until the next day.
Visual & alerts
BUY/SELL triangles on chart.
Optional plotted SL (near day-low/ day-high vs rolling extremes) and TP bands (1R/2R/3R).
Alerts: “Daily Bottom Buy” / “Daily Top Sell”.
4) Inputs & what they mean
Signal Window
NY Window (session): 0000–1300 (chart timezone).
Tip: Set chart timezone to New York for true NY hours.
Daily Bias (optional)
Require Daily Bias?: ON = must align with Daily EMA regime.
EMA length for bias: default 50.
Require EMA slope: ON tightens bias to up/down slope.
Optional Confirmation
Require micro BOS/CHOCH: price must break the nearest micro swing.
Require FVG + retest: an FVG after BOS must form and be retested.
Optional Range Filter
Use distance filter vs ADR: proximity to day extreme (keeps entries “at the edge”).
ADR lookback (Daily): default 14.
Max distance (xADR): typical 0.15–0.20.
One-per-day guard
Limit to 1 BUY and 1 SELL per day: prevents over-trading.
Visuals / Debug
Show indicative SL/TP bands: draws SL and 1R/2R/3R.
Show gate dots (debug): gate diagnostics (legend below).
HTF Dashboard
Show HTF Dashboard (D/H4/H1): toggle the panel.
Dashboard EMA Length: default 20 (independent from bias EMA).
5) Reading the HTF Dashboard
Location: top-right table.
Timeframes: D, H4, H1.
Emoji: 🟢 (price > EMA), 🔴 (price < EMA).
Default EMA = 20 here (adjustable), and does not gate signals by default.
Use it as a context compass: e.g., prefer longs when H1/H4 are 🟢 even if Daily is mixed.
Want the dashboard to gate entries (e.g., require D & H4 both 🟢 for longs)? I can add a single toggle and wire it into the signal logic.
6) Best-practice playbook
A. Tightening path (recommended)
Start simple (all optional filters OFF).
If you get too many signals, turn ON in this order:
Daily Bias → Distance Filter (0.15–0.20) → BOS → FVG → One-per-side.
Once dialed in for your instrument, save a template.
B. Sessions & timezone
The session string uses the chart’s timezone. For real NY midnight → ~London close, set chart TZ = New York.
C. Markets & timeframe
Built around 2-minute execution (works well on XAUUSD, major FX pairs, indices).
On higher TFs (3/5/15m), increase ADR lookback (still fine at 14) and consider maxDistAdr closer to 0.15.
D. Risk management (suggested)
SL just beyond the day’s extreme vs rolling 10-bar extreme (already shown).
Scale out at 1R/2R/3R (bands provided).
Consider:
Daily loss cap (e.g., 2R).
Max trades per session (toggle One-per-side).
No trade if dashboard shows mixed HTFs (optional policy).
E. Strategy conversions
The indicator is ready for strategy implementation: entries at signal, SL at plotted stop, scale-outs at bands, daily loss cap, one-per-side.
Tell me your preferred risk % per trade and exit policy; I’ll hand you a strategy build.
7) “Gate dots” legend (debug mode)
Turn Show gate dots ON to see which condition is passing:
■ = inside session window
B = Daily bull bias ok (if required)
b = Daily bear bias ok (if required)
L = new LOD this bar
H = new HOD this bar
S = BOS up passed (if required)
s = BOS down passed (if required)
F = bull FVG saved (if FVG enabled)
f = bear FVG saved (if FVG enabled)
If a signal doesn’t appear, the missing letter tells you which gate blocked it.
8) Preset profiles (copy these settings)
Aggressive (maximum opportunities)
Daily Bias: OFF
Distance filter: OFF
BOS: OFF
FVG: OFF
One-per-side: OFF
Balanced (my go-to)
Daily Bias: ON (EMA 50, slope OFF or ON depending on trend quality)
Distance filter: ON at 0.20 x ADR
BOS: ON
FVG: OFF
One-per-side: ON
Conservative (premium entries only)
Daily Bias: ON (EMA 50, slope ON)
Distance filter: ON at 0.15 x ADR
BOS: ON
FVG: ON (retest required)
One-per-side: ON
9) Troubleshooting
No signals at all?
Check you’re inside the session (■ should show).
If not, change chart TZ to New York or adjust the session string to your TZ.
Turn Show gate dots ON and look for missing letters (L/H, B/b, S/s, F/f).
Temporarily disable: Daily Bias, Distance, BOS, FVG, One-per-side (to confirm base logic works).
Ensure you’re on a liquid symbol with 2m or fast intraday data.
Very quiet days may never set a fresh LOD/HOD during the window.
Dashboard not showing?
Toggle Show HTF Dashboard ON.
If you previously hid it, it will repopulate on the next bar.
Plots/alerts not firing?
Alerts must be created from the indicator with the named alertconditions.
If you copied code, make sure no Pine editor warnings remain.
10) Example workflows
Gold (XAUUSD) 2m, London continuation
Chart TZ = New York, session 0000–1300.
Start Aggressive; observe flow for 1–2 days.
Enable Daily Bias and Distance (0.20).
If still noisy, enable BOS.
Use TP 1R/2R/3R bands for scaling; stop beyond day-extreme.
EURUSD 2m, Tokyo to London handoff (quieter)
Keep Daily Bias ON, Distance 0.15.
Leave BOS OFF, FVG OFF (to keep enough trades).
Only take signals when H1 & H4 are 🟢/🔴 together (manual filter using dashboard).
11) Safety & discretion
This tool assists decision-making. Markets change; news & liquidity shift session behaviors. Always pair signals with risk management, and remember: nothing here is financial advice.
12) Want upgrades?
I can deliver, on request:
Strategy version with entries/exits, partials, break-even, daily loss cap, and performance stats.
HTF alignment gate (require D & H4 🟢 for longs / 🔴 for shorts).
Session presets (NY only, London only, overlap only).
Liquidity filters (e.g., ATR floors) and news-time blocks (manual schedule inputs).
Daily Extremes Buy and Sell (2-minute focus) + HTF Dashboard
1) What this indicator does (in plain English)
This tool hunts for intraday reversals that form the extreme of the daily candle—
BUY when a new Low of Day (LOD) prints during the NY-midnight → London close window and daily context favors bulls.
SELL when a new High of Day (HOD) prints in that window and daily context favors bears.
You can keep it pure and simple (new LOD/HOD within the session) or tighten with optional filters:
Daily bias via Daily EMA (+ optional slope)
Distance to the day’s extreme vs ADR
Micro BOS/CHOCH
FVG + retest
One trade per side per day
A compact HTF dashboard (D/H4/H1, default 20 EMA) prints 🟢(above EMA) / 🔴(below EMA) for quick alignment.
2) Quick start (60 seconds)
Load the script on your chart (recommended TF: 2m).
Set your chart timezone to New York if you want exact NY session timing.
Leave defaults loose:
Require Daily Bias? OFF
Use distance filter vs ADR OFF
Require micro BOS/CHOCH OFF
Require FVG + retest OFF
Limit to 1 BUY and 1 SELL per day OFF
Watch for BUY markers on new LOD and SELL markers on new HOD within 00:00–13:00 NY.
Turn Show gate dots (debug) ON briefly to verify the gates.
When you’re comfortable, tighten the logic in this order:
Turn Daily Bias ON → 2) Distance filter ON (0.15–0.20 x ADR) → 3) BOS ON → 4) FVG + retest ON → 5) One-per-side ON.
3) Core logic (formal)
Session window
Uses the session string 0000–1300 (chart timezone).
For exact New York hours, set the chart timezone to New York.
Day context
Tracks bars since the daily session start and computes rolling dayLow / dayHigh.
A new LOD/HOD is identified when today’s rolling extreme updates on the current bar.
Signal base (always on)
BUY base = in session AND new LOD this bar.
SELL base = in session AND new HOD this bar.
Optional gates
Daily Bias (toggle Require Daily Bias?):
Bull: Daily Close > Daily EMA (default 50) and (optionally) EMA slope > 0.
Bear: Daily Close < Daily EMA and (optionally) slope < 0.
Distance filter vs ADR (xADR):
Longs: (close − dayLow) ≤ ADR × maxDistAdr (default 0.20).
Shorts: (dayHigh − close) ≤ ADR × maxDistAdr.
Micro BOS/CHOCH:
Longs: Close ≥ most recent swing high (pivot-based).
Shorts: Close ≤ most recent swing low.
FVG + retest (classic 3-bar):
Bull FVG: low > high[2]; Bear FVG: high < low[2].
We store the mid of the gap after BOS (if required), and the signal requires a retest (price trades through the mid).
One-per-side per day: after a signal fires, suppress another on the same side until the next day.
Visual & alerts
BUY/SELL triangles on chart.
Optional plotted SL (near day-low/ day-high vs rolling extremes) and TP bands (1R/2R/3R).
Alerts: “Daily Bottom Buy” / “Daily Top Sell”.
4) Inputs & what they mean
Signal Window
NY Window (session): 0000–1300 (chart timezone).
Tip: Set chart timezone to New York for true NY hours.
Daily Bias (optional)
Require Daily Bias?: ON = must align with Daily EMA regime.
EMA length for bias: default 50.
Require EMA slope: ON tightens bias to up/down slope.
Optional Confirmation
Require micro BOS/CHOCH: price must break the nearest micro swing.
Require FVG + retest: an FVG after BOS must form and be retested.
Optional Range Filter
Use distance filter vs ADR: proximity to day extreme (keeps entries “at the edge”).
ADR lookback (Daily): default 14.
Max distance (xADR): typical 0.15–0.20.
One-per-day guard
Limit to 1 BUY and 1 SELL per day: prevents over-trading.
Visuals / Debug
Show indicative SL/TP bands: draws SL and 1R/2R/3R.
Show gate dots (debug): gate diagnostics (legend below).
HTF Dashboard
Show HTF Dashboard (D/H4/H1): toggle the panel.
Dashboard EMA Length: default 20 (independent from bias EMA).
5) Reading the HTF Dashboard
Location: top-right table.
Timeframes: D, H4, H1.
Emoji: 🟢 (price > EMA), 🔴 (price < EMA).
Default EMA = 20 here (adjustable), and does not gate signals by default.
Use it as a context compass: e.g., prefer longs when H1/H4 are 🟢 even if Daily is mixed.
Want the dashboard to gate entries (e.g., require D & H4 both 🟢 for longs)? I can add a single toggle and wire it into the signal logic.
6) Best-practice playbook
A. Tightening path (recommended)
Start simple (all optional filters OFF).
If you get too many signals, turn ON in this order:
Daily Bias → Distance Filter (0.15–0.20) → BOS → FVG → One-per-side.
Once dialed in for your instrument, save a template.
B. Sessions & timezone
The session string uses the chart’s timezone. For real NY midnight → ~London close, set chart TZ = New York.
C. Markets & timeframe
Built around 2-minute execution (works well on XAUUSD, major FX pairs, indices).
On higher TFs (3/5/15m), increase ADR lookback (still fine at 14) and consider maxDistAdr closer to 0.15.
D. Risk management (suggested)
SL just beyond the day’s extreme vs rolling 10-bar extreme (already shown).
Scale out at 1R/2R/3R (bands provided).
Consider:
Daily loss cap (e.g., 2R).
Max trades per session (toggle One-per-side).
No trade if dashboard shows mixed HTFs (optional policy).
E. Strategy conversions
The indicator is ready for strategy implementation: entries at signal, SL at plotted stop, scale-outs at bands, daily loss cap, one-per-side.
Tell me your preferred risk % per trade and exit policy; I’ll hand you a strategy build.
7) “Gate dots” legend (debug mode)
Turn Show gate dots ON to see which condition is passing:
■ = inside session window
B = Daily bull bias ok (if required)
b = Daily bear bias ok (if required)
L = new LOD this bar
H = new HOD this bar
S = BOS up passed (if required)
s = BOS down passed (if required)
F = bull FVG saved (if FVG enabled)
f = bear FVG saved (if FVG enabled)
If a signal doesn’t appear, the missing letter tells you which gate blocked it.
8) Preset profiles (copy these settings)
Aggressive (maximum opportunities)
Daily Bias: OFF
Distance filter: OFF
BOS: OFF
FVG: OFF
One-per-side: OFF
Balanced (my go-to)
Daily Bias: ON (EMA 50, slope OFF or ON depending on trend quality)
Distance filter: ON at 0.20 x ADR
BOS: ON
FVG: OFF
One-per-side: ON
Conservative (premium entries only)
Daily Bias: ON (EMA 50, slope ON)
Distance filter: ON at 0.15 x ADR
BOS: ON
FVG: ON (retest required)
One-per-side: ON
9) Troubleshooting
No signals at all?
Check you’re inside the session (■ should show).
If not, change chart TZ to New York or adjust the session string to your TZ.
Turn Show gate dots ON and look for missing letters (L/H, B/b, S/s, F/f).
Temporarily disable: Daily Bias, Distance, BOS, FVG, One-per-side (to confirm base logic works).
Ensure you’re on a liquid symbol with 2m or fast intraday data.
Very quiet days may never set a fresh LOD/HOD during the window.
Dashboard not showing?
Toggle Show HTF Dashboard ON.
If you previously hid it, it will repopulate on the next bar.
Plots/alerts not firing?
Alerts must be created from the indicator with the named alertconditions.
If you copied code, make sure no Pine editor warnings remain.
10) Example workflows
Gold (XAUUSD) 2m, London continuation
Chart TZ = New York, session 0000–1300.
Start Aggressive; observe flow for 1–2 days.
Enable Daily Bias and Distance (0.20).
If still noisy, enable BOS.
Use TP 1R/2R/3R bands for scaling; stop beyond day-extreme.
EURUSD 2m, Tokyo to London handoff (quieter)
Keep Daily Bias ON, Distance 0.15.
Leave BOS OFF, FVG OFF (to keep enough trades).
Only take signals when H1 & H4 are 🟢/🔴 together (manual filter using dashboard).
11) Safety & discretion
This tool assists decision-making. Markets change; news & liquidity shift session behaviors. Always pair signals with risk management, and remember: nothing here is financial advice.
12) Want upgrades?
I can deliver, on request:
Strategy version with entries/exits, partials, break-even, daily loss cap, and performance stats.
HTF alignment gate (require D & H4 🟢 for longs / 🔴 for shorts).
Session presets (NY only, London only, overlap only).
Liquidity filters (e.g., ATR floors) and news-time blocks (manual schedule inputs).
Nota Keluaran
unified alerts and dashboardSkrip dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya dengan percuma dan tanpa had – ketahui lebih lanjut di sini.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya dengan percuma dan tanpa had – ketahui lebih lanjut di sini.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.