Skip to content

Fix whole-lot opening budgets after completed closes - #224

Merged
luisleo526 merged 2 commits into
mainfrom
fix/integer-opening-budget
Sep 9, 2026
Merged

luisleo526 merged 2 commits into
mainfrom
fix/integer-opening-budget

Conversation

@luisleo526

Copy link
Copy Markdown
Collaborator

Whole-lot percent-of-equity orders can be sized from rounded equity even when their exact notional cost exceeds the frozen budget. After a separate close, the general one-lot allowance could admit that unaffordable opening. Apply the existing exact-budget check to both directions and recognize completed internal closes while preserving the closing fill and existing competing-order exclusions.

The fix has no strategy, symbol, or date lookup. The affected Ford 15-minute probe moves from strong to excellent with 100% canonical match and zero P90 entry, exit, PnL, and quantity discrepancy. README records the measured scoreboard and the remaining physical margin-fragment distinction.

Validation: 250 native tests pass; 16 TradingView controls and an unchanged-output Cloud diagnostic establish the budget boundary. The full 4,190-probe comparison yields 4,181 excellent / 9 strong / 0 moderate, with all 704 hard probes unchanged and 4,189 trade CSVs identical. Grading, profiles, input files, feeds, references, and population are unchanged. Independent exact-head review is GREEN.

The README-inclusive Cloud sweep reproduces all 4,190 earlier results. PR gate pineforge-pr-gate-svv5q is PASS: target score +1, zero hard regressions, no tolerated exceptions, complete coverage. Recorded candidate snapshot: 0258370541cfd00acd419f75ef3dc731c531632ed369487167ab92d23eb0f099 (788,828 bytes), bound to engine 5c2be9d9f2c936b4903fd76c324bd8bdf74876ae and codegen c8ffe587c8fb82435fec34121a93fab2b7018924.

@luisleo526
luisleo526 merged commit 5c2be9d into main Sep 9, 2026
8 checks passed
@luisleo526
luisleo526 deleted the fix/integer-opening-budget branch October 5, 2026 02:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant