Does d1_price_vs_ema20_atr below 9.191 work on USDJPY? 2023 to 2026 backtest
USDJPY long when Close vs D1 EMA20 (M5 ATR) is below the threshold, tested at five thresholds taken from the feature’s own distribution on USDJPY 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 ATR, target 2.5 R, held overnight, max spread 3 pips, one-minute confirmation 0.5 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
d1_price_vs_ema20_atr < -37.057
+10.1 R / 686
+22.4 R / 209
0.9
934
+9.8 R / 124
Net positive, not distinguishable from chance
p25
d1_price_vs_ema20_atr < -14.127
-111.7 R / 1495
+2.7 R / 386
0.1
221,003
-7.2 R / 227
Net positive, not distinguishable from chance
p50
d1_price_vs_ema20_atr < 9.191
-148.2 R / 2739
+41.6 R / 862
0.9
4,472
-12.6 R / 328
Net positive, not distinguishable from chance
p75
d1_price_vs_ema20_atr < 32.589
-169.5 R / 3926
-22.4 R / 1408
-0.4
39,211
-17.5 R / 422
No edge shown
p90
d1_price_vs_ema20_atr < 56.25
-306.4 R / 4410
-67.8 R / 1544
-1.1
5,143
-38.4 R / 449
No edge shown
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
d1_price_vs_ema20_atr < -37.057 (p10)
Honesty panelNet positive, not distinguishable from chance
Net positive out of sample, not yet distinguishable from chance: +22.4 R over 209 trades is +0.107 R per trade, t = 0.9; about 934 trades would be needed to confirm this mean at t = 2, shown: 209; last quarter +9.8 R over 124 trades.
In sample
2023-09-30 to 2025-11-05
+10.1 R
686 trades · 35% wins
+0.015 R per trade · t = 0.2, within chance
about 45,377 trades to confirm this mean (+0.015 R per trade) at t = 2 · shown: 686
spread 0.125 R per trade
Out of sample
2025-11-05 to 2026-09-30
+22.4 R
209 trades · 38% wins
+0.107 R per trade · t = 0.9, within chance
about 934 trades to confirm this mean (+0.107 R per trade) at t = 2 · shown: 209
spread 0.167 R per trade
Last quarter
last 91 days of the window
+9.8 R
124 trades · 37% wins
+0.079 R per trade · t = 0.5, within chance
about 1,672 trades to confirm this mean (+0.079 R per trade) at t = 2 · shown: 124
spread 0.161 R per trade
Costs. Spread 0.135 R per trade at 1.25 times the bar’s minimum (79% of the gross); 126 fills in measured hot hours (01:00 at 4.3 times). Fill offset 0.00 stop-distances on every entry, measured on 473 demo fills. At 1.5 times the bar’s minimum the out-of-sample figure would read +15.4 R (+0.074 R per trade over 209 trades).
Entry: stop order 2 pips past the signal close, cancelled after 4 bars; 1,130 signals placed, 895 filled, 235 expired; trigger state, an entry on every bar the conditions hold while flat.
Exit: stop 2 ATR (mean 14.8 pips, 2.22 ATR, 347 raised to the 10-pip floor); target 2.5 R; exits 62% at the stop, 29% at the target, 9% at the day end.
Filters: signals on every weekday; no entries 22:00 to 01:00 broker time (22,216 bars); max spread 3 pips (80 bars over it); M1 confirmation 0.5 atr (1,464 signals rejected).
d1_price_vs_ema20_atr < -14.127 (p25)
Honesty panelNet positive, not distinguishable from chance
Net positive out of sample, not yet distinguishable from chance: +2.7 R over 386 trades is +0.007 R per trade, t = 0.1; about 221,003 trades would be needed to confirm this mean at t = 2, shown: 386; last quarter -7.2 R over 227 trades.
In sample
2023-09-30 to 2025-11-05
-111.7 R
1495 trades · 32% wins
-0.075 R per trade · t = -1.9, within chance
about 1,674 trades to confirm this mean (-0.075 R per trade) at t = -2 · shown: 1495
spread 0.104 R per trade
Out of sample
2025-11-05 to 2026-09-30
+2.7 R
386 trades · 35% wins
+0.007 R per trade · t = 0.1, within chance
about 221,003 trades to confirm this mean (+0.007 R per trade) at t = 2 · shown: 386
spread 0.133 R per trade
Last quarter
last 91 days of the window
-7.2 R
227 trades · 35% wins
-0.032 R per trade · t = -0.3, within chance
about 10,129 trades to confirm this mean (-0.032 R per trade) at t = -2 · shown: 227
spread 0.140 R per trade
Costs. Spread 0.110 R per trade at 1.25 times the bar’s minimum (more than the trades made before spread); 210 fills in measured hot hours (01:00 at 4.3 times). Fill offset 0.00 stop-distances on every entry, measured on 473 demo fills. At 1.5 times the bar’s minimum the out-of-sample figure would read -7.6 R (-0.020 R per trade over 386 trades).
Entry: stop order 2 pips past the signal close, cancelled after 4 bars; 2,304 signals placed, 1,881 filled, 423 expired; trigger state, an entry on every bar the conditions hold while flat.
Exit: stop 2 ATR (mean 18.1 pips, 2.14 ATR, 455 raised to the 10-pip floor); target 2.5 R; exits 66% at the stop, 26% at the target, 9% at the day end.
Filters: signals on every weekday; no entries 22:00 to 01:00 broker time (20,402 bars); max spread 3 pips (80 bars over it); M1 confirmation 0.5 atr (2,944 signals rejected).
d1_price_vs_ema20_atr < 9.191 (p50)
Honesty panelNet positive, not distinguishable from chance
Net positive out of sample, not yet distinguishable from chance: +41.6 R over 862 trades is +0.048 R per trade, t = 0.9; about 4,472 trades would be needed to confirm this mean at t = 2, shown: 862; last quarter -12.6 R over 328 trades.
In sample
2023-09-30 to 2025-11-05
-148.2 R
2739 trades · 33% wins
-0.054 R per trade · t = -1.8, within chance
about 3,203 trades to confirm this mean (-0.054 R per trade) at t = -2 · shown: 2739
spread 0.100 R per trade
Out of sample
2025-11-05 to 2026-09-30
+41.6 R
862 trades · 37% wins
+0.048 R per trade · t = 0.9, within chance
about 4,472 trades to confirm this mean (+0.048 R per trade) at t = 2 · shown: 862
spread 0.132 R per trade
Last quarter
last 91 days of the window
-12.6 R
328 trades · 35% wins
-0.039 R per trade · t = -0.4, within chance
about 6,584 trades to confirm this mean (-0.039 R per trade) at t = -2 · shown: 328
spread 0.134 R per trade
Costs. Spread 0.107 R per trade at 1.25 times the bar’s minimum (more than the trades made before spread); 351 fills in measured hot hours (01:00 at 4.3 times). Fill offset 0.00 stop-distances on every entry, measured on 473 demo fills. At 1.5 times the bar’s minimum the out-of-sample figure would read +18.9 R (+0.022 R per trade over 862 trades).
Entry: stop order 2 pips past the signal close, cancelled after 4 bars; 4,395 signals placed, 3,601 filled, 794 expired; trigger state, an entry on every bar the conditions hold while flat.
Exit: stop 2 ATR (mean 18.1 pips, 2.12 ATR, 855 raised to the 10-pip floor); target 2.5 R; exits 64% at the stop, 26% at the target, 10% at the day end.
Filters: signals on every weekday; no entries 22:00 to 01:00 broker time (16,235 bars); max spread 3 pips (80 bars over it); M1 confirmation 0.5 atr (5,926 signals rejected).
d1_price_vs_ema20_atr < 32.589 (p75)
Honesty panelNo edge shown
No edge shown out of sample: -22.4 R over 1408 trades is -0.016 R per trade, within what chance produces (t = -0.4); about 39,211 trades would be needed to confirm this mean at t = -2, shown: 1408.
In sample
2023-09-30 to 2025-11-05
-169.5 R
3926 trades · 33% wins
-0.043 R per trade · t = -1.8, within chance
about 5,054 trades to confirm this mean (-0.043 R per trade) at t = -2 · shown: 3926
spread 0.105 R per trade
Out of sample
2025-11-05 to 2026-09-30
-22.4 R
1408 trades · 36% wins
-0.016 R per trade · t = -0.4, within chance
about 39,211 trades to confirm this mean (-0.016 R per trade) at t = -2 · shown: 1408
spread 0.135 R per trade
Last quarter
last 91 days of the window
-17.5 R
422 trades · 35% wins
-0.041 R per trade · t = -0.5, within chance
about 5,689 trades to confirm this mean (-0.041 R per trade) at t = -2 · shown: 422
spread 0.140 R per trade
Costs. Spread 0.113 R per trade at 1.25 times the bar’s minimum (more than the trades made before spread); 519 fills in measured hot hours (01:00 at 4.3 times). Fill offset 0.00 stop-distances on every entry, measured on 473 demo fills. At 1.5 times the bar’s minimum the out-of-sample figure would read -60.4 R (-0.043 R per trade over 1408 trades).
Entry: stop order 2 pips past the signal close, cancelled after 4 bars; 6,558 signals placed, 5,334 filled, 1,224 expired; trigger state, an entry on every bar the conditions hold while flat.
Exit: stop 2 ATR (mean 16.7 pips, 2.16 ATR, 1,607 raised to the 10-pip floor); target 2.5 R; exits 64% at the stop, 26% at the target, 10% at the day end.
Filters: signals on every weekday; no entries 22:00 to 01:00 broker time (11,545 bars); max spread 3 pips (55 bars over it); M1 confirmation 0.5 atr (8,692 signals rejected).
d1_price_vs_ema20_atr < 56.25 (p90)
Honesty panelNo edge shown
No edge shown out of sample: -67.8 R over 1544 trades is -0.044 R per trade, within what chance produces (t = -1.1); about 5,143 trades would be needed to confirm this mean at t = -2, shown: 1544.
In sample
2023-09-30 to 2025-11-05
-306.4 R
4410 trades · 32% wins
-0.069 R per trade · t = -3.0, beyond chance
about 1,968 trades to confirm this mean (-0.069 R per trade) at t = -2 · shown: 4410
spread 0.109 R per trade
Out of sample
2025-11-05 to 2026-09-30
-67.8 R
1544 trades · 35% wins
-0.044 R per trade · t = -1.1, within chance
about 5,143 trades to confirm this mean (-0.044 R per trade) at t = -2 · shown: 1544
spread 0.139 R per trade
Last quarter
last 91 days of the window
-38.4 R
449 trades · 34% wins
-0.085 R per trade · t = -1.2, within chance
about 1,299 trades to confirm this mean (-0.085 R per trade) at t = -2 · shown: 449
spread 0.141 R per trade
Costs. Spread 0.117 R per trade at 1.25 times the bar’s minimum (more than the trades made before spread); 612 fills in measured hot hours (01:00 at 4.3 times). Fill offset 0.00 stop-distances on every entry, measured on 473 demo fills. At 1.5 times the bar’s minimum the out-of-sample figure would read -110.9 R (-0.072 R per trade over 1544 trades).
Entry: stop order 2 pips past the signal close, cancelled after 4 bars; 7,392 signals placed, 5,954 filled, 1,438 expired; trigger state, an entry on every bar the conditions hold while flat.
Exit: stop 2 ATR (mean 16.2 pips, 2.20 ATR, 2,117 raised to the 10-pip floor); target 2.5 R; exits 65% at the stop, 25% at the target, 10% at the day end.
Filters: signals on every weekday; no entries 22:00 to 01:00 broker time (10,791 bars); max spread 3 pips (49 bars over it); M1 confirmation 0.5 atr (9,756 signals rejected).
What d1_price_vs_ema20_atr measures
Close vs D1 EMA20 (M5 ATR) (atr), on D1 bars. M5 close minus the daily EMA20 of the last completed day, in multiples of the M5 ATR(14).
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.