PROTECTED SOURCE SCRIPT
Mis à jour JAM ORB Algo

⚡ ORB Strategy + Backtesting (Pine Script v5)
This script implements a complete Opening Range Breakout (ORB) strategy, featuring built-in backtesting, advanced TP/SL visualization, full style customization, and a performance dashboard. It is designed for traders who want to clearly evaluate breakout performance directly on the chart.
🕑 ORB Window Configuration
🔹 Session selection: choose between Market Timezone or Custom Session.
🔹 Timezone support: configurable from UTC-8 to UTC+12.
🔹 Daily limit: option to allow only one trade per day.
🔹 Risk/Reward (RR) settings:
Configurable TP1, TP2, and TP3 levels.
Stop Loss calculated dynamically from the ORB range.
📊 Backtesting Engine
🔹 Interactive dashboard showing trades, wins, losses, and win rate.
🔹 Adjustable partial exits for each TP (TP1, TP2, TP3).
🔹 Automatic calculation of percentage-based profit and loss.
🔹 Tracks total trades, total profit, and average profit per trade.
🎨 Visual Customization
🔹 Fully customizable colors:
ORB high/low lines and range fill.
Buy/Sell entry labels.
TP and SL lines with background zones.
🔹 Line style and thickness options (solid, dotted, dashed).
🔹 Visibility controls for each TP/SL level.
🔹 Clear profit and loss zones drawn directly on the chart.
🚀 Trading Logic
🔹 LONG entries: triggered when price breaks above the ORB high.
🔹 SHORT entries: triggered when price breaks below the ORB low.
🔹 Automatic calculation of Stop Loss and TP1, TP2, TP3 based on ORB range and RR.
🔹 Customizable BUY / SELL labels displayed at entry.
✅ TP / SL Detection
🔹 Real-time detection of TP1, TP2, TP3, and SL hits.
🔹 Prevents double counting of the same level.
🔹 Extended TP/SL lines with shaded zones for better clarity.
📈 Backtesting Dashboard
🔹 Displayed in the top-right corner of the chart.
🔹 Shows:
Total trades
Wins / Losses
Win rate (%)
Total profit (%)
Average profit per trade
🔹 Fully customizable panel color.
✨ Summary
This script combines:
Opening Range detection
Breakout trading logic with advanced risk management
Professional-grade visualizations
Integrated historical performance tracking
High customization for sessions, styles, and colors
💡 Ideal for traders who want to trade ORB setups with clarity, structure, and measurable results.
This script implements a complete Opening Range Breakout (ORB) strategy, featuring built-in backtesting, advanced TP/SL visualization, full style customization, and a performance dashboard. It is designed for traders who want to clearly evaluate breakout performance directly on the chart.
🕑 ORB Window Configuration
🔹 Session selection: choose between Market Timezone or Custom Session.
🔹 Timezone support: configurable from UTC-8 to UTC+12.
🔹 Daily limit: option to allow only one trade per day.
🔹 Risk/Reward (RR) settings:
Configurable TP1, TP2, and TP3 levels.
Stop Loss calculated dynamically from the ORB range.
📊 Backtesting Engine
🔹 Interactive dashboard showing trades, wins, losses, and win rate.
🔹 Adjustable partial exits for each TP (TP1, TP2, TP3).
🔹 Automatic calculation of percentage-based profit and loss.
🔹 Tracks total trades, total profit, and average profit per trade.
🎨 Visual Customization
🔹 Fully customizable colors:
ORB high/low lines and range fill.
Buy/Sell entry labels.
TP and SL lines with background zones.
🔹 Line style and thickness options (solid, dotted, dashed).
🔹 Visibility controls for each TP/SL level.
🔹 Clear profit and loss zones drawn directly on the chart.
🚀 Trading Logic
🔹 LONG entries: triggered when price breaks above the ORB high.
🔹 SHORT entries: triggered when price breaks below the ORB low.
🔹 Automatic calculation of Stop Loss and TP1, TP2, TP3 based on ORB range and RR.
🔹 Customizable BUY / SELL labels displayed at entry.
✅ TP / SL Detection
🔹 Real-time detection of TP1, TP2, TP3, and SL hits.
🔹 Prevents double counting of the same level.
🔹 Extended TP/SL lines with shaded zones for better clarity.
📈 Backtesting Dashboard
🔹 Displayed in the top-right corner of the chart.
🔹 Shows:
Total trades
Wins / Losses
Win rate (%)
Total profit (%)
Average profit per trade
🔹 Fully customizable panel color.
✨ Summary
This script combines:
Opening Range detection
Breakout trading logic with advanced risk management
Professional-grade visualizations
Integrated historical performance tracking
High customization for sessions, styles, and colors
💡 Ideal for traders who want to trade ORB setups with clarity, structure, and measurable results.
Notes de version
Alerts AddedNotes de version
Alerts AddedBUY Alert
SELL Alert
Notes de version
Recomended R:R addedThis for elevate your trading and improve results.
Given the volatility you can adjust the R:R to use it when the market give you different movements
Notes de version
Final Update V1Notes de version
ORB Strategy – Opening Range Breakout with Monthly DashboardORB Strategy is an Opening Range Breakout (ORB) indicator designed to trade the New York session with clarity, discipline, and strong visual structure. The script identifies the initial market range and generates clear BUY and SELL signals when price breaks out of that range, supported by full risk management visuals and a monthly performance dashboard.
🔹 How it works
Automatically defines the Opening Range between 09:30 and 10:00 (New York time).
Draws ORB High / ORB Low levels and visually fills the range.
Generates one trade per day (configurable).
Detects bullish (BUY) and bearish (SELL) breakouts.
Calculates and plots Stop Loss and up to 3 Take Profit levels using Risk/Reward ratios.
Extends all lines and zones until the New York session close (16:00).
Includes clean BUY / SELL alerts (no emojis), suitable for automation and webhooks.
📊 Monthly Backtest Dashboard (Non-Repainting)
The built-in dashboard displays real-time monthly statistics, including:
Total trades
Winning trades
Losing trades
Win rate (%)
Total profit (%)
Average profit per trade (%)
All statistics are calculated using confirmed bar data only, ensuring no repainting.
🎨 Full Customization
ORB, TP, SL, and zone colors
Line styles and thickness
Signal symbols (▲ ▼ / △ ▽ / text)
Enable or disable visual elements
Stable and fully compatible with 15m and 30m timeframes
🔔 Alerts
Integrated BUY / SELL alerts
Clean text messages
Ideal for:
Notifications
Trading bots
Webhooks
Discretionary trading
⚠️ Notes
Educational and analytical indicator (not an execution strategy)
No repainting
Optimized for indices, stocks, and futures during the NY session
Designed for traders seeking structure, discipline, and transparency
Notes de version
JAM Algo ORB — NY RTH (Opening Range Breakout)This indicator builds an Opening Range Box (ORB) starting at the New York (NYSE) open and works weekdays only. You can select a preset ORB window of 5, 15, or 30 minutes. During that window, the ORB high/low is formed (using wicks or bodies). Once the window ends, the ORB is locked and does not extend into the next day.
Signals
After the ORB locks, the script detects breakouts:
Long when price breaks above the ORB high
Short when price breaks below the ORB low
Breakout detection can be based on Close / Wick / Cross, and optional confirmation modes are available:
None
N consecutive closes
Break + Retest (with tolerance based on ORB width)
Trade Visualization (SL/TP Boxes)
When an entry is confirmed (at the close of the signal bar), the script draws the classic SL/TP boxes:
Stop Loss (SL) = opposite side of the ORB (Long → ORB low, Short → ORB high)
Take Profit (TP) = default 1:1 RR (or fixed-distance TP if selected)
Boxes can be set to last up to 10 bars.
Outcome Logic (First Touch)
The trade result is evaluated starting from the next bar after entry:
The first level touched (TP or SL) determines win/loss
For timeframes above 1 minute, the script uses 1-minute intrabar data when available to resolve “which hit first” more accurately.
Dashboard (Current Month Only)
A compact dashboard shows current NY month performance:
Trades = number of executed entries
Win Rate % and Profit (R) = based only on trades that reached TP or SL
Alerts
Alerts are provided for:
Long entry (▲)
Short entry (▼)
TP
SL
Because Pine requires constant strings in alertcondition(), fixed messages are used there; customizable messages are available via alert() (create alerts using “Any alert() function call”).
Notes de version
🚀 Introducing JAM Algo – Premiun ORB System (NASDAQ-focused, Funded Challenge Ready)Most ORB indicators stop at drawing the range and throwing random breakout arrows. This one is built differently — designed for real execution, clean visuals, and performance-driven logic.
✅ What makes it superior to typical ORB indicators?
1) Built for “effective breaks” — not noisy breakouts
Instead of triggering on every touch, the system uses a break + retest framework (with a controlled fallback logic). That means fewer low-quality signals and more structured entries.
2) True-stat logic (TP/SL touch-based) — not “close-based fantasy”
Performance stats are calculated the way real trading works:
After the signal candle closes, the trade runs until TP or SL is touched first, even if price only wicks it. No cheating, no assumptions.
3) Funded-challenge friendly: 1–2 trades per day max
This system is designed for consistency and account protection:
Option for 1 trade/day or 2 trades/day
If trade #2 is enabled, it’s only allowed if trade #1 was a loss
Trade #2 must be opposite direction, so it can help offset the day instead of compounding risk
4) Multi-timeframe ORB presets (5 / 15 / 30 minutes)
Whether you trade fast NY opens or prefer more confirmation, you can adapt the ORB window instantly — without breaking the core logic.
5) Premium, clean UI (dropdown-based presets)
Most scripts become a mess of sliders and settings that ruin results.
This one stays minimal, aesthetic, and consistent, using curated dropdown presets so the system remains stable and “plug-and-play”.
6) Session + Timezone unified for global traders
One clean selector:
NY
London
Asia
The indicator automatically applies the correct session/timezone logic and produces stats accordingly.
7) Monthly performance tracking (resets automatically)
The dashboard shows what matters:
Trades (entries) this month
WR % Month (wins/losses on closed trades)
No clutter. No oversized dashboard. Just clean tracking.
8) Visuals that make sense (not endless drawings)
ORB box + ORH/ORL lines for context
TP/SL boxes are drawn from entry until TP/SL hits, or until session close
Historical trades remain visible so you can study market behavior and consistency
9) VWAP included (visual only)
VWAP is there as a clean reference — does not affect signals or stats, and the color is fully adjustable.
🎯 Built for serious traders
If you’re trading NASDAQ and working funded challenges, you need something that’s:
consistent
rule-based
clean
and honest in its stats
JAM Algo – Premiun ORB System was built exactly for that.
If you want it, comment “ORB” and I’ll share it.
Notes de version
New Alerts Mode - AdddedNotes de version
More R:R statsNotes de version
Update Summary (Premium Stats Dashboard Upgrade)Added expanded Dashboard metrics: Month Trades, Month WR%, All-Time WR%, and a live Streak counter.
Streak is trade-based (not days): shows W# for consecutive wins or L# for consecutive losses, automatically resetting each new month.
Color-coded streak for fast reading: turquoise on winning streaks and red on losing streaks (matches the system’s BUY/SELL palette).
Implemented All-Time performance tracking while keeping the existing monthly reset logic intact.
No strategy changes: ORB logic, entries, TP/SL engine, visuals, and alerts remain unchanged—this is a pure stats/dashboard enhancement.
Notes de version
Premium Visual Upgrade – Cleaner, Sharper, More ReadableWe refined the indicator’s visuals to deliver a smoother, more professional “premium” chart experience—without touching the strategy logic.
Sleeker TP/SL Display: TP and SL are now shown as clean horizontal levels (lines) instead of heavy boxes, keeping the chart modern and uncluttered.
Instant Price Readability: Entry, TP, and SL now include large, clear price tags showing only the price—so you can read levels at a glance.
Consistent Color System:
Entry is neutral gray
TP stays aqua/turquoise
SL stays red
This preserves the original visual identity while improving clarity.
Fully Adjustable Label Placement: Choose your preferred spacing using a distance preset dropdown (Near → Extreme, plus Custom) to keep labels away from candles and perfectly aligned to your layout.
Connected Look (Like Pro Platforms): Lines extend toward the price tag with a clean gap, giving a polished “line-to-label” connection style.
Session-Smart Behavior: Levels extend cleanly while active, and are capped to the session end to respect session boundaries.
✅ Result: Same system, same logic—just a cleaner, premium-grade visual presentation that’s easier to trade from.
Script protégé
Ce script est publié en source fermée. Cependant, vous pouvez l'utiliser librement et sans aucune restriction – pour en savoir plus, cliquez ici.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.
Script protégé
Ce script est publié en source fermée. Cependant, vous pouvez l'utiliser librement et sans aucune restriction – pour en savoir plus, cliquez ici.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.