INVITE-ONLY SCRIPT

MB Break & Retest

53
MB Break & Retest + VWAP (ORB) is an Opening Range Breakout indicator built for intraday trading. It captures the first 15 minutes of the session to plot the Opening Range High, Low, and Midpoint. After the Opening Range is set, it looks for a confirmed breakout using two conditions: price must close a user-defined distance beyond the OR High or OR Low, and the breakout candle must meet a minimum 5-minute volume threshold. If both the OR High and OR Low break in the same session, the indicator flags the market as choppy and avoids taking trades.

Trades are not taken on the breakout candle. Instead, the script waits for price to retest the Opening Range midpoint and enter only when that retest shows acceptable confirmation. Optional filters include a close-position filter (requiring the candle to close in the top/bottom portion of its range), a minimum retest volume requirement, and a midpoint “respect” filter that requires price to reject away from the midpoint by a set distance rather than simply touching it.

An optional VWAP filter adds directional bias: longs are allowed only when the midpoint is sufficiently below VWAP (with a configurable buffer), and shorts are allowed only when the midpoint is sufficiently above VWAP. The VWAP line can be displayed, and the script tracks how many potential trades were filtered out by the VWAP rule.

The indicator also includes built-in trade management and visual risk tools. It plots stop-loss and take-profit zones, supports a partial profit target (taking 50% off at a specified move), and can move the stop to break-even once a configurable R:R threshold is reached. Entry, partial, break-even, stop, and target events can be labeled on the chart.

A live status panel shows the current state (watching, breakout detected, trade active, session closed, or choppy), along with OR levels, midpoint, VWAP context, and volume information. A backtest dashboard summarizes performance metrics such as net P/L, win rate, profit factor, average win/loss, long vs short stats, breakeven exits, partial exits, streaks, and VWAP-filtered counts.

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.