Repository navigation
Commit 0631e04
INT27 merge: a magnified recalculation's market order after the matcher's fill at an intrabar's second extreme fills there
R5 lane MAG-INTRABAR's base (PAR-MARGIN-2's tip) did not carry INT26's
PAR-ORDERS-2 picks or H-MEASURE's test_magnified_aggregated_tape, so the two
lanes' rules met first on this tree.
- PAR-ORDERS-2 (H-MEASURE Finding 6d): the matcher's fill of a resting
request at its own level AT a bar's second extreme ends the leg there, and
the recalculation's market order fills at that extreme; a fill the adapter
forced there advances. It is written for the chart path
(PineExecutionAdapter::coof_fill_at_second_extreme); on a lower path the
magnified run met it only by accident: the old next_input_waypoint took an
off-grid extreme's booked tick for a fill short of it and returned the
extreme.
- MAG-INTRABAR: a magnified run walks TradingView's 2-minute intrabars, and
after an intrabar's second extreme the next fill point is the next
intrabar's open (mi-coof-refill*, 72 of 72 cascades, every one a market
order's -- forced -- fill), with the same-point rule that no longer
mistakes a booked tick for a fill short of its print.
Together, on hm-mag-diff-v2 and -v3 bar 19 (NYSE:F, 14:15 ET) PX's limit
fills at its own level on the high of the 14:26 intrabar (11.715, booked
11.72), its second extreme, and the ML entry its recalculation places went
to the 14:28 intrabar's open, 11.71; TradingView books 11.72 on both tapes.
PineScheduler::next_input_waypoint now returns the second extreme itself
for the matcher's own (unforced) fill there, so the market order fills at
it, and keeps the next intrabar's open for a forced fill: row 5 of both
magnified replays is TradingView's again, and every cascade, bracket and
margin tape of MAG-INTRABAR still passes (test_adapter_magnifier_intrabar_
tapes, test_adapter_coof_relower, test_native_calc_timing_twin, and the 95
magnifier / intrabar / lower-path / margin / calc_on_order_fills / POOC /
extreme-order rows all pass). No hash witness moves (the eleven witness
rows pass unchanged).
The same test's v3 row 2 (magnified), a recorded divergence (11.58 where
TradingView books 11.54), flipped to TradingView's with MAG-INTRABAR's
kernel commit alone: PX's limit fills on the leg to the high of a sub-bar
that opens at its own low (bar 6, the 11:01 ET minute), and the kernel now
walks such a bar through its four turning points instead of the sampler's
uniform fill, so the entry books that high, 11.54. It stays exact on the
2-minute intrabars. The row is no longer recorded, and the file's header
says why.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>1 parent 5a6c3ba commit 0631e04
2 files changed
Lines changed: 25 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
248 | 258 | | |
249 | 259 | | |
250 | 260 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
50 | 55 | | |
51 | 56 | | |
52 | 57 | | |
53 | 58 | | |
54 | 59 | | |
55 | | - | |
56 | | - | |
57 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
58 | 68 | | |
59 | 69 | | |
60 | 70 | | |
| |||
390 | 400 | | |
391 | 401 | | |
392 | 402 | | |
393 | | - | |
| 403 | + | |
394 | 404 | | |
395 | 405 | | |
396 | 406 | | |
| |||
0 commit comments