ORB Strategy by Burdiga84════════════════════════════════════════════
ORB Strategy — Opening Range Breakout
════════════════════════════════════════════
The Opening Range Breakout is one of the most studied and battle-tested
intraday setups in technical analysis. Price frequently establishes its
daily direction within the first 30–60 minutes of a session — this
strategy captures exactly that move, systematically and objectively,
on any market and any major exchange worldwide. 🌍
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔍 HOW IT WORKS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1️⃣ The script records the High and Low of a configurable time window
at the open of your chosen session — the "Opening Range".
2️⃣ When price breaks above the OR High or below the OR Low, a setup
is armed and the strategy starts watching.
3️⃣ An entry is triggered once the breakout is confirmed — either
immediately or after a retest of the OR boundary (your choice).
4️⃣ Stop Loss is placed at the opposite OR boundary.
Take Profit is calculated automatically from your chosen R:R ratio.
5️⃣ An optional Breakeven feature moves the SL to your entry price
once the trade is in profit by a chosen % of the OR range —
locking in a risk-free trade before it reaches full target. 🔒
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ KEY FEATURES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🌐 Multi-timezone, DST-safe
Built-in IANA timezone support. Select the exchange and set your
hours in LOCAL time — daylight saving changes are handled
automatically. No manual offset. Ever.
Supported markets out of the box:
📈 US30 / NAS100 / US500 → America/New_York | 09:30 – 10:00
📈 UK100 → Europe/London | 08:00 – 08:30
📈 GER40 → Europe/Berlin | 09:00 – 09:30
📈 JPN225 → Asia/Tokyo | 09:00 – 09:30
📈 HK50 → Asia/Hong_Kong | 09:30 – 10:00
📈 ASX200 → Australia/Sydney | 10:00 – 10:30
🔄 Retest filter
Avoids chasing momentum — entry is only allowed after price pulls
back to the OR boundary following the initial break, confirming
the level as support/resistance before committing.
🚫 OR Midpoint invalidation
If the breakout loses momentum and price crosses the OR midpoint,
the pending setup is automatically cancelled. No bagholding a
stale setup.
⏱️ Configurable timeout & entry delay
Define how long a setup stays alive and the minimum bars to wait
before the first entry. Keeps the strategy sharp and avoids late,
low-quality signals.
📐 Automatic SL & TP management
No manual intervention required. Exit orders are placed and
updated every bar based on your R:R setting and the current
average entry price.
🛡️ Breakeven
At the chosen profit threshold (default 50 % of the OR range),
the SL moves to entry — giving every trade a chance to run to
full target at zero risk.
🔺 Same-direction Pyramiding
When a new valid setup forms while a position is already open in
the same direction, the strategy adds to it (up to your chosen
maximum). SL and TP are recalculated from the new weighted
average price. Breakeven resets on each addition.
🎨 Visual OR lines with session history
Clean, colour-coded OR High / Low / Mid lines extend across the
session. Previous sessions appear as dashed lines for context.
Dashed SL and TP guide lines are drawn at each entry.
🔔 Real-time alerts
Receive push notifications with full trade details the moment a
position opens — entry price, SL and TP included. A second alert
fires on close, telling you TP or SL hit and the P&L.
Set up once, get notified anywhere.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🚀 QUICK SETUP GUIDE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1. Apply to an intraday chart (1 m – 15 m recommended).
2. Select the "Session Timezone" that matches your instrument.
3. Set Start and End hours in the LOCAL time of that timezone.
4. Choose your Logic filters (retest, midpoint invalidation, timeout).
5. Set your Risk:Reward ratio (default 1.5).
6. Enable Breakeven to protect profits automatically. 🛡️
7. (Optional) Enable Pyramiding and set the max entries.
8. Enable Alerts → create a TradingView alert on this indicator →
select "alert() function calls only" → enable Push Notifications. 🔔
That's it. The strategy handles everything else.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠️ DISCLAIMER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
This script is provided for educational and research purposes only.
It does not constitute financial advice. Past performance is not
indicative of future results. Trading involves substantial risk of
loss and is not suitable for all investors. Always backtest
thoroughly, use strict risk management, and never risk capital you
cannot afford to lose.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⭐ If this script adds value to your trading toolkit, a LIKE takes
one second and helps more traders discover it — it means a lot!
👣 Follow for future updates, new strategies, and improvements
based on community feedback.
💬 Questions and suggestions are always welcome in the comments.
Happy trading. 📊
════════════════════════════════════════════
Estrategia Pine Script®






















