OPEN-SOURCE SCRIPT

Strong LO ORB | ProjectSyndicate

3 265
Strong LO ORB — London Opening Range Breakout catches the moment the London session resolves its opening range — and instead of treating every push past a line as a trade, it waits for a genuine close beyond the range, tags the direction, and ranks the breakout 0–10 with a star score. The first block of the London session builds a range; price then has to actually close outside it, in agreement with momentum and the higher-timeframe trend, before a signal arms. Every setup gets a structural stop beyond the range that just broke and fixed R-based targets, and is tracked live on a full statistics dashboard — including end-of-session time-stops — so you can see exactly how the logic behaves on the pair and timeframe you trade.

🧠 Opening-Range Core — the core idea. At the start of the London session the engine records the high and low of a configurable opening window, 08:00–09:00 by default. That band is the opening range: the session's first agreed value area. A signal fires on the release — the bar that closes beyond the range high for a long or the range low for a short inside the trade window — and the direction is set by that break. Sessions are evaluated in Europe/London wall-clock time, so the BST/GMT shift is handled automatically and the range always anchors to the real London open regardless of your data feed's server time. Signals are evaluated on the bar's close and are fixed once that bar closes — the range and the break do not repaint.

📈 Range Mapping & ADR Context — while the opening window is live, the engine continuously tracks the developing high, low, and width of the range, then freezes it the moment the window ends. The finished range is measured in pips and expressed as a percentage of the pair's Average Daily Range, a non-repainting daily read, so you instantly see whether the session is coiling tightly or has already burned its move. A clean, proportionate range is a loaded session; an over-wide one is a day that has already spent itself — and the engine treats them differently in both the gate and the score.

🎯 Structural Stop + R-Based Targets — the stop is anchored to the range that just broke: below the range low for a long, above the range high for a short, each with an ATR buffer, or against the range midline or a pure ATR distance if you prefer — then capped and floored by ATR so it can never balloon into a wide stop or collapse into a meaningless one. TP1, TP2, and TP3 are set at clean R multiples and default to a balanced 1R / 2R / 3R, fully adjustable to whatever reward-to-risk you trade. Every signal plots its complete Entry / SL / TP1 / TP2 / TP3 line set, labeled levels, and filled TP / SL zone boxes, with a result label on exit. Optional measured-move guides project the range width ×1 and ×2 beyond each edge for a classic ORB target read.

🎚️ Conviction Controls — a small set of dials sets how serious a breakout must be before it counts: the 0–10 Minimum Strength gate, an optional Only Strong filter, a Range-vs-ADR window that skips days whose range is too tight or too wide, an optional break-buffer that demands the candle close a set ATR fraction past the edge rather than just nicking it, and Max Breakouts / Day. Tighten them for fewer, higher-quality fires; loosen them for more activity. This is your main dial for conviction versus frequency.

🧭 HTF Trend Alignment + Session Gating — an optional higher-timeframe EMA filter blocks counter-trend fires, keeping you on the dominant side: longs only above it, shorts only below. The higher-timeframe value is read without lookahead. Entries are confined to a configurable trade window after the range forms, and a per-day cap spaces out tickets so one volatile session can't stack trades. Anything still open at the close of the trade window is flattened by an end-of-session time-stop — and that exit is booked and counted honestly, never quietly dropped.

⭐ 0–10 Setup-Quality Score — every release is scored and labeled with 1–5 stars and a tier FORMING → WEAK → MODERATE → STRONG → VERY STRONG → ELITE across breakout-native factors: expansion-candle body strength, candle range vs ATR, momentum alignment over short and medium lookbacks, volume confirmation, clean penetration beyond the range edge, RSI agreement, higher-timeframe EMA alignment, intraday bias of close versus the session open, a first-break-of-the-day premium, and a range-vs-ADR coil check. Treat the score as a confluence / cleanliness read for ranking and thinning setups — it describes how textbook a breakout is, not a guaranteed outcome. The Minimum Strength / Only Strong gate restricts what is displayed and alerted, while the dashboard keeps tracking every tier in the background.

📊 Live Statistics Dashboard — a non-intrusive Bloomberg-amber panel tracks, in real time on your chart: the current session state of waiting / forming OR / range set / armed / trade active, the live opening-range size and its ADR percentage, the pair's ADR, current status and the active trade, the last signal with its star score, total signals, win rate, closed trades, profit factor, average R per trade, best-performing direction, long vs short win rate, current and max win/loss streaks, and a TP1 / TP2 / TP3 / SL / EOD outcome breakdown. Every filled trade that reaches an outcome is counted — winners, stop-outs, and time-stops alike — so the numbers are computed live from the real signals on your current symbol and timeframe rather than a figure printed in a description.

