# Range Breakout with pending orders

Placing stop orders based on daily price range and restoring state after terminal restart.

Canonical: https://prismaticalgos.com/compendium/algo/10901-range-breakout-with-pending-orders
Record ID: 10901
Catalog rank: 84 (reading order, not performance)
Snapshot: 2026-10-31 15:46 UTC
Family: Trend Following & Directional (A)
Source: https://www.mql5.com/en/code/78688
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: any
- timeframes: M1
- sessions: 00:00-07:00 server time
- market_regime: any

## Indicators

No indicator stack recorded.

## Recorded long-entry rules

- BuyStop = High + Shift + spread; SL = Low − ShiftSL; TP = entry + RR × (entry − SL)

## Recorded short-entry rules

- SellStop = Low − Shift; SL = High + ShiftSL + spread; TP = entry − RR × (SL − entry)

## Recorded exit rules

- When one order is filled, the other is deleted. Unfilled orders are deleted at the cancel time; an open position can optionally be closed at a set time.

## Recorded filters

- Max spread – 30 points (0 = off)

## Risk controls

- Stop loss: SL = Low − ShiftSL; SL = High + ShiftSL + spread
- Take profit: TP = entry + RR × (entry − SL); TP = entry − RR × (SL − entry)
- Position sizing: Lot (fixed) – 0.10
