Class QuickStats
Calculates a few simple portfolio metrics on a return stream with as low an overhead as possible.
[ProtoContract(SkipConstructor = true)]
public class QuickStats
- Inheritance
-
QuickStats
- Inherited Members
- Extension Methods
Constructors
QuickStats(IEnumerable<double>, double, int)
Initializes a new QuickStats object using the specified parameters.
public QuickStats(IEnumerable<double> returns, double riskFreeRate = 0, int periodsPerYear = 252)
Parameters
returns
IEnumerable<double>riskFreeRate
doubleperiodsPerYear
int
Properties
ArithmeticSharpeRatio
Gets the arithmetic Sharpe Ratio (mean return * periods period year - risk free rate) / volatility.
public double ArithmeticSharpeRatio { get; }
Property Value
CAGR
Gets the compound annual growth rate.
public double CAGR { get; }
Property Value
MARRatio
Gets the MAR Ratio.
public double MARRatio { get; }
Property Value
MaxDrawdown
Gets the maximum drawdown.
public double MaxDrawdown { get; }
Property Value
MaxDrawdownPeriod
Gets the length of the max drawdown until recovery.
public int MaxDrawdownPeriod { get; }
Property Value
PeriodsPerYear
Gets the number of periods per year.
public int PeriodsPerYear { get; }
Property Value
RiskFreeRate
Gets the risk free rate.
public double RiskFreeRate { get; }
Property Value
SharpeRatio
Gets the Sharpe Ratio.
public double SharpeRatio { get; }
Property Value
StandardDeviation
Gets the standard deviation.
public double StandardDeviation { get; }
Property Value
UlcerIndex
Gets the Ulcer Index.
public double UlcerIndex { get; }
Property Value
UlcerPerformanceIndex
Gets the Ulcer Performance Index.
public double UlcerPerformanceIndex { get; }
Property Value
Volatility
Gets the annualized volatility.
public double Volatility { get; }
Property Value
Methods
ToString()
Returns some key summary statistics.
public override string ToString()