🎨 Clean Themed Visuals — a Bloomberg Amber institutional palette, with Ice Blue, Emerald, and Mono alternates, shades the opening-range box, the ORH / ORL / midline levels, the per-trade SL / TP ladder, and the dashboard to one coherent look, so quality and direction read at a glance. The range box is drawn over the window where it formed and projected forward with pip-labeled edges; long and short trades are color-keyed; an optional faint tint marks the active opening window. A projection-length and max-drawn-trades control keep the chart clean — the right-edge zones never stretch into oversized towers, and only the most recent N tickets stay drawn while the statistics remain cumulative over the whole history.

🔔 Detailed Alerts — fires on long / short opening-range breakouts, plus TP3, partial-TP, SL, and end-of-session exit events, formatted for manual or automated use. The minimum-strength setting can restrict alerts to higher-conviction setups.

🔧 Fully Customizable — every component is exposed: the session timezone, opening-range window, and trade window; the ATR length and 0–10 strength gate with Only-Strong filter; the ADR lookback and min/max range-vs-ADR band; the break-buffer and max-breakouts-per-day; the stop basis of range opposite / midline / ATR with buffer and risk cap/floor; the three R targets; projection length, OR-days kept, and max drawn trades; the HTF alignment filter and timeframe; the pip definition for non-standard feeds; all four themes; and every label, dashboard, zone, and measured-move toggle.

🎯 Why this is different — most ORB tools just draw two lines at a fixed clock time and leave everything after that to you. This one anchors the range to the real London open in exchange time with automatic DST, sizes the break against the pair's own ADR so a tight coil and a blown-out day aren't treated alike, demands momentum, volume, penetration, and trend confirmation before it fires, anchors the stop to the range that actually broke, then layers an objective 0–10 ranking and a live, honest statistics panel — one that counts stop-outs and end-of-session exits in full — so you are tuning and judging the system on real, current data instead of a marketing figure.

🚀 Where to use it — built and validated for Forex, with particular strength on London-driven pairs: GBP, EUR, and USD majors and crosses such as GBPUSD, GBPJPY, GBPCAD, GBPNZD, and EURUSD, on intraday timeframes around M5 / M10 / M15. It is pip-aware for both 5-digit and 3-digit JPY pairs, and the ATR-based stop and ADR sizing adapt to each pair's volatility automatically. The session windows can be re-pointed for the New York or Asian open if you want to run the same engine on a different session.

🎯 How to trade it

Apply it to a liquid pair on an intraday timeframe and let the dashboard populate. Read the live win rate, profit factor, and average R for your symbol and timeframe before committing — if the logic doesn't suit that pair, you'll see it.
Keep the HTF Trend Alignment filter on so you only take breakouts in the direction of the larger trend, and keep the Range-vs-ADR gate on to skip dead or already-spent sessions.
Wait for a LO ORB LONG / LO ORB SHORT label — it marks a confirmed close beyond the opening range, with the star score and Entry, SL, and TP1/2/3 already plotted.
Manage the trade with the plotted levels: the structural SL defines your risk, TP1/2/3 sit at your chosen R multiples, and any position still open at the trade-window close is flattened by the time-stop. Bank or trail however suits your style.
Use Minimum Strength, the break-buffer, and Max Breakouts / Day to set your tempo — stricter for fewer, cleaner releases; looser for more activity — and use the star score and Only-Strong gate to focus on the cleanest setups.

⚠️ Important — this is a decision-support tool, not a standalone buy/sell system, and it makes no performance guarantees. Default settings were chosen on historical data and behavior will vary by pair, timeframe, session, and configuration; the dashboard's statistics are historical and descriptive, not a forecast. The trade model includes an end-of-session time-stop, so some trades close at the session boundary at a fraction of a target rather than a full win or loss — these are counted in full, which is honest but means win rate alone is misleading; always weigh it together with average R and profit factor, and resize the R targets to your own risk profile. Signals confirm on the closed bar, so always wait for the labeled release on a closed candle. Always combine it with your own analysis and risk management, and test it on your market before trading it live.

免責聲明

這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。