Skip to swing research
Swing Trading CoursesThesis / Sessions / Cash

Swing cost accrual and short-borrow boundaries

Name quantity basis, round-trip cost scope and financing sources instead of extending a long-share equation to shorts.

A single cost field has a specific convention

The cash lens uses one declared round-trip cost per original share and subtracts original quantity times that value once. It is not an observed commission schedule, spread model, financing curve or payment timetable. All monetary inputs share one assumed cash unit. If actual fees already enter the supplied price or outcome series, adding them again can double-count scope. A real multi-session account can have separate transaction, holding, conversion and event-related charges. Preserve actual source definitions and quantity basis before combining them. The simple field makes one accounting contract reproducible without claiming a comprehensive tariff for every provider or instrument.

A fictional cost reconciliation

The default 100 original shares with cost 0.2 produce 20 declared round-trip cash. Post-action units 200 do not automatically double that cost because the input is explicitly per original share. An actual provider charging per changed share or per order would need another source and equation. The cost-double-count case has a favourable price change and gross distribution, then subtracts the same 20 once. The result is conditional arithmetic, not an actual profit or a fee guarantee. Retain the chosen basis in JSON and the visible tool. A quietly relabelled field can change meaning while leaving a perfectly correct multiplication behind it.

Short positions require missing contracts

Short availability, borrow, recall, financing and distributions owed are not provided by the cash-funded long-share lens. QuantConnect's official short-availability modelling source identifies a separate mechanism; it does not supply an actual account's borrow contract or current availability. A negative entered quantity is rejected rather than pretending the same long equation certifies a short. Real options, futures, leverage and nonlinear cash also require their actual route and identity guards. A share fixture cannot become a new asset model merely by changing the name. Keep research integration and independent master requirements intact before an actual instrument task or promotion.

An accrued charge and settled cash can differ

A real accounting timeline should distinguish expected accrual, actual booking, settlement and funding availability. The tutorial supplies only a total declared cost and gross cash addition at a chosen valuation. It does not assess taxes, withholding, reinvestment, settlement or an authorised allocation. The original gap tool conservatively reserves its whole round-trip cost under another stated convention; those quantities and cash caps remain separate. A paid subscription also has its own access and renewal subject rather than being automatically assigned as trade friction. No current universal tariff, refund, trial entitlement, measured funding or personal suitability is invented to fill these missing records.

Filled fictional swing case

Under the declared original-share convention,100 times 0.2 equals 20 cost even when the split changes assumed units to 200. A different per-post-share fee would be a different contract, not an arithmetic correction to this one. The completed finding is scope-consistent cost subtraction once. No actual fee schedule, borrow source, tax, settlement, broker account or real profitable trade is represented by the teaching result.

ObjectRecordBounded finding
Original cost basis100×0.2=20Declared round trip
Post shares200Not same fee basis
Short borrowNo contractOutside this tool
Seven invented unit and cash accounting branches
Invented alternative assumptions, not real actions or a return distribution.

Primary references and scope

Expanded source review: 13 October 2026. Documentation supports the stated mechanism, not a tested account, hypothetical fill or provider outcome.

Related swing questions