|
WU Trading Library 0.2.0
A backtesting and trading strategy library
|
Go to the source code of this file.
Macros | |
| #define | CALMAR_MIN_OBSERVATIONS 30 |
| The Calmar Ratio measures risk-adjusted return by comparing annualized returns to the maximum drawdown. | |
Functions | |
| static double | wu_calmar_ratio_update (WU_CalmarRatio self, WU_PerformanceUpdate perf) |
| Updates the Calmar Ratio calculation with a new portfolio value. | |
| static void | wu_calmar_ratio_free (WU_CalmarRatio self) |
| Frees resources allocated by the Calmar Ratio object. | |
| WU_CalmarRatio | wu_calmar_ratio_new (double initial_value) |
| #define CALMAR_MIN_OBSERVATIONS 30 |
The Calmar Ratio measures risk-adjusted return by comparing annualized returns to the maximum drawdown.
Unlike Sharpe/Sortino, it uses maximum drawdown as the risk measure instead of volatility.
Formula: Calmar = Annualized_Return / |Maximum_Drawdown| where:
Annualized_Return = (Total_Return)^(1/years) - 1 [compound] or Total_Return * periods_per_year [simple]
This implementation uses simple annualization for consistency with other risk metrics in this library. Minimum observations required before calculating Calmar ratio. This ensures we have enough data for a meaningful drawdown measurement.
|
static |
|
static |