hedqe
a finance lab · by virtueneuro

The lab shows its work.

Bonds, the time value of money, discounted cash flow, portfolios, options, risk, leverage and backtests — computed, then explained. Every screen prints the formula it evaluated and draws the exhibit that argues it, so you can check the answer instead of trusting it.

Launch hedqe Free. No account. Works offline.
Price 2× / yr
1,015.74 Clean price per unit of face

Trading at a premium

P(y) = d(y)ᵀc      d_k = (1 + y/m)^(−k)
Exhibit 1 Price against yield
Price falls as yield rises along a curve; the dashed straight line is what duration alone predicts, and it drifts away from the exact reprice on both sides.
1.8%7.8%
Modified duration 7.8203yrs
Convexity 73.997

Eight labs, all open

the numbers below are the app's own
Price 10 yr
1,015.74

Bond Lab

Price and yield to maturity, then duration and convexity — and the exhibit that shows exactly where duration alone stops telling the truth.

price · ytm · macaulay · modified · convexity · dv01

Monthly payment 360 mo
1,266.71

Time Value of Money

Annuities, the level payment and the full amortization schedule, with NPV and IRR — including the month the loan turns the corner, which on a 30-year mortgage is month 176 of 360.

pv · annuities · amortization · npv · irr · payback

Enterprise value 5 yr + tv
1,405

DCF Engine

Free cash flow to the firm, WACC, terminal value and the equity bridge — with a sensitivity grid that shows how fragile a single valuation really is.

fcff · wacc · gordon tv · equity bridge · sensitivity

Maximum Sharpe 4 assets
0.571

Portfolio Lab

The efficient frontier solved exactly, drawn over four thousand random portfolios that never cross it — plus the tangency portfolio, shrinkage and CAPM beta.

frontier · gmv · tangency · shrinkage · capm β

Call price 0.5 yr
2.5090

Options Lab

Black–Scholes and a binomial lattice priced side by side. The lattice does not converge from one side — it oscillates, and watching it settle is the lesson.

bsm · greeks · crr lattice · implied vol · payoffs

Expected shortfall 97.5%
4.36%

Risk Lab

VaR and expected shortfall computed historically and parametrically on one histogram, so you can see two estimates of the same tail disagree — then GARCH, which rescales the tail to today's volatility.

var · es · historical · parametric · garch · fhs · drawdown

Return on margin 0.2% at 20×
+4.00%

Leverage Lab

What a small move does to your margin, what the spread and overnight financing cost before you earn anything, and why leverage cannot create an edge — only multiply the one you have, and the bill with it.

margin · carry · break-even · sharpe · kelly

Deflated Sharpe best of 70
43.5%

Backtest Lab

Try enough strategies and the best one looks good by luck alone. The probabilistic and deflated Sharpe ratios say how much of your backtest is skill — and how many tries it takes for chance to match it.

psr · deflated sharpe · min track record · trials

Before you trade on margin, run the numbers

At 20× leverage a 0.2% move is a 4% return on your margin. That is the arithmetic that makes margin trading look easy, and it runs the other way just as fast: a 5% move against you takes the whole deposit.

Costs are charged on the exposure, not on your margin. A one-basis-point spread and five nights of financing at 8.1% mean the price has to move 12 basis points before you earn anything, and leverage does not lower that bar. It only multiplies what clearing it, or failing to, does to your account.

A backtest with a Sharpe ratio of 1.0 over five years looks like proof. If it was the best of 70 variants, it is more likely luck than skill: chance alone reaches that number after about 45 tries. The Leverage and Backtest labs put these numbers in front of you before a trade does.

0.2% move at 20×
+4.00%
Move that takes the margin
5.00%
Break-even, 5 nights
12.1 bp
Sharpe 1.0, taken at face value
98.6%
Best of 70 tries, deflated
43.5%
Tries for luck to match it
45

Built to be checked, not believed

Most calculators hand you a number and stop. hedqe prints the formula it evaluated and draws an exhibit with a caption explaining what the curve actually means — why convexity matters at 200 basis points but not at 25, why a DCF near its terminal-growth asymptote should never be quoted as one number.

Where two methods should agree, both are shown. The binomial lattice is drawn converging on the closed form; the random portfolios are drawn never crossing the frontier. Two engines meeting is a stronger claim than either number alone.

The mathematics is bundled with the app rather than fetched, so every lab works with the network off — on the bus, in an exam room, anywhere. Nothing you type is sent anywhere, because there is nowhere for it to go. It is free, and it stays free: no account, no trial, no upgrade screen.

Labs live
8
Works offline
every lab
Languages
EN · ES
Account
not required
Price
0.00

Get the app

The same six labs on iPhone, iPad and Android. Free, no account, works offline.

QR code for hedqe on the App Store
Download on the App Store

Scan with your iPhone camera.

QR code for hedqe on Google Play
Get it on Google Play

Scan with your Android camera.