P&L across SPX moves
Each name moves by its beta × the SPX move. IV unchanged.
Every number below is computed from the one ledger on the Positions tab. Hedges you book land in the same ledger, so their effect shows up everywhere at once.
Each name moves by its beta × the SPX move. IV unchanged.
Instant shock at today's date.
Delta in share-equivalents (an option contract is 100, an ES future 50 × SPX, MES 5 × SPX).
Edit a quote and the whole book reprices. Quantities are signed: negative means short.
How much cash the book needs in a cash account (no margin loan). Leave a field blank if you don't want to use it.
Short legs in the money or within 7 days of expiry, and what assignment would need.
Copy the whole book as JSON (positions, roll history, quotes and cash settings) to keep a backup or move it to another browser. Paste it back into the box to import it; importing replaces what is here.
SPX is an index: hold it through options or ES/MES futures.
Enter a leg exactly as your broker filled it. Leave Entry blank to use the model price. Add the second leg of a spread to the first one's combo, so the cash account sees one spread.
Illustrative quotes. Beta is versus SPX; IV in vol points.
Used by the Monte Carlo and the optimizer: −1 means every option's IV rises 1 point for each 1% the market falls. 0 keeps IV fixed. This is your assumption, not a fitted skew. Entry prices don't include it, so treat the risk numbers as a stress view while it is set.
Templates become individual legs priced with Black–Scholes. Each leg keeps its own expiry and IV. Edit any strike in the preview to match your fill, and enter your fill price for the whole combo to spread it across the legs.
Each hedge is proposed first with its before and after numbers. Booking it adds a real position to the ledger, which you can remove later. CVaR here measures the tail under the same risk-neutral paths as the Risk view. It shows how much a hedge cuts the worst outcomes, not whether the hedge leg itself will make money.
Shares to a delta target, or a % of the holding. SPX uses MES futures.
ATM options to a gamma target, or as many as a premium budget buys.
Offset beta dollars with futures or SPY.
Monte Carlo over the whole book. One market factor drives every name through its beta, plus each name's own noise, so the names move together the way their betas say.
The whole book is repriced at every cell. Columns are SPX moves; rows are IV shifts or days forward.
Cells show the signed value. Loss is rust and gain is green, and both carry a sign so the colour is never the only cue.
Searches whole-contract quantities of an index future and an ATM option together. It minimises a weighted sum of beta dollars, gamma, vega, CVaR and trading cost, each measured against the unhedged book.
Set the weights and press “Find hedge”. The search runs in your browser on 2,000 simulated paths.
European Black–Scholes with a flat risk-free rate and no dividends. Each leg keeps its own days to expiry and IV, and a strategy is stored as its individual legs. A fill price entered for a whole combo is spread across its legs in proportion to their model prices, so the legs add up to your fill. A roll (changing a leg's strike or days) closes the old leg at its model mark, which realizes its P&L on the combo's subtotal and in the roll history, and opens the new leg at its model mark. Model marks stand in for fills; edit Entry to your real one. "Roll combo" on a subtotal row rolls every leg of that combo the same way (strikes shifted onto the strike grid, and/or a new expiry), one history record per leg. Removing a leg deletes it without realizing anything. Delta and gamma are in share-equivalents, vega is dollars per vol point and theta is dollars per calendar day.
The textbook example from Hull's Options, Futures, and Other Derivatives: S = 42, K = 40, r = 10%, σ = 20%, T = 0.5 years. The engine's own numbers, which a test checks against this page:
d1 = (ln(S/K) + (r + σ²/2)·T) / (σ·√T) = 0.7693, and d2 = d1 − σ·√T = 0.6278N(d1) = 0.7791, N(d2) = 0.7349S·N(d1) − K·e−rT·N(d2) = 4.76; put K·e−rT·N(−d2) − S·N(−d1) = 0.81 (Hull: 4.76 and 0.81)Independent checks: a test compares price, delta, gamma, vega and theta with QuantLib on 288 calls and puts (agreement to about 1e-7 of the stock price, the accuracy of the normal CDF approximation used here).
Every option is priced as European: exercised only at expiry, with no dividends. That is exact for SPX options, which are European and cash-settled. Options on SPY, QQQ and single stocks are American, and their underlyings pay dividends. We keep the European model on purpose: one closed-form formula gives exact Greeks; it is fast enough to reprice the whole book on every Monte Carlo path and every optimizer candidate in your browser; it is checked against QuantLib above; and an American model would need dividend dates, which illustrative quotes don't have.
What it costs, measured with QuantLib (S = 100, r = 4%, σ = 20%, a 2,000-step binomial tree for the American price): an American put is worth more than the European price shown here, about 1% more at the money with 30 days left, 2% more 10% in the money, and about 8% more 20% in the money with six months left. Without dividends an American call is worth the same as a European one; with dividends, exercising a call just before an ex-dividend date can pay. Leaving out a 1.5% dividend yield shifts a 30-day at-the-money price by about 3% (calls lower, puts higher). So expect short puts deep in the money, and short calls just before a dividend, to be assigned early more often than the Assignment exposure list suggests.
Beta dollars are Σ Δ·S·β. "Gamma, 1% SPX move" is the quadratic term Σ ½·Γ·(S·β·1%)², an approximation that drifts from full repricing for short-dated or large books. ES (50 × SPX) and MES (5 × SPX) are booked as futures at the SPX level, with no basis, roll, margin or cash flows modelled. A one-point SPX rise pays 50 per ES contract.
The delta and gamma hedges can be sized without a Greek target. "% of the holding" hedges that share of the underlying's current delta: 50% of a 1,000-share holding sells 500 shares (SPX in MES futures). "Premium budget" buys as many whole ATM option contracts as the budget pays for at the model price, so the premium shown never exceeds it; a budget below one contract proposes nothing. Either one, when filled in, replaces the target.
A one-factor model: the market factor has SPX's IV, and each name's log return is β·market + own noise, with the noise sized so total volatility matches the name's IV. If β × SPX IV is above a name's own IV, its market loading is capped at IV ÷ SPX IV so it keeps its IV. Paths are risk-neutral: every price drifts at the risk-free rate, the same assumption the option prices use, so with IV held fixed a fairly priced option has zero expected P&L. Mean P&L and POP therefore carry no equity risk premium. Options are repriced with the time left at the horizon, and the horizon is capped at the nearest option expiry. IV stays fixed unless you set "IV change per 1% SPX move" in the Market card. That setting shifts every option's IV with each path's market move (−1 means IV rises 1 point per 1% drop). It is a single assumption, not a fitted volatility surface. Entry prices don't include it, so once it is set, mean P&L, POP and CVaR lean toward long-vega books (a long ATM straddle shows about +$170 mean P&L over 5 days at −5). Read them as a stress view, not a fair-value expectation. POP is the share of paths with a gain, CVaR 95 is the average loss over the worst 5% of paths, and Sortino is mean P&L over downside deviation at the horizon (target 0, not annualised).
Coordinate search on whole contracts, starting from no hedge and halving the step size. Weights below zero count as zero. Every candidate is scored on the same simulated paths, so differences between candidates are not sampling noise. The objective terms are relative to the unhedged book, where 1.0 means "unchanged".
The Cash account card answers "how much cash does this book need?" for a cash account: no margin loan, no short selling. Each position's cash needed is what was paid, minus premium received, plus collateral held. Buying power left is the account cash you enter minus the total.
Educational tool. Not investment advice.