FREE FINANCIAL EDUCATION
Financing, cash interest and short-borrow ledgers
Accrue financing charges on explicit balances and day-count conventions.
What you will learn
Prerequisites: Calculate simple annual interest and distinguish cash borrowing from borrowing securities.
- Accrue financing charges on explicit balances and day-count conventions.
- Separate short-sale price profit, stock-borrow expense and eligible cash interest.
- Reconcile net simulated profit without treating short proceeds as new equity.
Mechanism and decision rules
A backtest’s price P&L is only one part of its account ledger. Cash debits can incur financing interest, eligible cash balances can earn interest, and borrowed securities can incur a separate stock-loan fee. These flows have different bases and rates. Record each accrual using the balance actually subject to the contract, the number of accrual days and the relevant day-count rule. Do not apply an interest credit to restricted proceeds unless the assumed account terms make them eligible.
The examples use simple interest, a fixed annual rate and actual days divided by 365. This is a teaching convention, not a statement of any broker’s current tariff. In a daily engine, changing balances and rates require separate accrual periods. A short sale raises cash while creating a matching security liability; its proceeds are not profit. Price P&L, borrow fees, interest credits and explicit execution costs should reconcile separately to changes in net equity.
Worked example · synthetic data
A hypothetical cash loan of 5,000 at 8% annual interest for 30 days costs 5,000×0.08×30/365≈32.88. Separately, short 200 units at 50 and cover at 48, generating gross price profit 400. Assume the borrow-fee base remains 10,000 for 30 days at 6%, and all 10,000 proceeds are eligible for 1% interest under the toy contract. Borrow expense is about 49.32 and interest credit about 8.22. Net short-position profit is 400−49.3151+8.2192≈358.90 before other charges. The separate cash-loan example is not deducted again from this short-position result.
Failure modes and limits
Borrow rates can change, availability can disappear, and rebates can depend on account size or collateral terms. A halted security can remain costly to borrow. Valuation and settlement dates may differ, making a single endpoint balance an inadequate accrual base. If the needed historical financing terms are unavailable, disclose the modeled schedule and stress it; do not label an invented fee series as actual historical borrowing costs.
Practice case
In another toy short sale, sell 100 units at 80 and cover at 79 after 20 days. Use a constant 8,000 fee and credit base, 5% annual borrow expense, 0.5% eligible proceeds interest and actual/365 simple accrual. Calculate each financing component and net profit, excluding all other charges.
Reveal the worked answer
Gross price profit is 100. Borrow expense is 8,000×0.05×20/365≈21.9178; interest credit is 8,000×0.005×20/365≈2.1918. Net profit is approximately 80.2740. The difference from the price-only result is a net financing cost of 19.7260. None of these assumed rates establishes a real broker quote or confirms borrow availability.
Check your understanding
Sources and next steps
The lesson, calculations and synthetic cases are original educational material. References explain underlying contract or chart conventions; none validates the profitability of a trading rule. Actual contract specifications, settlement obligations and charges must be checked before trading.
Explore OHLCV data in the chart lab · Explore volume-at-price and TPO data · Practice library
