Skip to content

Add compounded flag to qs.stats.calmar() for intraday / non-compounded return streams #507

@sohum-25

Description

@sohum-25

Problem

qs.stats.calmar() currently computes Calmar as:

calmar = CAGR(compounded=True) / max_drawdown

This assumes the input series represents daily compounded returns.
However, many users — especially intraday traders and systematic/prop-style workflows — use quantstats on:

intraday return series

per-trade PnL streams

arithmetic (non-compounded) returns

capital-constrained strategies

In these cases, geometric CAGR is not the correct numerator, and the resulting Calmar can become misleadingly high.

For non-compounded strategies, a more appropriate definition is:

qs.stats.cagr(series, compounded=False) / qs.stats.max_drawdown(series)

Without an option to switch the compounded behavior inside qs.stats.calmar(), users working with intraday or non-compounded return streams must manually compute this value, and may otherwise misinterpret performance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions