Bitcoin models

How backtests flatter: lots and fills

Model credit: InvestAnswers (IA) (opens in a new tab). He names bar-close fills and FIFO / LIFO exits: bar close at 3:02 (opens in a new tab) and FIFO/LIFO at 5:19 (opens in a new tab) (2026-01-29). Our own worked model on the public conventions.

Free, no sign-up, no catch. No email, no account, no cookies.

Educational model, not investment advice. Public rules from InvestAnswers (IA), applied to public prices. Past patterns don't guarantee future results. Full disclosure below.

Hypothetical model, not advice; not tax advice.

Which lots does a sell close?

Type your buy lots oldest first, then the units you sell and the prices. FIFO sells the oldest lots; LIFO sells the newest; pro-rata sells the same fraction of every lot. Fees are a percent of each trade's notional, with each buy fee carried into that lot's cost.

Lot 1 (oldest)
Lot 2
Lot 3
Lot 4 (optional)
Lot 5 (optional)
Lot 6 (newest, optional)

Lot results by method

Lot results by method
MetricFIFOLIFOPro-rata
Cost of units sold
Proceeds
Realized P&L
Realized ROI
Cost of units left
Open P&L at the mark
Total P&L

Signal-bar fill vs next-bar fill

A signal is only known at the close. A backtest that fills at the signal bar's own open assumes a trade made before the signal existed. The realistic fill is the next open.

Enter the three prices to see the gap.

Look-ahead edge per unit
Realistic fill (next open)
Gap from the close
Edge given up vs the signal-bar open

Our convention

Our live hypothetical record, with its closed trades and open positions, lives on the track record page.

Everything runs in this browser tab. There is no fetch, no cookie and no storage; the address bar keeps your inputs so a reload restores the same numbers.

Educational and informational only, not investment advice. This panel restates public rules and dated calls by InvestAnswers (IA), credited to him, and applies them to public daily price data. Any errors in applying them are ours. Figures use public daily prices and dated inputs, and may be out of date. Past patterns do not guarantee future results. Bravendal Capital is not a registered investment adviser. Nothing here is a recommendation to buy or sell any asset. Do your own research and consult a licensed professional before investing.