# 4 Hour Range Strategy

Enters trades based on 5M candles closing outside the range of the first 4H candle, with time filters for overextension.

Canonical: https://prismaticalgos.com/compendium/algo/6351-4-hour-range-strategy
Record ID: 6351
Catalog rank: 2557 (reading order, not performance)
Snapshot: 2026-10-31 15:46 UTC
Family: Time, Session & Seasonality (F)
Source: https://www.mql5.com/en/code/68095
Evidence label (unverified): backtest_shown

## 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

Build warnings: MT4_ONLY: the captured source is MQL4 / written for MetaTrader 4. It needs porting (order functions, indicator handles) before it runs on MT5.

## Recorded profile

- symbols: EURUSD
- timeframes: 4H, 5M
- sessions: New York time zone
- market_regime: ranging

## Indicators

No indicator stack recorded.

## Recorded long-entry rules

- 5M candle closes below the Low of the first 4H candle, then closes back in the Range

## Recorded short-entry rules

- 5M candle closes above the High of the first 4H candle, then closes back in the Range

## Recorded exit rules

- No explicit exit rules provided

## Recorded filters

- Time filter for overextension: price stays above the High or below the Low for more than 75 Minutes

## Risk controls

- Stop loss: Not specified
- Take profit: Not specified
- Position sizing: Lots: Lotsize
