Does d1_price_vs_ema20_atr above 13.027 work on GOLD? 2023 to 2026 backtest
GOLD long when Close vs D1 EMA20 (M5 ATR) is above the threshold, tested at five thresholds taken from the feature’s own distribution on GOLD 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 2 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
d1_price_vs_ema20_atr > -20.143
-190.5 R / 3339
-87.2 R / 1115
-1.6
1,751
-46.3 R / 388
No edge shown
p25
d1_price_vs_ema20_atr > -4.831
-201.7 R / 2832
-44.7 R / 834
-0.9
3,782
-31.4 R / 234
No edge shown
p50
d1_price_vs_ema20_atr > 13.027
-55.0 R / 2051
-16.7 R / 530
-0.4
11,395
+5.9 R / 133
No edge shown
p75
d1_price_vs_ema20_atr > 35.576
+5.9 R / 1264
-6.2 R / 330
-0.2
33,162
-2.7 R / 117
No edge shown
p90
d1_price_vs_ema20_atr > 58.411
-36.4 R / 734
-3.4 R / 166
-0.2
28,159
-27.6 R / 79
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 > -20.143 (p10)
Honesty panelNo edge shown
No edge shown out of sample: -87.2 R over 1115 trades is -0.078 R per trade, within what chance produces (t = -1.6); about 1,751 trades would be needed to confirm this mean at t = -2, shown: 1115.
In sample
2023-09-30 to 2025-11-05
-190.5 R
3339 trades · 32% wins
-0.057 R per trade · t = -2.0, within chance
about 3,455 trades to confirm this mean (-0.057 R per trade) at t = -2 · shown: 3339
spread 0.099 R per trade
Out of sample
2025-11-05 to 2026-09-30
-87.2 R
1115 trades · 31% wins
-0.078 R per trade · t = -1.6, within chance
about 1,751 trades to confirm this mean (-0.078 R per trade) at t = -2 · shown: 1115
spread 0.056 R per trade
Last quarter
last 91 days of the window
-46.3 R
388 trades · 29% wins
-0.119 R per trade · t = -1.4, within chance
about 747 trades to confirm this mean (-0.119 R per trade) at t = -2 · shown: 388
spread 0.074 R per trade
Costs. Spread 0.088 R per trade at 1.25 times the bar’s minimum (more than the trades made before spread); 720 fills in measured hot hours (01:00 at 3.9 times). Fill offset 0.08 stop-distances on every entry, measured on 732 demo fills. Note: the symbol's quoting precision changed on 2025-08-04; the spread field is converted with the point of each era. At 1.5 times the bar’s minimum the out-of-sample figure would read -99.7 R (-0.089 R per trade over 1115 trades).
Entry: stop order 2 pips past the signal close, cancelled after 4 bars; 4,670 signals placed, 4,454 filled, 216 expired; trigger state, an entry on every bar the conditions hold while flat.
Exit: stop 2.5 ATR (mean 89.5 pips, 2.50 ATR, 20 raised to the 10-pip floor); 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 (1,554 bars); max spread 30 pips (0 bars over it); M1 confirmation 2 pips (855 signals rejected).
d1_price_vs_ema20_atr > -4.831 (p25)
Honesty panelNo edge shown
No edge shown out of sample: -44.7 R over 834 trades is -0.054 R per trade, within what chance produces (t = -0.9); about 3,782 trades would be needed to confirm this mean at t = -2, shown: 834.
In sample
2023-09-30 to 2025-11-05
-201.7 R
2832 trades · 32% wins
-0.071 R per trade · t = -2.3, beyond chance
about 2,194 trades to confirm this mean (-0.071 R per trade) at t = -2 · shown: 2832
spread 0.096 R per trade
Out of sample
2025-11-05 to 2026-09-30
-44.7 R
834 trades · 32% wins
-0.054 R per trade · t = -0.9, within chance
about 3,782 trades to confirm this mean (-0.054 R per trade) at t = -2 · shown: 834
spread 0.055 R per trade
Last quarter
last 91 days of the window
-31.4 R
234 trades · 29% wins
-0.134 R per trade · t = -1.3, within chance
about 593 trades to confirm this mean (-0.134 R per trade) at t = -2 · shown: 234
spread 0.078 R per trade
Costs. Spread 0.087 R per trade at 1.25 times the bar’s minimum (more than the trades made before spread); 600 fills in measured hot hours (01:00 at 3.9 times). Fill offset 0.08 stop-distances on every entry, measured on 732 demo fills. Note: the symbol's quoting precision changed on 2025-08-04; the spread field is converted with the point of each era. At 1.5 times the bar’s minimum the out-of-sample figure would read -53.9 R (-0.065 R per trade over 834 trades).
Entry: stop order 2 pips past the signal close, cancelled after 4 bars; 3,852 signals placed, 3,666 filled, 186 expired; trigger state, an entry on every bar the conditions hold while flat.
Exit: stop 2.5 ATR (mean 88.3 pips, 2.50 ATR, 20 raised to the 10-pip floor); 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 (4,026 bars); max spread 30 pips (2 bars over it); M1 confirmation 2 pips (713 signals rejected).
d1_price_vs_ema20_atr > 13.027 (p50)
Honesty panelNo edge shown
No edge shown out of sample: -16.7 R over 530 trades is -0.031 R per trade, within what chance produces (t = -0.4); about 11,395 trades would be needed to confirm this mean at t = -2, shown: 530.
In sample
2023-09-30 to 2025-11-05
-55.0 R
2051 trades · 33% wins
-0.027 R per trade · t = -0.7, within chance
about 16,114 trades to confirm this mean (-0.027 R per trade) at t = -2 · shown: 2051
spread 0.102 R per trade
Out of sample
2025-11-05 to 2026-09-30
-16.7 R
530 trades · 32% wins
-0.031 R per trade · t = -0.4, within chance
about 11,395 trades to confirm this mean (-0.031 R per trade) at t = -2 · shown: 530
spread 0.059 R per trade
Last quarter
last 91 days of the window
+5.9 R
133 trades · 32% wins
+0.045 R per trade · t = 0.3, within chance
about 6,114 trades to confirm this mean (+0.045 R per trade) at t = 2 · shown: 133
spread 0.081 R per trade
Costs. Spread 0.093 R per trade at 1.25 times the bar’s minimum (more than the trades made before spread); 430 fills in measured hot hours (01:00 at 3.9 times). Fill offset 0.08 stop-distances on every entry, measured on 732 demo fills. Note: the symbol's quoting precision changed on 2025-08-04; the spread field is converted with the point of each era. At 1.5 times the bar’s minimum the out-of-sample figure would read -22.9 R (-0.043 R per trade over 530 trades).
Entry: stop order 2 pips past the signal close, cancelled after 4 bars; 2,744 signals placed, 2,581 filled, 163 expired; trigger state, an entry on every bar the conditions hold while flat.
Exit: stop 2.5 ATR (mean 75.7 pips, 2.50 ATR, 19 raised to the 10-pip floor); target 3 R; exits 65% at the stop, 23% at the target, 12% at the day end.
Filters: signals on every weekday; no entries 22:00 to 01:00 broker time (7,927 bars); max spread 30 pips (3 bars over it); M1 confirmation 2 pips (560 signals rejected).
d1_price_vs_ema20_atr > 35.576 (p75)
Honesty panelNo edge shown
No edge shown out of sample: -6.2 R over 330 trades is -0.019 R per trade, within what chance produces (t = -0.2); about 33,162 trades would be needed to confirm this mean at t = -2, shown: 330.
In sample
2023-09-30 to 2025-11-05
+5.9 R
1264 trades · 33% wins
+0.005 R per trade · t = 0.1, within chance
about 559,016 trades to confirm this mean (+0.005 R per trade) at t = 2 · shown: 1264
spread 0.116 R per trade
Out of sample
2025-11-05 to 2026-09-30
-6.2 R
330 trades · 31% wins
-0.019 R per trade · t = -0.2, within chance
about 33,162 trades to confirm this mean (-0.019 R per trade) at t = -2 · shown: 330
spread 0.067 R per trade
Last quarter
last 91 days of the window
-2.7 R
117 trades · 32% wins
-0.023 R per trade · t = -0.1, within chance
about 21,859 trades to confirm this mean (-0.023 R per trade) at t = -2 · shown: 117
spread 0.087 R per trade
Costs. Spread 0.106 R per trade at 1.25 times the bar’s minimum (more than the trades made before spread); 261 fills in measured hot hours (01:00 at 3.9 times). Fill offset 0.08 stop-distances on every entry, measured on 732 demo fills. Note: the symbol's quoting precision changed on 2025-08-04; the spread field is converted with the point of each era. At 1.5 times the bar’s minimum the out-of-sample figure would read -10.7 R (-0.032 R per trade over 330 trades).
Entry: stop order 2 pips past the signal close, cancelled after 4 bars; 1,705 signals placed, 1,594 filled, 111 expired; trigger state, an entry on every bar the conditions hold while flat.
Exit: stop 2.5 ATR (mean 61.1 pips, 2.50 ATR, 10 raised to the 10-pip floor); target 3 R; exits 64% 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 (11,081 bars); max spread 30 pips (7 bars over it); M1 confirmation 2 pips (411 signals rejected).
d1_price_vs_ema20_atr > 58.411 (p90)
Honesty panelNo edge shown
No edge shown out of sample: -3.4 R over 166 trades is -0.021 R per trade, within what chance produces (t = -0.2); about 28,159 trades would be needed to confirm this mean at t = -2, shown: 166.
In sample
2023-09-30 to 2025-11-05
-36.4 R
734 trades · 32% wins
-0.050 R per trade · t = -0.8, within chance
about 4,928 trades to confirm this mean (-0.050 R per trade) at t = -2 · shown: 734
spread 0.137 R per trade
Out of sample
2025-11-05 to 2026-09-30
-3.4 R
166 trades · 30% wins
-0.021 R per trade · t = -0.2, within chance
about 28,159 trades to confirm this mean (-0.021 R per trade) at t = -2 · shown: 166
spread 0.082 R per trade
Last quarter
last 91 days of the window
-27.6 R
79 trades · 22% wins
-0.349 R per trade · t = -2.0, beyond chance
about 79 trades to confirm this mean (-0.349 R per trade) at t = -2 · shown: 79
spread 0.110 R per trade
Costs. Spread 0.127 R per trade at 1.25 times the bar’s minimum (more than the trades made before spread); 163 fills in measured hot hours (01:00 at 3.9 times). Fill offset 0.08 stop-distances on every entry, measured on 732 demo fills. Note: the symbol's quoting precision changed on 2025-08-04; the spread field is converted with the point of each era. At 1.5 times the bar’s minimum the out-of-sample figure would read -6.2 R (-0.037 R per trade over 166 trades).
Entry: stop order 2 pips past the signal close, cancelled after 4 bars; 982 signals placed, 900 filled, 82 expired; trigger state, an entry on every bar the conditions hold while flat.
Exit: stop 2.5 ATR (mean 50.8 pips, 2.51 ATR, 13 raised to the 10-pip floor); target 3 R; exits 66% at the stop, 26% at the target, 8% at the day end.
Filters: signals on every weekday; no entries 22:00 to 01:00 broker time (13,470 bars); max spread 30 pips (7 bars over it); M1 confirmation 2 pips (276 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.