Repository navigation
Commit f5deaf8
source: erase_retired_rows keeps a dormant askable-origin exit leg pinned for its cycle, as v1.6.3's K1 pinned it (R6a-F1)
The retirement sweep released a dormant askable-origin exit leg A when a later same-family, same-source, same-from_entry exit with different stop bits existed (release_superseded), dropped it from the K2/K3 candidates, and let K3 keep it anyway as the first witness of a live exit Y. A's own supersessor B (released by a later C, nobody's witness, no projection_predecessor link) was then erased. revive_brackets_after_margin decides "superseded" only over retained rows, so with B gone and C's stop bits equal to A's, a margin call restored A as a marketable flatten at the margin price under A's exit id: an extra trade that v1.6.3 never books (v1.6.3 pinned every unwithdrawn lifecycle row for the cycle).
held_by_cycle and the matching collection of held legs in the unpinned pre-pass now require the leg's origin NOT to be askable, dormant or not: a dormant askable-origin leg is pinned by pinned_by_itself exactly as in v1.6.3 and is never released. Withdrawn legs, non-askable origins and everything else are unchanged. The cost: a script that keeps re-issuing strategy.exit(qty=) over a dormant askable leg without cancelling retains its rows while the origin stays open, as v1.6.3 did.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>1 parent cad8b4b commit f5deaf8
1 file changed
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3914 | 3914 | | |
3915 | 3915 | | |
3916 | 3916 | | |
3917 | | - | |
3918 | | - | |
| 3917 | + | |
| 3918 | + | |
| 3919 | + | |
| 3920 | + | |
3919 | 3921 | | |
3920 | 3922 | | |
3921 | 3923 | | |
3922 | 3924 | | |
3923 | | - | |
3924 | | - | |
| 3925 | + | |
3925 | 3926 | | |
3926 | 3927 | | |
3927 | 3928 | | |
| |||
4150 | 4151 | | |
4151 | 4152 | | |
4152 | 4153 | | |
4153 | | - | |
4154 | | - | |
| 4154 | + | |
4155 | 4155 | | |
4156 | 4156 | | |
4157 | 4157 | | |
| |||
0 commit comments