NR Inside-Bar Expansion
Narrow-range/inside-day H1 expansion.
EURUSD · H1 · Original trading hours
Source + EX5 + selected preset + checksums. Strategy Tester research build.

Selected configuration: rolling-year net EUR -44.94; full-period net EUR -99.40. Negative confirmation is retained in the archive.
How this strategy works
- Requires the previous D1 bar to be an inside bar and the narrowest range in the Variant 0 seven-day comparison.
- A closed H1 bar expanding beyond that prior daily range opens the trade with a 1.5 ATR stop.
- The trade closes after 48 hours; variants 1 and 2 use 10/14-day narrow-range tests and 2.0/2.5 ATR stops.
The selected configuration uses EURUSD / H1, variant s0. All indicator and session values used by this build are listed in the preset editor.
Measured backtests


| Period / model | Net EUR | PF | Trades | Equity DD | Native report |
|---|---|---|---|---|---|
| Development 2019.01.01 → 2024.01.01 M1 OHLC screening | -61.94 | 0.78 | 63 | 1.14% | MT5 report |
| Validation 2024.01.01 → 2025.01.01 M1 OHLC screening | +6.46 | 1.20 | 8 | 0.25% | MT5 report |
| 12-month review 2025.09.01 → 2026.09.01 Real-tick mode + fallback | -44.94 | 0.24 | 11 | 0.79% | MT5 report |
| Long review 2019.01.01 → 2026.09.21 Real-tick mode + fallback | -99.40 | 0.75 | 88 | 1.15% | MT5 report |
Adjust the strategy preset
MT5 also validates parameter combinations and may reject incompatible inputs. Session modes use local London, New York and Tokyo hours. Broker-time conversion uses the configured winter UTC offset and DST rule. A session filter limits eligible entries; it does not change the underlying strategy signal or create trades where none qualify. Policy 2 also closes before the chosen session ends.
Install and reproduce the test
- Download and extract the ZIP. Copy
TFPriceResearch_Sessions.ex5intoMQL5/Experts/TradeForexin the MT5 data folder. Keep MQ5 and all MQH headers together if compiling. - Open Strategy Tester, select the EA, EURUSD and H1. The build rejects normal chart execution.
- Load the included
selected-test.setor a preset downloaded above. Symbol, chart timeframe, dates, deposit and tick model are tester settings outside the .set file. - For confirmation choose “Every tick based on real ticks”, EUR 10,000, 1:30 leverage and 100 ms delay. Use 2025.09.01–2026.09.01 or 2019.01.01–2026.09.21; retain the generated report and Journal.
- Allow MT5 to obtain the available broker history. Compare actual date coverage, costs, trade count and history quality; a later download or different broker server can change the result.
Read the general MT5 installation guide; this package’s tester-only restriction takes precedence over normal chart-activation steps.
What these results can establish
- Tested values are research settings, not a profitability claim.
- Broker history, spread, swaps and fills can change outcomes.
- These are retrospectively selected historical tests. Development, validation and review periods overlap previously inspected history; this is not a fresh independent holdout.
- The balance plots show realized outcomes. Equity drawdown includes floating positions and must not be inferred from the balance line alone.
- Available native ticks and fallback are accepted. Missing ticks, historical spread paths and cost assumptions limit confidence; profitable history does not guarantee future profitability.
- RiskPercent is an entry-sizing estimate, not a hard loss cap. Costs, gaps and slippage can exceed that estimate; some legacy sizing excludes transaction costs.
Additional cost stress adds 25% of the absolute commission and swap amounts: 12-month stressed net EUR -46.11; long-period stressed net EUR -108.31. This is not a full spread or slippage stress.
Files and reproducibility
Each ZIP includes MQ5 source, required headers, EX5, README, selected-test.set, selection.json and SHA256SUMS.txt. Compiled builds and measured results are unchanged by this documentation update.
ZIP SHA-25607762f0aa2cc6c111ee1cc363701d48c6d01a17d9887cac0b999875fcfde9150
Tested EX5 SHA-256dde5445864f4d1abfe84c60bdfdde05c0de4f13f595d09a454eae78f8a2ff01f
Selection criteria and all strategy categories · Frozen selection record
