Reamer Research is a deterministic backtesting and live trading engine for Python and C++, with a visual trade diagnostics tool; its relay sends live orders to your broker. You install it with pip or include one C++ header, and it runs on your own machine. Underneath is a stable C ABI, so any other language that can call C, such as Rust, Go, Julia or C#, can wrap it with backtesting and live trading included. Every order fills tick by tick on a seeded tick path the engine generates inside each bar, from bar data alone, so stops, limits and targets are decided by where price went within the bar. The same data, settings and seed give byte-identical results every run, including the randomised slippage and spread.
Your strategy receives a window of bars and returns an order. Write it as a plain function, or as a class or object with an on_bar method when it keeps settings and state across bars. rr.backtest(on_bar, "AAPL.csv", open_viewer=True) runs it, prints the summary, writes the JSON report and opens the visual trade diagnostics tool on the run. In a published benchmark of release 4.6.0 on 500,000 bars it took 3.38 s from Python and 0.36 s from C++, against 13.61 to 76.85 s for NautilusTrader and 15.04 s for Backtrader; see performance.
The loop it covers
- Test. Run a strategy against years of time, tick, volume, dollar or custom bars, intraday to multi-day, with spread, slippage, commission and overnight swap set for each instrument, and a leverage limit on the account. Bars come from memory or from memory-mapped
.binfiles, so a dataset larger than RAM runs. On every bar the strategy sees its full position state and every resting order, and can re-price an order, move a position's stop and target, close everything or cancel everything. - Diagnose. The visual trade diagnostics tool shows each closed trade on its own bars, with entry, exit, stop, target and resting orders marked, every indicator or signal your strategy printed drawn as a series beside it, and the console lines for those bars linked to the chart. It also shows the equity curve and a Monte Carlo simulation of the run, and it is one HTML file with no install and no network. Every order, fill, modification and closed trade also comes back in the result.
- Sweep. Run the same strategy across many parameter sets to see whether a result holds or survived on one lucky setting. Each backtest is single-threaded, and separate backtests can run at once from your own threads. A progress callback reports each run and can stop it early.
reamer_run_monte_carlo()resamples a run's trades to show how much of a drawdown was trade-order luck. - Report. 31 summary metrics, the realised equity curve, and the full trade and order logs, written as a schema-versioned JSON file.
- Connect.
reamer_relay_*sends the orders your strategy returns to your broker through the open-source receiver over the published protocol, and reads the fills back as position state. The order is the same structure as in a backtest. See How do I take a strategy from backtest to live trading without a rewrite?
How fills are decided, including stops and targets inside one bar, is set out in an execution specification that ships with the kit.
Scope
- Mid-frequency strategies on bars of any type: time, tick, volume, dollar, imbalance or your own custom rule.
- Batch runs over historical bars. The relay sends orders live over the published strategy socket protocol, to your broker through the open-source receiver, so live trading works at any broker with an API.
- Data from any source, or from your Alpaca or Databento account through the bundled fetchers, with equities already adjusted for splits and dividends.
- Linux x86-64, macOS on Apple Silicon, and Windows through WSL2.
How it compares
- Backtrader, a free, open-source Python framework.
- vectorbt PRO, a paid vectorised research library for Python.
- DolphinDB, a time-series database with a backtest plugin.
- QuantConnect, a hosted platform with data, backtesting and live trading.
- NautilusTrader, an open-source platform for backtest and live, down to order books.
- EPAM Deltix QuantOffice, an enterprise platform from research to execution.
Price
$20 per seat per month, billed monthly, cancel any time. A $20 month includes the full kit. See the product page and pricing.