|
WU Trading Library 0.2.0
A backtesting and trading strategy library
|
Sharpe ratio is the relation between the risk-free rate discounted retuns and the volatility of an investment. More...
#include <stats.h>
Data Fields | |
| double(* | update )(struct WU_SharpeRatio_ *self, WU_PerformanceUpdate perf) |
| void(* | delete )(struct WU_SharpeRatio_ *self) |
| double | value |
| WU_Mean | mean |
| WU_StDev | stdev |
| double | risk_free_rate |
| double | initial_value |
| double | prev_value |
| int64_t | count |
| int64_t | start_time |
| int64_t | end_time |
| WU_TimeUnit | time_unit |
Sharpe ratio is the relation between the risk-free rate discounted retuns and the volatility of an investment.
It is an annualizated average.
| void(* WU_SharpeRatio::delete) (struct WU_SharpeRatio_ *self) |
| WU_TimeUnit WU_SharpeRatio::time_unit |
| double(* WU_SharpeRatio::update) (struct WU_SharpeRatio_ *self, WU_PerformanceUpdate perf) |