Does h4_momentum_atr above 0.3392 work on GOLD? 2023 to 2026 backtest
GOLD long when Close vs H4 EMA20 (H4 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
h4_momentum_atr > -1.556
-152.7 R / 3179
-116.2 R / 1179
-2.1
1,114
-55.0 R / 420
Active, net negative
p25
h4_momentum_atr > -0.6324
-101.1 R / 2709
-75.0 R / 970
-1.5
1,819
-38.7 R / 338
No edge shown
p50
h4_momentum_atr > 0.3392
-50.8 R / 1964
-45.3 R / 635
-1.1
2,127
-31.8 R / 203
No edge shown
p75
h4_momentum_atr > 1.466
+17.4 R / 1037
+8.7 R / 300
0.3
13,659
+1.7 R / 90
Net positive, not distinguishable from chance
p90
h4_momentum_atr > 2.444
-9.6 R / 481
+36.9 R / 123
1.8
146
+8.7 R / 35
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
h4_momentum_atr > -1.556 (p10)
Honesty panelActive, net negative
Traded 1179 times out of sample, net negative beyond chance (-116.2 R, -0.099 R per trade, t = -2.1); still active in the last quarter (-55.0 R over 420 trades).
In sample
2023-09-30 to 2025-11-05
-152.7 R
3179 trades · 33% wins
-0.048 R per trade · t = -1.6, within chance
about 4,936 trades to confirm this mean (-0.048 R per trade) at t = -2 · shown: 3179
spread 0.104 R per trade
Out of sample
2025-11-05 to 2026-09-30
-116.2 R
1179 trades · 30% wins
-0.099 R per trade · t = -2.1, beyond chance
about 1,114 trades to confirm this mean (-0.099 R per trade) at t = -2 · shown: 1179
spread 0.064 R per trade
Last quarter
last 91 days of the window
-55.0 R
420 trades · 29% wins
-0.131 R per trade · t = -1.6, within chance
about 630 trades to confirm this mean (-0.131 R per trade) at t = -2 · shown: 420
spread 0.085 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); 733 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 -131.2 R (-0.111 R per trade over 1179 trades).
Entry: stop order 2 pips past the signal close, cancelled after 4 bars; 4,576 signals placed, 4,358 filled, 218 expired; trigger state, an entry on every bar the conditions hold while flat.
Exit: stop 2.5 ATR (mean 86.7 pips, 2.50 ATR, 29 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 (2,484 bars); max spread 30 pips (0 bars over it); M1 confirmation 2 pips (883 signals rejected).
h4_momentum_atr > -0.6324 (p25)
Honesty panelNo edge shown
No edge shown out of sample: -75.0 R over 970 trades is -0.077 R per trade, within what chance produces (t = -1.5); about 1,819 trades would be needed to confirm this mean at t = -2, shown: 970.
In sample
2023-09-30 to 2025-11-05
-101.1 R
2709 trades · 33% wins
-0.037 R per trade · t = -1.1, within chance
about 8,241 trades to confirm this mean (-0.037 R per trade) at t = -2 · shown: 2709
spread 0.103 R per trade
Out of sample
2025-11-05 to 2026-09-30
-75.0 R
970 trades · 31% wins
-0.077 R per trade · t = -1.5, within chance
about 1,819 trades to confirm this mean (-0.077 R per trade) at t = -2 · shown: 970
spread 0.063 R per trade
Last quarter
last 91 days of the window
-38.7 R
338 trades · 30% wins
-0.114 R per trade · t = -1.3, within chance
about 826 trades to confirm this mean (-0.114 R per trade) at t = -2 · shown: 338
spread 0.082 R per trade
Costs. Spread 0.092 R per trade at 1.25 times the bar’s minimum (more than the trades made before spread); 609 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 -87.1 R (-0.090 R per trade over 970 trades).
Entry: stop order 2 pips past the signal close, cancelled after 4 bars; 3,868 signals placed, 3,679 filled, 189 expired; trigger state, an entry on every bar the conditions hold while flat.
Exit: stop 2.5 ATR (mean 83.8 pips, 2.50 ATR, 23 raised to the 10-pip floor); target 3 R; exits 65% at the stop, 23% at the target, 13% at the day end.
Filters: signals on every weekday; no entries 22:00 to 01:00 broker time (4,522 bars); max spread 30 pips (0 bars over it); M1 confirmation 2 pips (730 signals rejected).
h4_momentum_atr > 0.3392 (p50)
Honesty panelNo edge shown
No edge shown out of sample: -45.3 R over 635 trades is -0.071 R per trade, within what chance produces (t = -1.1); about 2,127 trades would be needed to confirm this mean at t = -2, shown: 635.
In sample
2023-09-30 to 2025-11-05
-50.8 R
1964 trades · 33% wins
-0.026 R per trade · t = -0.7, within chance
about 17,246 trades to confirm this mean (-0.026 R per trade) at t = -2 · shown: 1964
spread 0.102 R per trade
Out of sample
2025-11-05 to 2026-09-30
-45.3 R
635 trades · 32% wins
-0.071 R per trade · t = -1.1, within chance
about 2,127 trades to confirm this mean (-0.071 R per trade) at t = -2 · shown: 635
spread 0.062 R per trade
Last quarter
last 91 days of the window
-31.8 R
203 trades · 29% wins
-0.157 R per trade · t = -1.4, within chance
about 434 trades to confirm this mean (-0.157 R per trade) at t = -2 · shown: 203
spread 0.083 R per trade
Costs. Spread 0.092 R per trade at 1.25 times the bar’s minimum (more than the trades made before spread); 448 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.1 R (-0.084 R per trade over 635 trades).
Entry: stop order 2 pips past the signal close, cancelled after 4 bars; 2,745 signals placed, 2,599 filled, 146 expired; trigger state, an entry on every bar the conditions hold while flat.
Exit: stop 2.5 ATR (mean 81.0 pips, 2.50 ATR, 16 raised to the 10-pip floor); target 3 R; exits 64% at the stop, 23% at the target, 13% at the day end.
Filters: signals on every weekday; no entries 22:00 to 01:00 broker time (7,795 bars); max spread 30 pips (3 bars over it); M1 confirmation 2 pips (508 signals rejected).
h4_momentum_atr > 1.466 (p75)
Honesty panelNet positive, not distinguishable from chance
Net positive out of sample, not yet distinguishable from chance: +8.7 R over 300 trades is +0.029 R per trade, t = 0.3; about 13,659 trades would be needed to confirm this mean at t = 2, shown: 300; last quarter +1.7 R over 90 trades.
In sample
2023-09-30 to 2025-11-05
+17.4 R
1037 trades · 34% wins
+0.017 R per trade · t = 0.3, within chance
about 41,043 trades to confirm this mean (+0.017 R per trade) at t = 2 · shown: 1037
spread 0.091 R per trade
Out of sample
2025-11-05 to 2026-09-30
+8.7 R
300 trades · 34% wins
+0.029 R per trade · t = 0.3, within chance
about 13,659 trades to confirm this mean (+0.029 R per trade) at t = 2 · shown: 300
spread 0.051 R per trade
Last quarter
last 91 days of the window
+1.7 R
90 trades · 36% wins
+0.019 R per trade · t = 0.1, within chance
about 32,245 trades to confirm this mean (+0.019 R per trade) at t = 2 · shown: 90
spread 0.066 R per trade
Costs. Spread 0.082 R per trade at 1.25 times the bar’s minimum (81% of the gross); 219 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 +5.6 R (+0.019 R per trade over 300 trades).
Entry: stop order 2 pips past the signal close, cancelled after 4 bars; 1,406 signals placed, 1,337 filled, 69 expired; trigger state, an entry on every bar the conditions hold while flat.
Exit: stop 2.5 ATR (mean 83.1 pips, 2.50 ATR, 3 raised to the 10-pip floor); target 3 R; exits 63% at the stop, 23% at the target, 14% at the day end.
Filters: signals on every weekday; no entries 22:00 to 01:00 broker time (11,254 bars); max spread 30 pips (7 bars over it); M1 confirmation 2 pips (221 signals rejected).
h4_momentum_atr > 2.444 (p90)
Honesty panelNet positive, not distinguishable from chance
Net positive out of sample, not yet distinguishable from chance: +36.9 R over 123 trades is +0.300 R per trade, t = 1.8; about 146 trades would be needed to confirm this mean at t = 2, shown: 123; last quarter +8.7 R over 35 trades.
In sample
2023-09-30 to 2025-11-05
-9.6 R
481 trades · 35% wins
-0.020 R per trade · t = -0.3, within chance
about 27,367 trades to confirm this mean (-0.020 R per trade) at t = -2 · shown: 481
spread 0.078 R per trade
Out of sample
2025-11-05 to 2026-09-30
+36.9 R
123 trades · 41% wins
+0.300 R per trade · t = 1.8, within chance
about 146 trades to confirm this mean (+0.300 R per trade) at t = 2 · shown: 123
spread 0.045 R per trade
Last quarter
last 91 days of the window
+8.7 R
35 trades · 40% wins
+0.248 R per trade · t = 0.8, within chance
about 207 trades to confirm this mean (+0.248 R per trade) at t = 2 · shown: 35
spread 0.061 R per trade
Costs. Spread 0.071 R per trade at 1.25 times the bar’s minimum (61% of the gross); 89 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 +35.8 R (+0.291 R per trade over 123 trades).
Entry: stop order 2 pips past the signal close, cancelled after 4 bars; 631 signals placed, 604 filled, 27 expired; trigger state, an entry on every bar the conditions hold while flat.
Exit: stop 2.5 ATR (mean 87.0 pips, 2.50 ATR); target 3 R; exits 62% at the stop, 23% at the target, 15% at the day end.
Filters: signals on every weekday; no entries 22:00 to 01:00 broker time (13,368 bars); max spread 30 pips (7 bars over it); M1 confirmation 2 pips (106 signals rejected).
What h4_momentum_atr measures
Close vs H4 EMA20 (H4 ATR) (atr), on H4 bars. M5 close minus the H4 EMA20, in multiples of the H4 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.