PROTECTED SOURCE SCRIPT
Willy ORB for Gold – Session Presets (NY 5m)

What it does:
Plots the opening-range high/low for the main Gold sessions (Shanghai, Tokyo, Sydney, Frankfurt, London, New York 5-minute OR by default). It projects TP1/TP2 expansion targets, supports a timezone offset so opens line up with your broker, and includes breakout alerts on confirmed closes.
⸻
Why it’s Gold-friendly
• New York (COMEX pit): 5-minute opening range at ~20:20 local (via your offset) to capture the most active burst.
• London / Frankfurt: strong European volatility windows for XAU/USD.
• Shanghai / Tokyo / Sydney: structure-setting sessions before momentum builds.
⸻
Features
• Session presets: SH, TK, SY, FR, LDN, NY (5m) — toggle individually
• 15m OR for all sessions except NY (5m) by default (editable per session)
• TP1 / TP2 expansion targets (user-defined multiples)
• Labels for 15m/5m range and targets; customizable styles
• Timezone offset control (aligns lines to your local clock)
• Daily auto-reset for clean levels
• Alerts: “Closed Above Range High” / “Closed Below Range Low” per session
⸻
How to use
1. Add to chart (best on 1–15m).
2. In settings → Gold Sessions, toggle the sessions you want.
3. Set “My time offset from chart (hours)” so session lines match your broker time.
4. Trade the breakouts: when price closes beyond the session high/low, TP levels plot automatically.
⸻
Parameters (quick guide)
• Targets: TP1/TP2 multiples (e.g., 1.0 and 2.0).
• Labels: left/right label placement, line styles/colors.
• Sessions: enable/disable + choose each session’s OR length (NY defaults to 5m).
⸻
Tips for XAU/USD
• London often gives the cleanest first breakout.
• New York tends to drive continuation after data releases.
• Consider pairing with volume/volatility or HTF trend for confluence.
⸻
Notes
• Built in Pine Script v6.
• Indicator (not a strategy). For backtests, use a companion strategy that trades the closes beyond the OR with SL at the opposite side and TP by R.
⸻
Disclaimer
For educational purposes only. Not financial advice. Always backtest and manage risk.
Plots the opening-range high/low for the main Gold sessions (Shanghai, Tokyo, Sydney, Frankfurt, London, New York 5-minute OR by default). It projects TP1/TP2 expansion targets, supports a timezone offset so opens line up with your broker, and includes breakout alerts on confirmed closes.
⸻
Why it’s Gold-friendly
• New York (COMEX pit): 5-minute opening range at ~20:20 local (via your offset) to capture the most active burst.
• London / Frankfurt: strong European volatility windows for XAU/USD.
• Shanghai / Tokyo / Sydney: structure-setting sessions before momentum builds.
⸻
Features
• Session presets: SH, TK, SY, FR, LDN, NY (5m) — toggle individually
• 15m OR for all sessions except NY (5m) by default (editable per session)
• TP1 / TP2 expansion targets (user-defined multiples)
• Labels for 15m/5m range and targets; customizable styles
• Timezone offset control (aligns lines to your local clock)
• Daily auto-reset for clean levels
• Alerts: “Closed Above Range High” / “Closed Below Range Low” per session
⸻
How to use
1. Add to chart (best on 1–15m).
2. In settings → Gold Sessions, toggle the sessions you want.
3. Set “My time offset from chart (hours)” so session lines match your broker time.
4. Trade the breakouts: when price closes beyond the session high/low, TP levels plot automatically.
⸻
Parameters (quick guide)
• Targets: TP1/TP2 multiples (e.g., 1.0 and 2.0).
• Labels: left/right label placement, line styles/colors.
• Sessions: enable/disable + choose each session’s OR length (NY defaults to 5m).
⸻
Tips for XAU/USD
• London often gives the cleanest first breakout.
• New York tends to drive continuation after data releases.
• Consider pairing with volume/volatility or HTF trend for confluence.
⸻
Notes
• Built in Pine Script v6.
• Indicator (not a strategy). For backtests, use a companion strategy that trades the closes beyond the OR with SL at the opposite side and TP by R.
⸻
Disclaimer
For educational purposes only. Not financial advice. Always backtest and manage risk.
نص برمجي محمي
تم نشر هذا النص البرمجي كمصدر مغلق. ومع ذلك، يمكنك استخدامه بحرية ودون أي قيود - تعرف على المزيد هنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي محمي
تم نشر هذا النص البرمجي كمصدر مغلق. ومع ذلك، يمكنك استخدامه بحرية ودون أي قيود - تعرف على المزيد هنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.