summaryrefslogtreecommitdiff
path: root/cli/src/trading_cli/commands/service.py
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2026-04-01 16:22:07 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2026-04-01 16:22:07 +0900
commitc89701668527ab94a124ac5ceb7a8e1045da1d72 (patch)
treee0ef1d021668eac9dc5f274f89d2bd7c7295cb8e /cli/src/trading_cli/commands/service.py
parente0320a4d4b7d22d7d663ef474c7d5e081f4e83a1 (diff)
feat(backtester): add detailed metrics (Sharpe, Sortino, drawdown)
Add metrics.py with TradeRecord/DetailedMetrics dataclasses and compute_detailed_metrics() that pairs BUY/SELL trades FIFO, computes win/loss stats, profit factor, equity curve, max drawdown, Sharpe, Sortino, Calmar ratios, and monthly returns.
Diffstat (limited to 'cli/src/trading_cli/commands/service.py')
0 files changed, 0 insertions, 0 deletions