Open-position swing journal
Reconcile original quantity, partial exits, remaining marks and entered costs at one UTC cutoff.
Quantity conservation and chronology
Each original has one entry lot and an explicit linear multiplier. The tool sums reductions and rejects any total above the original quantity. It rejects an entry after cutoff, an exit before entry, out-of-order exits and an exit after cutoff. It accepts equal event timestamps without inventing an order within that instant. Additions require separate original lots; the tool does not invent a blended entry.
Open marks and cost treatment
Remaining quantity needs a cutoff mark. Fully closed rows may omit it. Entry, reduction and carrying fees are entered non-negative cash debits. Realised and unrealised gross amounts are separate; total costs are subtracted once from their sum. No realised-net cost allocation is invented. The initial R denominator uses the original adverse stop distance, quantity and multiplier, not a promised stop fill. R output is rounded to six decimal places.
Supported scope and privacy
Use one to one hundred unique USD position IDs and at most one thousand exit events. Prices and quantities are non-negative decimal strings up to one trillion, with at most six fractional digits; entry, quantity and multiplier must be positive. UTC labels cover 2000-2099 with seconds and Z. This browser calculation has no account connection, currency conversion, data refresh or draft uploader. Reload restores the teaching inputs. Downloads preserve supplied inputs and calculated results.
- Complete fictional packet (JSON)
- Four original position rows (CSV)
- Five reduction rows (CSV)
- Four simultaneous scenario rows (CSV)