Does price_vs_ema20_atr above 0.1533 work on US100? 2023 to 2026 backtest
US100 long when Close vs EMA20 (ATR) is above the threshold, tested at five thresholds taken from the feature’s own distribution on US100 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 R, held overnight, max spread 30 pips, one-minute confirmation 65 pips, 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
price_vs_ema20_atr > -1.646
-202.1 R / 2794
-133.7 R / 1233
-2.3
905
-38.5 R / 376
Active, net negative
p25
price_vs_ema20_atr > -0.7811
-187.5 R / 2554
-102.6 R / 1138
-1.9
1,317
-35.6 R / 361
No edge shown
p50
price_vs_ema20_atr > 0.1533
-179.8 R / 2290
-67.8 R / 1003
-1.3
2,362
-38.5 R / 320
No edge shown
p75
price_vs_ema20_atr > 1.069
-89.6 R / 1759
-40.0 R / 801
-0.8
4,462
-25.7 R / 246
No edge shown
p90
price_vs_ema20_atr > 1.884
+83.2 R / 1149
+11.7 R / 536
0.3
24,215
-13.3 R / 169
Net positive, not distinguishable from chance
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
price_vs_ema20_atr > -1.646 (p10)
Honesty panelActive, net negative
Traded 1233 times out of sample, net negative beyond chance (-133.7 R, -0.108 R per trade, t = -2.3); still active in the last quarter (-38.5 R over 376 trades).
In sample
2023-09-30 to 2025-11-05
-202.1 R
2794 trades · 31% wins
-0.072 R per trade · t = -2.3, beyond chance
about 2,101 trades to confirm this mean (-0.072 R per trade) at t = -2 · shown: 2794
spread 0.070 R per trade
Out of sample
2025-11-05 to 2026-09-30
-133.7 R
1233 trades · 29% wins
-0.108 R per trade · t = -2.3, beyond chance
about 905 trades to confirm this mean (-0.108 R per trade) at t = -2 · shown: 1233
spread 0.040 R per trade
Last quarter
last 91 days of the window
-38.5 R
376 trades · 30% wins
-0.103 R per trade · t = -1.2, within chance
about 988 trades to confirm this mean (-0.103 R per trade) at t = -2 · shown: 376
spread 0.037 R per trade
Costs. Spread 0.061 R per trade at 1.25 times the bar’s minimum. Fill offset 0.08 stop-distances on every entry, measured on 1,037 demo fills. At 1.5 times the bar’s minimum the out-of-sample figure would read -143.5 R (-0.116 R per trade over 1233 trades).
Entry: stop order 2 pips past the signal close, cancelled after 4 bars; 4,053 signals placed, 4,027 filled, 26 expired; trigger state, an entry on every bar the conditions hold while flat.
Exit: stop 2.5 ATR (mean 570.5 pips, 2.50 ATR); target 3 R; exits 66% at the stop, 21% at the target, 13% at the day end.
Filters: signals on every weekday; no entries 22:00 to 01:00 broker time (2,447 bars); max spread 30 pips (0 bars over it); M1 confirmation 65 pips (11,323 signals rejected).
price_vs_ema20_atr > -0.7811 (p25)
Honesty panelNo edge shown
No edge shown out of sample: -102.6 R over 1138 trades is -0.090 R per trade, within what chance produces (t = -1.9); about 1,317 trades would be needed to confirm this mean at t = -2, shown: 1138.
In sample
2023-09-30 to 2025-11-05
-187.5 R
2554 trades · 31% wins
-0.073 R per trade · t = -2.2, beyond chance
about 2,044 trades to confirm this mean (-0.073 R per trade) at t = -2 · shown: 2554
spread 0.070 R per trade
Out of sample
2025-11-05 to 2026-09-30
-102.6 R
1138 trades · 30% wins
-0.090 R per trade · t = -1.9, within chance
about 1,317 trades to confirm this mean (-0.090 R per trade) at t = -2 · shown: 1138
spread 0.041 R per trade
Last quarter
last 91 days of the window
-35.6 R
361 trades · 31% wins
-0.099 R per trade · t = -1.2, within chance
about 1,069 trades to confirm this mean (-0.099 R per trade) at t = -2 · shown: 361
spread 0.038 R per trade
Costs. Spread 0.061 R per trade at 1.25 times the bar’s minimum. Fill offset 0.08 stop-distances on every entry, measured on 1,037 demo fills. At 1.5 times the bar’s minimum the out-of-sample figure would read -111.9 R (-0.098 R per trade over 1138 trades).
Entry: stop order 2 pips past the signal close, cancelled after 4 bars; 3,723 signals placed, 3,692 filled, 31 expired; trigger state, an entry on every bar the conditions hold while flat.
Exit: stop 2.5 ATR (mean 566.5 pips, 2.50 ATR); target 3 R; exits 66% at the stop, 21% at the target, 13% at the day end.
Filters: signals on every weekday; no entries 22:00 to 01:00 broker time (3,201 bars); max spread 30 pips (0 bars over it); M1 confirmation 65 pips (11,268 signals rejected).
price_vs_ema20_atr > 0.1533 (p50)
Honesty panelNo edge shown
No edge shown out of sample: -67.8 R over 1003 trades is -0.068 R per trade, within what chance produces (t = -1.3); about 2,362 trades would be needed to confirm this mean at t = -2, shown: 1003.
In sample
2023-09-30 to 2025-11-05
-179.8 R
2290 trades · 31% wins
-0.079 R per trade · t = -2.3, beyond chance
about 1,788 trades to confirm this mean (-0.079 R per trade) at t = -2 · shown: 2290
spread 0.072 R per trade
Out of sample
2025-11-05 to 2026-09-30
-67.8 R
1003 trades · 31% wins
-0.068 R per trade · t = -1.3, within chance
about 2,362 trades to confirm this mean (-0.068 R per trade) at t = -2 · shown: 1003
spread 0.042 R per trade
Last quarter
last 91 days of the window
-38.5 R
320 trades · 29% wins
-0.120 R per trade · t = -1.3, within chance
about 713 trades to confirm this mean (-0.120 R per trade) at t = -2 · shown: 320
spread 0.038 R per trade
Costs. Spread 0.063 R per trade at 1.25 times the bar’s minimum. Fill offset 0.08 stop-distances on every entry, measured on 1,037 demo fills. At 1.5 times the bar’s minimum the out-of-sample figure would read -76.2 R (-0.076 R per trade over 1003 trades).
Entry: stop order 2 pips past the signal close, cancelled after 4 bars; 3,320 signals placed, 3,293 filled, 27 expired; trigger state, an entry on every bar the conditions hold while flat.
Exit: stop 2.5 ATR (mean 549.9 pips, 2.50 ATR); target 3 R; exits 66% at the stop, 21% at the target, 13% at the day end.
Filters: signals on every weekday; no entries 22:00 to 01:00 broker time (4,415 bars); max spread 30 pips (0 bars over it); M1 confirmation 65 pips (9,732 signals rejected).
price_vs_ema20_atr > 1.069 (p75)
Honesty panelNo edge shown
No edge shown out of sample: -40.0 R over 801 trades is -0.050 R per trade, within what chance produces (t = -0.8); about 4,462 trades would be needed to confirm this mean at t = -2, shown: 801.
In sample
2023-09-30 to 2025-11-05
-89.6 R
1759 trades · 32% wins
-0.051 R per trade · t = -1.3, within chance
about 4,443 trades to confirm this mean (-0.051 R per trade) at t = -2 · shown: 1759
spread 0.073 R per trade
Out of sample
2025-11-05 to 2026-09-30
-40.0 R
801 trades · 31% wins
-0.050 R per trade · t = -0.8, within chance
about 4,462 trades to confirm this mean (-0.050 R per trade) at t = -2 · shown: 801
spread 0.043 R per trade
Last quarter
last 91 days of the window
-25.7 R
246 trades · 29% wins
-0.104 R per trade · t = -1.0, within chance
about 993 trades to confirm this mean (-0.104 R per trade) at t = -2 · shown: 246
spread 0.038 R per trade
Costs. Spread 0.064 R per trade at 1.25 times the bar’s minimum (more than the trades made before spread). Fill offset 0.08 stop-distances on every entry, measured on 1,037 demo fills. At 1.5 times the bar’s minimum the out-of-sample figure would read -46.8 R (-0.058 R per trade over 801 trades).
Entry: stop order 2 pips past the signal close, cancelled after 4 bars; 2,580 signals placed, 2,560 filled, 20 expired; trigger state, an entry on every bar the conditions hold while flat.
Exit: stop 2.5 ATR (mean 533.2 pips, 2.50 ATR); target 3 R; exits 65% at the stop, 22% at the target, 13% at the day end.
Filters: signals on every weekday; no entries 22:00 to 01:00 broker time (7,206 bars); max spread 30 pips (0 bars over it); M1 confirmation 65 pips (6,538 signals rejected).
price_vs_ema20_atr > 1.884 (p90)
Honesty panelNet positive, not distinguishable from chance
Net positive out of sample, not yet distinguishable from chance: +11.7 R over 536 trades is +0.022 R per trade, t = 0.3; about 24,215 trades would be needed to confirm this mean at t = 2, shown: 536; last quarter -13.3 R over 169 trades.
In sample
2023-09-30 to 2025-11-05
+83.2 R
1149 trades · 35% wins
+0.072 R per trade · t = 1.4, within chance
about 2,314 trades to confirm this mean (+0.072 R per trade) at t = 2 · shown: 1149
spread 0.071 R per trade
Out of sample
2025-11-05 to 2026-09-30
+11.7 R
536 trades · 33% wins
+0.022 R per trade · t = 0.3, within chance
about 24,215 trades to confirm this mean (+0.022 R per trade) at t = 2 · shown: 536
spread 0.044 R per trade
Last quarter
last 91 days of the window
-13.3 R
169 trades · 30% wins
-0.079 R per trade · t = -0.6, within chance
about 1,797 trades to confirm this mean (-0.079 R per trade) at t = -2 · shown: 169
spread 0.039 R per trade
Costs. Spread 0.062 R per trade at 1.25 times the bar’s minimum (53% of the gross). Fill offset 0.08 stop-distances on every entry, measured on 1,037 demo fills. At 1.5 times the bar’s minimum the out-of-sample figure would read +7.0 R (+0.013 R per trade over 536 trades).
Entry: stop order 2 pips past the signal close, cancelled after 4 bars; 1,694 signals placed, 1,685 filled, 9 expired; trigger state, an entry on every bar the conditions hold while flat.
Exit: stop 2.5 ATR (mean 512.1 pips, 2.50 ATR); target 3 R; exits 62% at the stop, 25% at the target, 13% at the day end.
Filters: signals on every weekday; no entries 22:00 to 01:00 broker time (9,788 bars); max spread 30 pips (0 bars over it); M1 confirmation 65 pips (3,342 signals rejected).
What price_vs_ema20_atr measures
Close vs EMA20 (ATR) (atr), on M5 bars. Distance of the close from the 20-bar exponential average, in multiples of the 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.