OPEN-SOURCE SCRIPT
Updated

ORB Strategy + Backtesting (fixed timestamp) - Lines Adjusted

4 391
⚡ 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.
Release Notes
🚀 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.
Release Notes
allerts Added

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.