1nTest · strategy backtester and trading bot builder

4h Range → 1h Deviation

4h Range → 1h Deviation: 24 trades on GBPUSD, XAUUSD, US500 from Jan 2022 to Dec 2025, +10.5% net after costs, maximum drawdown −5.2%, profit factor 1.84.

Idea

A sideways range is identified on H4. When price leaves a boundary and returns, a limit order is placed on H1 at the boundary, targeting the opposite side.

What it teaches

Trading a range: the target is the opposite boundary, not a fixed RR.

Strategy chain
ZoneRange H4EntryRange H1
take profit at the opposite boundary
Net equity curve
Net
+10.5%
Max drawdown
−5.2%
Trades
24
Win rate
29.4%
Profit factor
1.84
Costs
−$135
Period: Jan 2022 — Dec 2025 · Assets: GBPUSD, XAUUSD, US500Risk per trade: 1.0% · Trades per month: 0.5Commission and swap: $135 — 11% of gross profit. The spread is already in the entry and exit prices (ask/bid).

By year

2022
Trades8
Net, $$64
2023
Trades8
Net, $$228
2024
Trades4
Net, $$1,061
2025
Trades4
Net, $−$304

By session

Asia
Trades2
Take-profit share0.0%
Frankfurt
Trades2
Take-profit share0.0%
London
Trades3
Take-profit share50.0%
Lunch
Trades1
Take-profit share0.0%
Pre-NY
Trades1
Take-profit share0.0%
NY
Trades8
Take-profit share40.0%
NY PM
Trades5
Take-profit share25.0%
Dead Zone
Trades2
Take-profit share50.0%

Robustness

4 of 9 indicators in the normal range; 1 of 3 time windows in profit.

How it was calculated

A regular 1nTest engine run on October 30, 2026 on one-minute data, January 1, 2022 — December 31, 2025, starting balance $10,000, risk 1.0% per trade, with commission, spread and swap from the broker profile. A bot executes the same rules.

Educational example, not a recommendation. Historical data does not guarantee future results.

Concepts

Repeat this backtest in 1nTestOpens the backtest form with this chain; sign-in required.← All examples