← All projects

Finance & Research2026

BacktestLab

Compares lump-sum, monthly DCA, and monthly-plus-dip-buying on equal starting capital—every purchase is auditable, uninvested cash counts toward returns, and price vs. adjusted close is flagged clearly.

Open Source

Why

Why I built it

Lump-sum vs. DCA comparisons often slip extra capital into one strategy or ignore idle cash. I wanted the accounting completely transparent.

What I built

What I built

  • All three strategies share identical starting capital, displaying every trade, drawdown at entry, invested amount, and cash balance.
  • Fetches and caches historical prices with Close / Adjusted Close toggling and explicit fee, tax, and odd-lot assumptions in the UI.

Role & AI

How I split the work with AI

I designed the comparison accounting, built the engine and UI with coding agents, and audited the numbers trade by trade.

Outcome

Outcome

An open-source, zero-dependency local Node.js backtester where every figure traces back to individual trades and cash balances.

Node.jsJavaScriptnode:test