# Opening Range Breakout with NR4 / NR7 Contraction Filters

Trades based on the opening range breakout and contraction/expansion concepts with optional filters.

Canonical: https://prismaticalgos.com/compendium/algo/9078-opening-range-breakout-with-nr4-nr7-contraction-filters
Record ID: 9078
Catalog rank: 108 (reading order, not performance)
Snapshot: 2026-10-31 15:46 UTC
Family: Volatility-Based (G)
Source: https://www.mql5.com/en/code/78259
Evidence label (unverified): source_code

## Scope and limitations

These are machine-extracted research records, not verified trading systems. Catalog rank measures specification detail and claimed evidence, not profitability. The catalog extraction pipeline did not independently backtest these records. Its separate selected testing ledger does not validate the wider corpus. Rules, labels and parameters can be incomplete or wrong; consult the original source and its reuse terms.

No endorsement, ownership claim or source-code reuse permission is implied.

## Extraction warnings

No automated warnings recorded; this is not validation.

## Recorded profile

- symbols: XAUUSD
- timeframes: M1, D1
- sessions: London time with automatic daylight saving, or broker server time, session start hour and minute
- market_regime: any

## Indicators

No indicator stack recorded.

## Recorded long-entry rules

- offset mode (stretch or ATR) + stretch lookback or ATR period + ATR multiple + NR4 or NR7 or Inside day + NR4 or 3-bar NR + entry window (minutes)

## Recorded short-entry rules

- Not specified.

## Recorded exit rules

- exit (minutes after the start)

## Recorded filters

- NR4
- NR7
- Inside day + NR4
- 3-bar NR
- Optional: skip the day after a wide-range day (WS4 or WS7)
- max spread as % of the offset
- optional hard cap in points
- skip Fridays

## Risk controls

- Stop loss: stop loss is the opposite level of the entry order
- Take profit: take-profit multiple (0 = off)
- Position sizing: lot size from % risk per trade and the stop distance, daily loss limit based on account equity, maximum fills per session, spread filter measured as a % of the offset, free-margin and volume-limit checks
