Bull and bear flag breakout on NQ, 5-minute bars (spec flag_spec.md, sha256 a0fce69344235c45...). Run 2026-11-14T08:13:18.866Z; 500 control runs per variant; $15.76 a round trip, $20 a point data: 2373779 minutes 2020-01-01 18:01 .. 2026-09-25 17:00; regular sessions 1689 (the first warms up the ATR); 5-minute bars 131301; by period DEV 1004, VAL 312, HOLDOUT 372 funnel: pole tops with a valid flag at some bar: bull 854, bear 632; ended by a close beyond the opposite line 360; breakouts outside 10:10-15:30 29; bull and bear on one bar 0; signals 455 (bull 277, bear 178); the rest expired (past 20 bars, a new pole top, or the session's end) signals: median pole 112.50 pts = 4.03 ATR over 9 bars; flag 6 bars; pullback 41.95% of the pole; slope -0.588 pts a bar; channel width 33.82 pts; per session 0.27 === FLAG-1R (target 1R) === signals 455; skipped with a position open 6; untradable 0; trades 449 on 417 sessions (1.08 a trading session) DEV n= 271 net $-12005.96 avg $-44.30 PF 0.87 t -0.99 VAL n= 75 net $5898.00 avg $78.64 PF 1.19 t 0.66 HOLDOUT n= 103 net $-4408.28 avg $-42.80 PF 0.92 t -0.34 ALL n=449 net $-10516.24 avg $-23.42 (gross $-7.66); PF 0.94 t -0.53; ended by {"target":223,"stop":206,"close":20} median R 35.25 pts; per trade gross 0.035 R, net 0.008 R, cost 0.027 R; avg net at 1.5x cost $-31.30, at 2.5x $-47.06 win rate 229/449 = 51.0% (95% Wilson 46.4-55.6%); the 10 best trades $20812.40; net without them $-31328.64; drawdown on closed trades $-24954.76 measured move (entry + pole): reached before the flag stop 12.5% (Wilson 9.7-15.9%), by the close 15.8% (12.7-19.5%); flag-height target: before the stop 52.1%, by the close 65.7%; median best move 0.99 R, worst -0.85 R longs n=274 net $-1493.24 gross $2825.00 | shorts n=175 net $-9023.00 gross $-6265.00 by year: 2020 55 $278 | 2021 75 $-3532 | 2022 69 $-8737 | 2023 72 $-15 | 2024 61 $69 | 2025 62 $4408 | 2026 55 $-2987 by entry hour: 10h 41 $1674 | 11h 111 $-9539 | 12h 96 $5747 | 13h 82 $-3432 | 14h 83 $-5228 | 15h 36 $263 thirds (descriptive): pole in ATR 149 $12.53 / 150 $-62.96 / 150 $-19.59 (cuts 3.56, 4.69); flag bars 0 $-- / 282 $-9.25 / 167 $-47.35 (cuts 5, 7); pullback 149 $-53.11 / 150 $39.87 / 150 $-57.23 (cuts 0.372, 0.450) control (the same trades moved to other sessions at the same time, 500 runs): mean trades 447.78, median avg $-16.91, 5-95% $-76.25 .. $52.57; real avg $-23.42 at percentile 40.00 [FAIL] 1 PF >= 1.2 in validation: VAL PF 1.19 [PASS] 2 >= 50 trades in each period: 271 / 75 / 103 [FAIL] 3 t >= 2.5 on development: DEV t -0.99 [FAIL] 4 above 95th pct of the control: percentile 40.00 [FAIL] 5 positive without top-10 trades: $-31328.64 [FAIL] 6 holdout net positive (already used): HOLDOUT net $-4408.28 PF 0.92 VERDICT Buried (1/6 gates) rule 3: 6 trades flagged; without them avg $-19.70, gates 1/6 -> Buried === FLAG-2R (target 2R) === signals 455; skipped with a position open 12; untradable 0; trades 443 on 417 sessions (1.06 a trading session) DEV n= 267 net $-10802.92 avg $-40.46 PF 0.90 t -0.70 VAL n= 75 net $7828.00 avg $104.37 PF 1.22 t 0.66 HOLDOUT n= 101 net $-7106.76 avg $-70.36 PF 0.89 t -0.48 ALL n=443 net $-10081.68 avg $-22.76 (gross $-7.00); PF 0.95 t -0.41; ended by {"close":82,"stop":246,"target":115} median R 35.25 pts; per trade gross 0.043 R, net 0.016 R, cost 0.027 R; avg net at 1.5x cost $-30.64, at 2.5x $-46.40 win rate 171/443 = 38.6% (95% Wilson 34.2-43.2%); the 10 best trades $33087.40; net without them $-43169.08; drawdown on closed trades $-23944.00 measured move (entry + pole): reached before the flag stop 12.6% (Wilson 9.9-16.1%), by the close 15.8% (12.7-19.5%); flag-height target: before the stop 52.6%, by the close 65.9%; median best move 1.00 R, worst -1.01 R longs n=269 net $-7419.44 gross $-3180.00 | shorts n=174 net $-2662.24 gross $80.00 by year: 2020 55 $-2287 | 2021 74 $-4931 | 2022 68 $-1702 | 2023 70 $-1883 | 2024 61 $4409 | 2025 62 $-2567 | 2026 53 $-1120 by entry hour: 10h 41 $10729 | 11h 110 $-22934 | 12h 95 $1933 | 13h 80 $3634 | 14h 82 $-4692 | 15h 35 $1248 thirds (descriptive): pole in ATR 147 $-27.46 / 148 $-46.81 / 148 $5.96 (cuts 3.57, 4.74); flag bars 0 $-- / 276 $7.99 / 167 $-73.57 (cuts 5, 7); pullback 147 $-25.11 / 148 $-69.88 / 148 $26.71 (cuts 0.371, 0.450) control (the same trades moved to other sessions at the same time, 500 runs): mean trades 441.80, median avg $-10.74, 5-95% $-86.04 .. $69.50; real avg $-22.76 at percentile 40.60 [PASS] 1 PF >= 1.2 in validation: VAL PF 1.22 [PASS] 2 >= 50 trades in each period: 267 / 75 / 101 [FAIL] 3 t >= 2.5 on development: DEV t -0.70 [FAIL] 4 above 95th pct of the control: percentile 40.60 [FAIL] 5 positive without top-10 trades: $-43169.08 [FAIL] 6 holdout net positive (already used): HOLDOUT net $-7106.76 PF 0.89 VERDICT Buried (2/6 gates) rule 3: 6 trades flagged; without them avg $-12.29, gates 2/6 -> Buried === FLAG-TR (trailing stop 2 ATR) === signals 455; skipped with a position open 14; untradable 0; trades 441 on 417 sessions (1.06 a trading session) DEV n= 266 net $2632.84 avg $9.90 PF 1.03 t 0.18 VAL n= 75 net $-12417.00 avg $-165.56 PF 0.63 t -1.43 HOLDOUT n= 100 net $-14116.00 avg $-141.16 PF 0.74 t -1.09 ALL n=441 net $-23900.16 avg $-54.20 (gross $-38.44); PF 0.86 t -1.11; ended by {"close":43,"stop":113,"trail":285} median R 35.50 pts; per trade gross 0.014 R, net -0.012 R, cost 0.027 R; avg net at 1.5x cost $-62.08, at 2.5x $-77.84 win rate 149/441 = 33.8% (95% Wilson 29.5-38.3%); the 10 best trades $36192.40; net without them $-60092.56; drawdown on closed trades $-33331.08 measured move (entry + pole): reached before the flag stop 12.7% (Wilson 9.9-16.1%), by the close 15.9% (12.8-19.6%); flag-height target: before the stop 52.2%, by the close 65.5%; median best move 0.85 R, worst -0.69 R longs n=267 net $-21192.92 gross $-16985.00 | shorts n=174 net $-2707.24 gross $35.00 by year: 2020 55 $1363 | 2021 74 $-5271 | 2022 68 $-1142 | 2023 69 $7683 | 2024 62 $-7272 | 2025 60 $-11551 | 2026 53 $-7710 by entry hour: 10h 41 $-2946 | 11h 110 $-17784 | 12h 95 $3898 | 13h 80 $-6681 | 14h 80 $-1386 | 15h 35 $998 thirds (descriptive): pole in ATR 147 $-90.66 / 147 $-74.06 / 147 $2.13 (cuts 3.57, 4.74); flag bars 0 $-- / 275 $-12.76 / 166 $-122.84 (cuts 5, 7); pullback 147 $-108.86 / 147 $-45.79 / 147 $-7.94 (cuts 0.372, 0.450) control (the same trades moved to other sessions at the same time, 500 runs): mean trades 439.80, median avg $-13.93, 5-95% $-92.13 .. $68.31; real avg $-54.20 at percentile 17.60 [FAIL] 1 PF >= 1.2 in validation: VAL PF 0.63 [PASS] 2 >= 50 trades in each period: 266 / 75 / 100 [FAIL] 3 t >= 2.5 on development: DEV t 0.18 [FAIL] 4 above 95th pct of the control: percentile 17.60 [FAIL] 5 positive without top-10 trades: $-60092.56 [FAIL] 6 holdout net positive (already used): HOLDOUT net $-14116.00 PF 0.74 VERDICT Buried (1/6 gates) rule 3: 6 trades flagged; without them avg $-51.61, gates 1/6 -> Buried === FLAG-MM (target = the pole height (measured move)) === signals 455; skipped with a position open 15; untradable 0; trades 440 on 417 sessions (1.06 a trading session) DEV n= 266 net $-5592.16 avg $-21.02 PF 0.95 t -0.32 VAL n= 74 net $6138.76 avg $82.96 PF 1.16 t 0.48 HOLDOUT n= 100 net $-23491.00 avg $-234.91 PF 0.66 t -1.61 ALL n=440 net $-22944.40 avg $-52.15 (gross $-36.39); PF 0.90 t -0.87; ended by {"close":121,"stop":263,"target":56} median R 35.25 pts; per trade gross 0.008 R, net -0.018 R, cost 0.027 R; avg net at 1.5x cost $-60.03, at 2.5x $-75.79 win rate 145/440 = 33.0% (95% Wilson 28.7-37.5%); the 10 best trades $39202.40; net without them $-62146.80; drawdown on closed trades $-26596.80 measured move (entry + pole): reached before the flag stop 12.7% (Wilson 9.9-16.2%), by the close 15.9% (12.8-19.6%); flag-height target: before the stop 52.5%, by the close 65.9%; median best move 1.00 R, worst -1.02 R longs n=268 net $-14413.68 gross $-10190.00 | shorts n=172 net $-8530.72 gross $-5820.00 by year: 2020 55 $-1357 | 2021 74 $-9036 | 2022 68 $1863 | 2023 69 $2938 | 2024 61 $1474 | 2025 60 $-3776 | 2026 53 $-15050 by entry hour: 10h 41 $3394 | 11h 110 $-30999 | 12h 94 $4299 | 13h 80 $-1166 | 14h 81 $-1687 | 15h 34 $3214 thirds (descriptive): pole in ATR 146 $-21.79 / 147 $-28.75 / 147 $-105.69 (cuts 3.57, 4.73); flag bars 0 $-- / 275 $-38.80 / 165 $-74.40 (cuts 5, 7); pullback 146 $-86.31 / 147 $-106.68 / 147 $36.31 (cuts 0.371, 0.450) control (the same trades moved to other sessions at the same time, 500 runs): mean trades 438.81, median avg $-7.22, 5-95% $-100.67 .. $90.43; real avg $-52.15 at percentile 21.60 [FAIL] 1 PF >= 1.2 in validation: VAL PF 1.16 [PASS] 2 >= 50 trades in each period: 266 / 74 / 100 [FAIL] 3 t >= 2.5 on development: DEV t -0.32 [FAIL] 4 above 95th pct of the control: percentile 21.60 [FAIL] 5 positive without top-10 trades: $-62146.80 [FAIL] 6 holdout net positive (already used): HOLDOUT net $-23491.00 PF 0.66 VERDICT Buried (1/6 gates) rule 3: 6 trades flagged; without them avg $-43.57, gates 1/6 -> Buried (4 s)