smaug/backtest
Dominik Roth 1467033aa2 feat(backtest): portfolio simulator with configurable strategy and transaction costs
Event-driven simulation: 1-day buy delay, N-day hold, position-size % of cash.
Models entry cost (spread + slippage + commission) and exit cost (spread + commission)
so round-trip is fully parameterised from the CLI.

Reports: annualized return, SPY benchmark, excess return, max drawdown, Sharpe,
per-trade win rate and avg net return.

CLI: python main.py simulate [--holding-days 7] [--spread 0.003] [--slippage 0.002] ...
Also runnable directly: python backtest/simulate.py --help

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-26 17:49:14 +02:00
..
__init__.py feat: add PLAN.md and insider copytrade POC implementation 2026-05-04 16:15:22 +00:00
backtest.py fix(backtest): squeeze yfinance Close series to avoid DataFrame iteration error 2026-05-26 17:49:05 +02:00
simulate.py feat(backtest): portfolio simulator with configurable strategy and transaction costs 2026-05-26 17:49:14 +02:00