All projects

zerobt

Event-driven backtesting engine in C. Strategies in JS, Lua or C/C++ through one C API.

Type
Open source, written in C, MIT
Built with
C, QuickJS, LuaJIT, Multithreaded, MIT
HTML report of a strategy tested with zerobt

The problem

A backtest that looks profitable is usually overfit. Telling a real edge from luck takes many runs, honest train/test splits and statistics that account for how many variants you tried. That needs an engine fast enough to run all of it.

What I built

An event-driven backtesting engine written in C.

  • Strategies in JS (QuickJS), Lua (LuaJIT) or C/C++, all through the same C API.
  • Parameter sweeps across threads, walk-forward and train/test splits.
  • Probability of backtest overfitting (PBO) and random-replay baselines.
  • Trial ledger that records every attempt, so nothing gets tested quietly.
  • HTML reports for every run.

Tech

  • About 30.9 million bars per second on a single thread.
  • Results match vectorbt to the cent.
  • MIT licensed.

Need the same precision in a client project?

I take on work as a subcontractor, under your name.

Built by
Carl / ctrlcq
Täby
Next stepSend a brief

Keyboard shortcuts

c
Contact
w
Selected work
l
Switch language
?
Show this list
esc
Close dialog