Pin bar on XAUUSD 1-hour bars (spec pb_spec.md, sha256 5f1a75253f9f827f...). Run 2026-11-24T12:53:11.417Z; 500 control runs per variant. Results in R = entry to stop (one tick beyond the nose); target 2R; $0.30 an ounce a round trip. data: 7067434 one-minute bars, 2004-06-11 01:19 .. 2026-10-07 16:57 New York (minute close stamps, the clock of our clock audit) 1-hour bars: 129857; pin bars looked for from bar 500 (2004-07-15 00:00) bars examined 129357: shape (tail >= 2/3 of the range) 8039 bullish + 7301 bearish (11.9% of bars); of those, range >= ATR(14) 2244 + 1778; of those, nose beyond the last 10 bars 1136 + 872 = 2008 pin bars (1.6% of bars) pin bars by year (bullish/bearish): 2004 25/25 | 2005 53/40 | 2006 46/37 | 2007 52/41 | 2008 49/36 | 2009 42/44 | 2010 41/39 | 2011 58/24 | 2012 60/45 | 2013 58/40 | 2014 59/51 | 2015 49/50 | 2016 44/41 | 2017 54/38 | 2018 47/36 | 2019 31/50 | 2020 72/45 | 2021 62/29 | 2022 46/39 | 2023 46/36 | 2024 51/38 | 2025 46/30 | 2026 45/18 median range $4.82 an ounce, 1.42 x the ATR(14) of the bar before; also an engulfing bar of the engulfing test in the same direction: 38 (1.9%); in either direction: 107 === PB-BRK: bullish and bearish pin bars, stop order one tick beyond the bar, next bar only; target 2R === orders placed 1843: filled 1252 (67.9%; 105 at a gapped open), cancelled unfilled 591, refused beyond the stop 0; pin bars not acted on: 165 while a trade was open or an order working, 0 on the last bar DEV n= 460 net -17.27 R avg -0.038 R PF 0.95 t -0.54 VAL n= 404 net -57.96 R avg -0.143 R PF 0.81 t -2.02 HOLDOUT n= 388 net -4.19 R avg -0.011 R PF 0.98 t -0.15 ALL n=1252 net -79.42 R avg -0.063 R (gross 0.011 R, cost 0.074 R a trade); $ per ounce -179.83; PF 0.91 t -1.54 win rate 426/1252 = 34.0% (95% Wilson 31.5-36.7%); ended by target 426 (34.0%), stop 826 (66.0%; 1 in the fill minute), end of data 0 R median $4.78 an ounce; hours held median 5.98 max 567.93; the 10 best trades 28.08 R; without them -107.50 R; worst open loss -5.40 R longs n=727 net -49.49 R gross 1.19 R | shorts n=525 net -29.93 R gross 12.41 R by R size (descriptive, this variant's terciles $3.60 / $6.33): small n=417 avg -0.148 R (gross -0.019) | medium n=417 avg -0.039 R (gross 0.025) | large n=418 avg -0.003 R (gross 0.027) drawdown on closed trades -97.15 R; including open losses -97.21 R; financing: scenario A (3% a year) net -97.53 R, scenario B (today's swap) net -108.52 R by year (n, net R): 2004 26 10.83 | 2005 51 -21.82 | 2006 51 1.87 | 2007 55 -11.24 | 2008 56 17.57 | 2009 52 -7.60 | 2010 53 -9.26 | 2011 55 5.09 | 2012 61 -2.69 | 2013 60 -23.52 | 2014 67 17.30 | 2015 58 -20.76 | 2016 54 -11.32 | 2017 54 -0.19 | 2018 58 -10.00 | 2019 53 -9.48 | 2020 71 7.18 | 2021 53 -16.89 | 2022 52 11.31 | 2023 56 0.92 | 2024 60 6.47 | 2025 56 -9.33 | 2026 40 -3.85 control (fills moved to other days, same time of day, stop and target scaled by ATR(14), 500 runs): mean trades 965.65, median avg -0.064 R, 5-95% -0.141 .. 0.021 R; real avg -0.063 R at percentile 51.00 [FAIL] 1 PF >= 1.2 in validation: VAL PF 0.81 [PASS] 2 >= 50 trades in each period: 460 / 404 / 388 [FAIL] 3 t >= 2.5 on development: DEV t -0.54 [FAIL] 4 above 95th pct of the control: percentile 51.00 [FAIL] 5 positive without top-10 trades: -107.50 R [FAIL] 6 holdout net positive (flagged used): HOLDOUT net -4.19 R PF 0.98 VERDICT Buried (1/6 gates) rule 3: 172 trades are open across a suspect or unclear gap; without them avg -0.100 R, gates passed 1/6 -> Buried (verdict unchanged) cost sensitivity (not gated): $0.30: avg -0.063 R, net -79.42 R, PF 0.91, VAL PF 0.81, DEV t -0.54, holdout -4.19 R | $0.45: avg -0.101 R, net -125.92 R, PF 0.87, VAL PF 0.76, DEV t -1.22, holdout -12.18 R | $0.75: avg -0.175 R, net -218.93 R, PF 0.78, VAL PF 0.68, DEV t -2.57, holdout -28.18 R === PB-TREND: bullish and bearish pin bars, stop order one tick beyond the bar, next bar only, only in the direction of the EMA(200); target 2R === orders placed 772: filled 526 (68.1%; 40 at a gapped open), cancelled unfilled 246, refused beyond the stop 0; pin bars not acted on: 24 while a trade was open or an order working, 0 on the last bar DEV n= 203 net 11.68 R avg 0.058 R PF 1.08 t 0.54 VAL n= 149 net -17.72 R avg -0.119 R PF 0.84 t -1.00 HOLDOUT n= 174 net 4.65 R avg 0.027 R PF 1.04 t 0.24 ALL n=526 net -1.39 R avg -0.003 R (gross 0.069 R, cost 0.072 R a trade); $ per ounce 216.63; PF 1.00 t -0.04 win rate 188/526 = 35.7% (95% Wilson 31.8-39.9%); ended by target 188 (35.7%), stop 338 (64.3%; 0 in the fill minute), end of data 0 R median $4.98 an ounce; hours held median 6.42 max 567.93; the 10 best trades 24.39 R; without them -25.78 R; worst open loss -2.65 R longs n=337 net -5.66 R gross 18.13 R | shorts n=189 net 4.26 R gross 18.18 R by R size (descriptive, this variant's terciles $3.85 / $6.52): small n=175 avg -0.062 R (gross 0.062) | medium n=174 avg 0.106 R (gross 0.168) | large n=177 avg -0.051 R (gross -0.021) drawdown on closed trades -53.60 R; including open losses -54.06 R; financing: scenario A (3% a year) net -9.10 R, scenario B (today's swap) net -19.62 R by year (n, net R): 2004 10 3.22 | 2005 17 0.07 | 2006 23 2.99 | 2007 27 -12.51 | 2008 26 4.73 | 2009 20 11.53 | 2010 30 3.64 | 2011 27 1.43 | 2012 23 -3.42 | 2013 25 4.03 | 2014 25 17.82 | 2015 23 -15.78 | 2016 23 -13.89 | 2017 18 7.19 | 2018 17 -12.69 | 2019 18 -4.39 | 2020 35 -0.48 | 2021 21 -13.18 | 2022 24 4.67 | 2023 23 -3.26 | 2024 33 16.58 | 2025 22 1.47 | 2026 16 -1.16 control (fills moved to other days, same time of day, stop and target scaled by ATR(14), 500 runs): mean trades 421.40, median avg -0.056 R, 5-95% -0.174 .. 0.062 R; real avg -0.003 R at percentile 77.80 [FAIL] 1 PF >= 1.2 in validation: VAL PF 0.84 [PASS] 2 >= 50 trades in each period: 203 / 149 / 174 [FAIL] 3 t >= 2.5 on development: DEV t 0.54 [FAIL] 4 above 95th pct of the control: percentile 77.80 [FAIL] 5 positive without top-10 trades: -25.78 R [PASS] 6 holdout net positive (flagged used): HOLDOUT net 4.65 R PF 1.04 VERDICT Buried (2/6 gates) rule 3: 82 trades are open across a suspect or unclear gap; without them avg -0.039 R, gates passed 1/6 -> Buried (verdict unchanged) cost sensitivity (not gated): $0.30: avg -0.003 R, net -1.39 R, PF 1.00, VAL PF 0.84, DEV t 0.54, holdout 4.65 R | $0.45: avg -0.038 R, net -20.24 R, PF 0.95, VAL PF 0.80, DEV t 0.11, holdout 0.97 R | $0.75: avg -0.110 R, net -57.95 R, PF 0.86, VAL PF 0.71, DEV t -0.74, holdout -6.39 R === PB-HALF: bullish and bearish pin bars, limit order at the middle of the bar, next three bars; target 2R === orders placed 1965: filled 1415 (72.0%; 96 at a gapped open), cancelled unfilled 547, refused beyond the stop 3; pin bars not acted on: 43 while a trade was open or an order working, 0 on the last bar DEV n= 550 net -29.27 R avg -0.053 R PF 0.93 t -0.80 VAL n= 446 net -26.85 R avg -0.060 R PF 0.92 t -0.86 HOLDOUT n= 419 net -58.85 R avg -0.140 R PF 0.82 t -1.92 ALL n=1415 net -114.97 R avg -0.081 R (gross 0.084 R, cost 0.165 R a trade); $ per ounce -636.47; PF 0.89 t -2.01 win rate 518/1415 = 36.6% (95% Wilson 34.1-39.2%); ended by target 518 (36.6%), stop 897 (63.4%; 17 in the fill minute), end of data 0 R median $2.33 an ounce; hours held median 1.20 max 104.57; the 10 best trades 26.89 R; without them -141.86 R; worst open loss -9.80 R longs n=800 net -35.12 R gross 91.67 R | shorts n=615 net -79.85 R gross 27.00 R by R size (descriptive, this variant's terciles $1.75 / $3.06): small n=470 avg -0.136 R (gross 0.166) | medium n=472 avg -0.025 R (gross 0.107) | large n=473 avg -0.083 R (gross -0.021) drawdown on closed trades -122.66 R; including open losses -123.09 R; financing: scenario A (3% a year) net -127.04 R, scenario B (today's swap) net -131.04 R by year (n, net R): 2004 33 -0.87 | 2005 74 -19.21 | 2006 58 -12.48 | 2007 63 1.75 | 2008 60 8.15 | 2009 61 -4.53 | 2010 58 -21.75 | 2011 60 12.21 | 2012 83 7.44 | 2013 77 -7.96 | 2014 65 5.58 | 2015 72 -1.01 | 2016 57 -5.51 | 2017 67 -3.00 | 2018 55 -18.38 | 2019 53 3.43 | 2020 83 0.17 | 2021 73 -5.46 | 2022 57 0.48 | 2023 61 -13.62 | 2024 57 -4.72 | 2025 45 -11.11 | 2026 43 -24.60 control (fills moved to other days, same time of day, stop and target scaled by ATR(14), 500 runs): mean trades 1126.71, median avg -0.147 R, 5-95% -0.221 .. -0.082 R; real avg -0.081 R at percentile 95.00 [FAIL] 1 PF >= 1.2 in validation: VAL PF 0.92 [PASS] 2 >= 50 trades in each period: 550 / 446 / 419 [FAIL] 3 t >= 2.5 on development: DEV t -0.80 [PASS] 4 above 95th pct of the control: percentile 95.00 [FAIL] 5 positive without top-10 trades: -141.86 R [FAIL] 6 holdout net positive (flagged used): HOLDOUT net -58.85 R PF 0.82 VERDICT Buried (2/6 gates) rule 3: 85 trades are open across a suspect or unclear gap; without them avg -0.111 R, gates passed 1/6 -> Buried (verdict unchanged) cost sensitivity (not gated): $0.30: avg -0.081 R, net -114.97 R, PF 0.89, VAL PF 0.92, DEV t -0.80, holdout -58.85 R | $0.45: avg -0.164 R, net -231.79 R, PF 0.80, VAL PF 0.82, DEV t -2.49, holdout -76.21 R | $0.75: avg -0.329 R, net -465.43 R, PF 0.64, VAL PF 0.66, DEV t -5.70, holdout -110.93 R === PB-BRK-L: bullish only pin bars, stop order one tick beyond the bar, next bar only; target 2R === orders placed 1104: filled 754 (68.3%; 60 at a gapped open), cancelled unfilled 350, refused beyond the stop 0; pin bars not acted on: 32 while a trade was open or an order working, 0 on the last bar DEV n= 277 net -0.02 R avg -0.000 R PF 1.00 t -0.00 VAL n= 230 net -43.90 R avg -0.191 R PF 0.75 t -2.07 HOLDOUT n= 247 net -1.76 R avg -0.007 R PF 0.99 t -0.08 ALL n=754 net -45.67 R avg -0.061 R (gross 0.010 R, cost 0.070 R a trade); $ per ounce -138.43; PF 0.92 t -1.15 win rate 254/754 = 33.7% (95% Wilson 30.4-37.1%); ended by target 254 (33.7%), stop 500 (66.3%; 1 in the fill minute), end of data 0 R median $5.16 an ounce; hours held median 6.42 max 567.93; the 10 best trades 25.07 R; without them -70.75 R; worst open loss -3.42 R longs n=754 net -45.67 R gross 7.19 R | shorts n=0 net 0.00 R gross 0.00 R by R size (descriptive, this variant's terciles $3.87 / $6.74): small n=250 avg -0.183 R (gross -0.059) | medium n=252 avg 0.030 R (gross 0.089) | large n=252 avg -0.029 R (gross -0.002) drawdown on closed trades -82.78 R; including open losses -82.96 R; financing: scenario A (3% a year) net -56.51 R, scenario B (today's swap) net -112.21 R by year (n, net R): 2004 11 5.04 | 2005 31 -14.03 | 2006 31 2.18 | 2007 32 -6.34 | 2008 34 14.30 | 2009 29 -1.00 | 2010 30 0.92 | 2011 39 10.05 | 2012 40 -11.14 | 2013 40 -26.57 | 2014 37 -7.11 | 2015 29 -7.33 | 2016 33 3.81 | 2017 31 1.60 | 2018 35 -8.61 | 2019 25 0.32 | 2020 47 1.97 | 2021 32 -15.78 | 2022 29 -3.44 | 2023 34 6.26 | 2024 37 18.42 | 2025 40 -1.91 | 2026 28 -7.27 control (fills moved to other days, same time of day, stop and target scaled by ATR(14), 500 runs): mean trades 589.36, median avg -0.048 R, 5-95% -0.152 .. 0.055 R; real avg -0.061 R at percentile 42.40 [FAIL] 1 PF >= 1.2 in validation: VAL PF 0.75 [PASS] 2 >= 50 trades in each period: 277 / 230 / 247 [FAIL] 3 t >= 2.5 on development: DEV t -0.00 [FAIL] 4 above 95th pct of the control: percentile 42.40 [FAIL] 5 positive without top-10 trades: -70.75 R [FAIL] 6 holdout net positive (flagged used): HOLDOUT net -1.76 R PF 0.99 VERDICT Buried (1/6 gates) rule 3: 96 trades are open across a suspect or unclear gap; without them avg -0.104 R, gates passed 1/6 -> Buried (verdict unchanged) cost sensitivity (not gated): $0.30: avg -0.061 R, net -45.67 R, PF 0.92, VAL PF 0.75, DEV t -0.00, holdout -1.76 R | $0.45: avg -0.096 R, net -72.11 R, PF 0.87, VAL PF 0.71, DEV t -0.50, holdout -6.63 R | $0.75: avg -0.166 R, net -124.97 R, PF 0.79, VAL PF 0.63, DEV t -1.48, holdout -16.39 R buy and hold over the same data, for reference: 384 -> 4109.91