All notable changes to StrataQuant will be documented in this file.
--plot Flag:
- Added
--plotflag to backtest command - Generates equity curve chart (PNG)
- Generates drawdown chart (PNG)
- Charts saved to
results/charts/directory
Usage:
strataquant backtest --strategy sma --fast 20 --slow 50 --plotOutput Files:
results/charts/sma_20_50_equity.png- Blue line showing portfolio value over timeresults/charts/sma_20_50_drawdown.png- Red area showing drawdown percentage
New Files:
src/plotting/mod.rs # Plotting module
Modified Files:
src/lib.rs # Export plotting module
src/main.rs # Add --plot flag
Cargo.toml # Add plotters dependency
Dependencies:
plotters = "0.3"- Rust plotting library
Chart Specifications:
- Resolution: 1200x600 pixels
- Equity chart: Blue line on white background
- Drawdown chart: Red shaded area
- File format: PNG
- Size: 50-100 KB per chart
- Chart generation: ~100ms
- No impact when --plot not used
- Zero clippy warnings
Full CLI integration for all risk management features.
Stop losses, position sizing, risk limits.
Sortino ratio, Calmar ratio, trade tracking.
Strategy trait, optimization, walk-forward validation.
Core backtesting engine with honest metrics.
- v0.5.1: Chart generation with --plot flag
- v0.5.0: CLI integration for risk management
- v0.4.0: Risk management system
- v0.3.0: Advanced metrics and trade analysis
- v0.2.0: Multi-strategy framework
- v0.1.0: Initial release
- Future v0.6.0: Kelly, volatility sizing, multi-timeframe
- Future v0.7.0: Multi-asset (BTC, ETH, LTC, BCH, SOL)