feat: add payoff_ratio and recovery_factor metrics, bump to 0.3.2
Add two new risk/reward metrics to BacktestMetrics: - payoff_ratio: avg winning return / avg losing return (absolute) - recovery_factor: net profit / max drawdown in absolute terms Computed in both StreamingMetrics::finalize() and PortfolioEngine. Exposed via PyO3 with #[pyo3(get)] on PyBacktestMetrics. Updated README with API reference and changelog.
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@ build-backend = "maturin"
|
||||
|
||||
[project]
|
||||
name = "raptorbt"
|
||||
version = "0.3.1"
|
||||
version = "0.3.2"
|
||||
description = "High-performance Rust backtesting engine with Python bindings. Drop-in VectorBT replacement with up insanely faster performance at fractional memory footprint."
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.10"
|
||||
|
||||
Reference in New Issue
Block a user