Does m5_gap_atr below 0 work on DJI30? 2023 to 2026 backtest
DJI30 long when Open gap (ATR) is below the threshold, tested at five thresholds taken from the feature’s own distribution on DJI30 over this window: its 10th, 25th, 50th, 75th and 90th percentiles. Window 2023-09-30 to 2026-09-30, the last 30 percent held out of sample; stop 2.5 ATR, target 3.5 R, held overnight, max spread 50 pips, one-minute confirmation 0.2 ATR, no hour filter. Fills and spread as measured on a demo fleet (how a result is judged). The direction and the exit are the ones the research catalogue carried for this pair; the thresholds are not.
Five thresholds, one rule shape
Percentile
Condition
In sample R / trades
Out of sample R / trades
t
Trades to confirm
Last quarter R / trades
Verdict
p10
m5_gap_atr < -0.05426
-336.4 R / 2150
-131.3 R / 881
-2.4
603
-46.7 R / 270
Active, net negative
p25
m5_gap_atr < -0.02265
-347.7 R / 2753
-193.9 R / 1172
-3.2
457
-64.3 R / 371
Active, net negative
p50
m5_gap_atr < 0
-429.1 R / 2917
-215.0 R / 1260
-3.4
427
-85.1 R / 418
Active, net negative
p75
m5_gap_atr < 0.02246
-390.2 R / 2959
-209.9 R / 1330
-3.2
506
-78.0 R / 436
Active, net negative
p90
m5_gap_atr < 0.054
-407.7 R / 3018
-215.6 R / 1349
-3.3
493
-84.3 R / 452
Active, net negative
R is the risk on one trade. The out-of-sample split carries the verdict: below 100 trades it is “no edge shown” whatever the t; a positive mean with t below 2 is “net positive, not yet distinguishable from chance”; the last column is how many trades that mean would need to reach t = 2.
Each threshold in full
m5_gap_atr < -0.05426 (p10)
Honesty panelActive, net negative
Traded 881 times out of sample, net negative beyond chance (-131.3 R, -0.149 R per trade, t = -2.4); still active in the last quarter (-46.7 R over 270 trades).
In sample
2023-09-30 to 2025-11-05
-336.4 R
2150 trades · 27% wins
-0.156 R per trade · t = -3.9, beyond chance
about 560 trades to confirm this mean (-0.156 R per trade) at t = -2 · shown: 2150
spread 0.105 R per trade
Out of sample
2025-11-05 to 2026-09-30
-131.3 R
881 trades · 27% wins
-0.149 R per trade · t = -2.4, beyond chance
about 603 trades to confirm this mean (-0.149 R per trade) at t = -2 · shown: 881
spread 0.082 R per trade
Last quarter
last 91 days of the window
-46.7 R
270 trades · 26% wins
-0.173 R per trade · t = -1.6, within chance
about 439 trades to confirm this mean (-0.173 R per trade) at t = -2 · shown: 270
spread 0.098 R per trade
Costs. Spread 0.098 R per trade at 1.25 times the bar’s minimum. Fill offset 0.14 stop-distances on every entry, measured on 931 demo fills. At 1.5 times the bar’s minimum the out-of-sample figure would read -145.7 R (-0.165 R per trade over 881 trades).
Entry: stop order 2 pips past the signal close, cancelled after 4 bars; 3,062 signals placed, 3,031 filled, 31 expired; trigger state, an entry on every bar the conditions hold while flat.
Exit: stop 2.5 ATR (mean 554.2 pips, 2.50 ATR); target 3.5 R; exits 71% at the stop, 21% at the target, 8% at the day end.
Filters: signals on every weekday; no entries 22:00 to 01:00 broker time (9,093 bars); max spread 50 pips (1,272 bars over it); M1 confirmation 0.2 atr (1,071 signals rejected).
m5_gap_atr < -0.02265 (p25)
Honesty panelActive, net negative
Traded 1172 times out of sample, net negative beyond chance (-193.9 R, -0.165 R per trade, t = -3.2); still active in the last quarter (-64.3 R over 371 trades).
In sample
2023-09-30 to 2025-11-05
-347.7 R
2753 trades · 29% wins
-0.126 R per trade · t = -3.7, beyond chance
about 807 trades to confirm this mean (-0.126 R per trade) at t = -2 · shown: 2753
spread 0.083 R per trade
Out of sample
2025-11-05 to 2026-09-30
-193.9 R
1172 trades · 28% wins
-0.165 R per trade · t = -3.2, beyond chance
about 457 trades to confirm this mean (-0.165 R per trade) at t = -2 · shown: 1172
spread 0.069 R per trade
Last quarter
last 91 days of the window
-64.3 R
371 trades · 27% wins
-0.173 R per trade · t = -1.9, within chance
about 417 trades to confirm this mean (-0.173 R per trade) at t = -2 · shown: 371
spread 0.081 R per trade
Costs. Spread 0.079 R per trade at 1.25 times the bar’s minimum. Fill offset 0.14 stop-distances on every entry, measured on 931 demo fills. At 1.5 times the bar’s minimum the out-of-sample figure would read -210.0 R (-0.179 R per trade over 1172 trades).
Entry: stop order 2 pips past the signal close, cancelled after 4 bars; 3,956 signals placed, 3,925 filled, 31 expired; trigger state, an entry on every bar the conditions hold while flat.
Exit: stop 2.5 ATR (mean 710.3 pips, 2.50 ATR); target 3.5 R; exits 68% at the stop, 19% at the target, 13% at the day end.
Filters: signals on every weekday; no entries 22:00 to 01:00 broker time (2,948 bars); max spread 50 pips (1,067 bars over it); M1 confirmation 0.2 atr (1,415 signals rejected).
m5_gap_atr < 0 (p50)
Honesty panelActive, net negative
Traded 1260 times out of sample, net negative beyond chance (-215.0 R, -0.171 R per trade, t = -3.4); still active in the last quarter (-85.1 R over 418 trades).
In sample
2023-09-30 to 2025-11-05
-429.1 R
2917 trades · 29% wins
-0.147 R per trade · t = -4.5, beyond chance
about 580 trades to confirm this mean (-0.147 R per trade) at t = -2 · shown: 2917
spread 0.079 R per trade
Out of sample
2025-11-05 to 2026-09-30
-215.0 R
1260 trades · 28% wins
-0.171 R per trade · t = -3.4, beyond chance
about 427 trades to confirm this mean (-0.171 R per trade) at t = -2 · shown: 1260
spread 0.066 R per trade
Last quarter
last 91 days of the window
-85.1 R
418 trades · 26% wins
-0.204 R per trade · t = -2.4, beyond chance
about 293 trades to confirm this mean (-0.204 R per trade) at t = -2 · shown: 418
spread 0.076 R per trade
Costs. Spread 0.075 R per trade at 1.25 times the bar’s minimum. Fill offset 0.14 stop-distances on every entry, measured on 931 demo fills. At 1.5 times the bar’s minimum the out-of-sample figure would read -231.8 R (-0.184 R per trade over 1260 trades).
Entry: stop order 2 pips past the signal close, cancelled after 4 bars; 4,212 signals placed, 4,177 filled, 35 expired; trigger state, an entry on every bar the conditions hold while flat.
Exit: stop 2.5 ATR (mean 750.4 pips, 2.50 ATR); target 3.5 R; exits 69% at the stop, 18% at the target, 13% at the day end.
Filters: signals on every weekday; no entries 22:00 to 01:00 broker time (1,903 bars); max spread 50 pips (1,061 bars over it); M1 confirmation 0.2 atr (1,398 signals rejected).
m5_gap_atr < 0.02246 (p75)
Honesty panelActive, net negative
Traded 1330 times out of sample, net negative beyond chance (-209.9 R, -0.158 R per trade, t = -3.2); still active in the last quarter (-78.0 R over 436 trades).
In sample
2023-09-30 to 2025-11-05
-390.2 R
2959 trades · 29% wins
-0.132 R per trade · t = -4.0, beyond chance
about 731 trades to confirm this mean (-0.132 R per trade) at t = -2 · shown: 2959
spread 0.076 R per trade
Out of sample
2025-11-05 to 2026-09-30
-209.9 R
1330 trades · 28% wins
-0.158 R per trade · t = -3.2, beyond chance
about 506 trades to confirm this mean (-0.158 R per trade) at t = -2 · shown: 1330
spread 0.065 R per trade
Last quarter
last 91 days of the window
-78.0 R
436 trades · 28% wins
-0.179 R per trade · t = -2.1, beyond chance
about 390 trades to confirm this mean (-0.179 R per trade) at t = -2 · shown: 436
spread 0.076 R per trade
Costs. Spread 0.073 R per trade at 1.25 times the bar’s minimum. Fill offset 0.14 stop-distances on every entry, measured on 931 demo fills. At 1.5 times the bar’s minimum the out-of-sample figure would read -227.2 R (-0.171 R per trade over 1330 trades).
Entry: stop order 2 pips past the signal close, cancelled after 4 bars; 4,321 signals placed, 4,289 filled, 32 expired; trigger state, an entry on every bar the conditions hold while flat.
Exit: stop 2.5 ATR (mean 756.9 pips, 2.50 ATR); target 3.5 R; exits 69% at the stop, 18% at the target, 13% at the day end.
Filters: signals on every weekday; no entries 22:00 to 01:00 broker time (1,730 bars); max spread 50 pips (1,010 bars over it); M1 confirmation 0.2 atr (1,427 signals rejected).
m5_gap_atr < 0.054 (p90)
Honesty panelActive, net negative
Traded 1349 times out of sample, net negative beyond chance (-215.6 R, -0.160 R per trade, t = -3.3); still active in the last quarter (-84.3 R over 452 trades).
In sample
2023-09-30 to 2025-11-05
-407.7 R
3018 trades · 29% wins
-0.135 R per trade · t = -4.2, beyond chance
about 700 trades to confirm this mean (-0.135 R per trade) at t = -2 · shown: 3018
spread 0.076 R per trade
Out of sample
2025-11-05 to 2026-09-30
-215.6 R
1349 trades · 28% wins
-0.160 R per trade · t = -3.3, beyond chance
about 493 trades to confirm this mean (-0.160 R per trade) at t = -2 · shown: 1349
spread 0.065 R per trade
Last quarter
last 91 days of the window
-84.3 R
452 trades · 27% wins
-0.186 R per trade · t = -2.2, beyond chance
about 359 trades to confirm this mean (-0.186 R per trade) at t = -2 · shown: 452
spread 0.076 R per trade
Costs. Spread 0.073 R per trade at 1.25 times the bar’s minimum. Fill offset 0.14 stop-distances on every entry, measured on 931 demo fills. At 1.5 times the bar’s minimum the out-of-sample figure would read -233.2 R (-0.173 R per trade over 1349 trades).
Entry: stop order 2 pips past the signal close, cancelled after 4 bars; 4,401 signals placed, 4,367 filled, 34 expired; trigger state, an entry on every bar the conditions hold while flat.
Exit: stop 2.5 ATR (mean 752.7 pips, 2.50 ATR); target 3.5 R; exits 69% at the stop, 18% at the target, 13% at the day end.
Filters: signals on every weekday; no entries 22:00 to 01:00 broker time (1,685 bars); max spread 50 pips (1,046 bars over it); M1 confirmation 0.2 atr (1,419 signals rejected).
What m5_gap_atr measures
Open gap (ATR) (atr), on M5 bars. This bar's open minus the previous close, in ATR multiples.
Test your own variant
Rule Collider runs one rule on one symbol over years of broker M5 data with the fills and the spread a demo fleet measured, and shows the out-of-sample figure first. Early access goes to the waitlist in signup order.
Historical simulation on broker M5 data with a measured fill offset, a measured spread factor, swap and a one-minute confirmation model. Past results do not predict future results. This is a research tool, not investment advice. Hours are broker time, the chart time in MT5. Built 2026-11-04 from runs ending 2026-09-30; refreshed monthly.