round numbers EUR/USD self-test, run 2026-11-24T17:56:40.804Z 1. hand-worked cases [ok] engine, case A: fade from above; a touch 0.1 pip short, an exact touch, then 1 pip through; target; arming exactly at L + 25 pips [RN-FADE-00] [ok] re-implementation, case A: [RN-FADE-00] [ok] engine, case A: fade from above; a touch 0.1 pip short, an exact touch, then 1 pip through; target; arming exactly at L + 25 pips [RN-FADE-00 {"d":0}] [ok] re-implementation, case A: [RN-FADE-00] [ok] engine, case A: fade from above; a touch 0.1 pip short, an exact touch, then 1 pip through; target; arming exactly at L + 25 pips [RN-FADE-50] [ok] re-implementation, case A: [RN-FADE-50] [ok] engine, case A: fade from above; a touch 0.1 pip short, an exact touch, then 1 pip through; target; arming exactly at L + 25 pips [RN-BREAK-00] [ok] re-implementation, case A: [RN-BREAK-00] [ok] engine, case A: fade from above; a touch 0.1 pip short, an exact touch, then 1 pip through; target; arming exactly at L + 25 pips [RN-BREAK-50] [ok] re-implementation, case A: [RN-BREAK-50] [ok] engine, case B: fade from below with a gap open beyond L (fill at the open); break from below filled at its order level, stopped [RN-FADE-00] [ok] re-implementation, case B: [RN-FADE-00] [ok] engine, case B: fade from below with a gap open beyond L (fill at the open); break from below filled at its order level, stopped [RN-FADE-50] [ok] re-implementation, case B: [RN-FADE-50] [ok] engine, case B: fade from below with a gap open beyond L (fill at the open); break from below filled at its order level, stopped [RN-BREAK-00] [ok] re-implementation, case B: [RN-BREAK-00] [ok] engine, case B: fade from below with a gap open beyond L (fill at the open); break from below filled at its order level, stopped [RN-BREAK-50] [ok] re-implementation, case B: [RN-BREAK-50] [ok] engine, case C: stop in the entry minute (fade); a break trade closed at the last minute of the day in the data [RN-FADE-00] [ok] re-implementation, case C: [RN-FADE-00] [ok] engine, case C: stop in the entry minute (fade); a break trade closed at the last minute of the day in the data [RN-BREAK-00] [ok] re-implementation, case C: [RN-BREAK-00] [ok] engine, case D: stop and target in the same later minute: the stop [RN-FADE-00] [ok] re-implementation, case D: [RN-FADE-00] [ok] engine, case E: a later minute opens beyond the stop: exit at the open [RN-FADE-00] [ok] re-implementation, case E: [RN-FADE-00] [ok] engine, case F: an event stamped 15:00 is traded; exit at the close of the minute stamped 16:59 [RN-FADE-00] [ok] re-implementation, case F: [RN-FADE-00] [ok] engine, case G: an event stamped 03:00 is not traded and uses the level; traded after re-arming at L + 25 pips [RN-FADE-00] [ok] re-implementation, case G: [RN-FADE-00] [ok] engine, case H: an event in the minute a trade exits is not traded (50 grid) [RN-FADE-50] [ok] re-implementation, case H: [RN-FADE-50] [ok] engine, case H: an event in the minute a trade exits is not traded (50 grid) [RN-FADE-00] [ok] re-implementation, case H: [RN-FADE-00] [ok] engine, case H2: an event while a trade is open uses its level (50 grid, target moved to 80 pips for the test); re-armed and traded later [RN-FADE-50 {"tgt":800}] [ok] re-implementation, case H2 [RN-FADE-50] [ok] engine, case I: two events in one minute: the order level nearest the open is traded, both levels are used [RN-FADE-50] [ok] re-implementation, case I: [RN-FADE-50] [ok] engine, case I: two events in one minute: the order level nearest the open is traded, both levels are used [RN-FADE-00] [ok] re-implementation, case I: [RN-FADE-00] [ok] engine, case J: a minute that arms a level cannot trigger it; the next minute triggers through the previous close and fills at its open [RN-FADE-00] [ok] re-implementation, case J: [RN-FADE-00] [ok] engine, case K: break from below, the minute opens beyond the buy stop (fill at the open), 2R target; the fade sells the same minute and is stopped [RN-BREAK-00] [ok] re-implementation, case K: [RN-BREAK-00] [ok] engine, case K: break from below, the minute opens beyond the buy stop (fill at the open), 2R target; the fade sells the same minute and is stopped [RN-FADE-00] [ok] re-implementation, case K: [RN-FADE-00] [ok] engine, case L: break from above; the target reached in the entry minute does not count [RN-BREAK-00] [ok] re-implementation, case L: [RN-BREAK-00] [ok] engine, case L2: a later minute opens beyond the target: exit at the open [RN-BREAK-00] [ok] re-implementation, case L2 [RN-BREAK-00] [ok] engine, case N: a minute reaching both L + 25 and L - 25 arms the level on the side of its close [RN-FADE-00] [ok] re-implementation, case N: [RN-FADE-00] [ok] engine, case P: a level used in a large minute ends 45 pips away; armed again from below in the next minute, then sold at a gapped open [RN-FADE-00] [ok] re-implementation, case P: [RN-FADE-00] [ok] engine, case O: the price comes no further than 24.9 pips from L: never armed, no trade [RN-FADE-00] [ok] re-implementation, case O: [RN-FADE-00] 2. mutations of the engine (each must make at least one hand case fail) [ok] mutation "fill on a touch (d = 0) instead of 1 pip through" caught by 4 hand case(s) [ok] mutation "arming at 26 pips" caught by 3 hand case(s) [ok] mutation "arming at 24 pips" caught by 1 hand case(s) [ok] mutation "window opens at the 03:00 stamp" caught by 1 hand case(s) [ok] mutation "window closes at the 14:59 stamp" caught by 1 hand case(s) [ok] mutation "events in the exit minute traded" caught by 1 hand case(s) [ok] mutation "target before the stop" caught by 1 hand case(s) [ok] mutation "target tested in the entry minute" caught by 5 hand case(s) [ok] mutation "a gapped fill at the order level instead of the open" caught by 6 hand case(s) [ok] mutation "the farthest event traded" caught by 1 hand case(s) [ok] mutation "a level stays armed after its event" caught by 6 hand case(s) [ok] mutation "arming only within 30 pips of the path (the bug found on the real data on 2026-11-24)" caught by 1 hand case(s) 3. forex-day helpers [ok] Friday 16:59 and 17:00 kept, Friday 17:01 and 17:30 (a Saturday forex day) dropped, Sunday 17:01 (Monday) kept [ok] the cut: 2026-09-28 16:00 kept, 17:01 (forex day 29 Sep) dropped [ok] the exit minute of a forex day is the last one stamped at or before 16:59 [ok] control offsets: 802 allowed for the 00 grid (5.0-45.0 and 55.0-95.0 pips), 401 for the 50 grid (5.0-45.0), draws reproducible and allowed 4. real data [ok] both readers give the same 8320933 minutes (block fix applied: 328854 minutes moved +60) [ok] RN-FADE-00: engine 7957 trades = re-implementation 7957, trade by trade; events 10733 = 10733 [ok] RN-BREAK-00: engine 6089 trades = re-implementation 6089, trade by trade; events 9509 = 9509 [ok] RN-FADE-50: engine 15681 trades = re-implementation 15681, trade by trade; events 21305 = 21305 [ok] RN-BREAK-50: engine 11799 trades = re-implementation 11799, trade by trade; events 18726 = 18726 [ok] RN-FADE-00 {"d":0}: engine 8264 trades = re-implementation 8264, trade by trade; events 11142 = 11142 [ok] RN-FADE-50 {"d":0}: engine 16240 trades = re-implementation 16240, trade by trade; events 22108 = 22108 [ok] RN-FADE-00 {"u":237}: engine 7746 trades = re-implementation 7746, trade by trade; events 10554 = 10554 [ok] RN-BREAK-50 {"u":413}: engine 11864 trades = re-implementation 11864, trade by trade; events 18723 = 18723 (real-data part 34 s) 81 checks, 0 failed (0 in parts 1-3) PASSED