← kalmanGrid

kalmanGrid — Performance

ENGINEERING COMPLETEAudited 2026-09-12· hand-written (no shared engine) engine· quantroduction· spot

Window 2.0 years (2024-09-11 → 2026-09-12, 210,400 bars of 5m) · Markets ADA, BTC, DOGE, ETH, LINK, SOL, XRP Costs 0.10% taker fee + 2 bps slippage on every fill Timeframe declares 5m — tested at its own timeframe Capital 526 quote — probe at 1,000 peaked at 50.0% deployed (500 quote at risk) Sizing fixed quote per order (TRADING_LIMIT = 100)


How this was measured

Every decision is taken on a bar that has closed, and the resulting market order fills at the next bar's open plus slippage. Resting stop and target orders fill intrabar, and when one bar's range covers both the stop and the target the stop is taken first — the pessimistic reading wherever candle data cannot resolve the order of events inside a bar.

The engine is validated separately by 53 known-answer tests covering accounting, fee arithmetic, determinism and the no-look-ahead boundary. Nothing below means anything unless those pass, so the pipeline aborts if they do not.

Result by market

Market Orders Round trips Return Buy & hold Edge Max DD Sharpe Win rate Profit factor Time in market
ADA 92 39 -2.7% -41.5% 38.8% 2.7% -3.22 8% 0.05 0.0%
BTC 42 17 -0.6% 22.9% -23.5% 0.9% -0.72 12% 0.05 0.1%
DOGE 31 15 -0.3% -19.8% 19.5% 0.4% -1.32 33% 0.26 0.0%
ETH 50 19 -0.7% -0.8% 0.1% 1.0% -1.01 11% 0.20 0.0%
LINK 147 69 -3.0% -0.2% -2.8% 3.0% -4.02 22% 0.07 0.0%
SOL 84 36 -1.7% -31.4% 29.6% 2.1% -1.99 19% 0.15 0.0%
XRP 83 41 -1.4% 134.1% -135.5% 1.4% -2.02 20% 0.13 0.0%

Median across markets: -1.4% return, 1.4% max drawdown, Sharpe -1.99.

The median is the honest number, not the best market. Ranking a strategy on its best pair measures which pair was picked, not what the strategy does.

Reading these numbers

Variant B — no stop loss, never sells below the position average

The same strategy on the same data, with one rule added: no exit may be priced below the position's average cost. That also removes every stop-loss, since a stop sits below the entry by definition. It is the "never realise a loss" version.

A — as shipped B — no-loss exits
Median return -1.4% -0.0%
Median max drawdown 1.4% 1.9%
Profitable markets 0 / 7 3 / 7
Ends still holding — 0 / 7
Exits refused by the rule 0 2,385
Market A return B return A max DD B max DD B ends holding
ADA -2.7% -0.2% 2.7% 3.1% no
BTC -0.6% -0.5% 0.9% 2.6% no
DOGE -0.3% 0.1% 0.4% 0.4% no
ETH -0.7% -0.0% 1.0% 1.1% no
LINK -3.0% 0.3% 3.0% 1.9% no
SOL -1.7% -0.4% 2.1% 4.9% no
XRP -1.4% 0.2% 1.4% 1.3% no

How to read this. Variant B reports the higher return — -0.0% against -1.4% — and that is mostly not an improvement. A loss that is never closed does not disappear, it sits in inventory. That is why max drawdown rises from 1.4% to 1.9%, and why the strategy ends still holding on 0 of 7 markets: B's reported return leaves out the positions it never resolved. The rule refused 2,385 exits over the window.

Read the two together rather than picking one. A is what the strategy does; B is what it looks like with its losses deferred instead of taken, and the gap between them measures how much of A's result comes from cutting.

Cost sensitivity

The strategy places the same number of orders at 0% fees as at 0.10%. That is a correctness property rather than a performance one: it proves no balance gate becomes unsatisfiable once costs leave the wallet. A strategy that fails this check stops trading silently the moment it meets a real fee schedule.

Market Orders at 0.10% fee Orders at 0% fee Ratio
ADA 53 44 1.20
BTC 25 17 1.47
DOGE 16 16 1.00
ETH 31 2 15.50
LINK 78 74 1.05
SOL 48 48 1.00
XRP 42 42 1.00

Correctness invariants

Invariant Result
runs clean on every market PASS
no phantom chart marks PASS
no negative balances PASS
cost independent (fees change P&L, not the ability to act) PASS
places orders somewhere PASS

Outstanding notes

What this window cannot tell you

A single year is a small sample, and this one was a broad downtrend.

The engine models spot, long-only, one price per bar. It carries no order book, so it cannot see spread, queue position or depth, and a strategy whose edge is the spread cannot be measured here at all.


Every number on this page is read from the run record that produced it — the audit pipeline writes the page and the record together, so the two cannot drift apart.