Lean  $LEAN_TAG$
QuantConnect.Report.Rolling Class Reference

Rolling window functions More...

Static Public Member Functions

static Series< DateTime, double > Beta (SortedList< DateTime, double > performancePoints, SortedList< DateTime, double > benchmarkPoints, int windowSize=132)
 Calculate the rolling beta with the given window size (in days) More...
 
static Series< DateTime, double > Sharpe (Series< DateTime, double > equityCurve, int months, int tradingDayPerYear)
 Get the rolling sharpe of the given series with a lookback of months . The risk free rate is adjustable More...
 

Detailed Description

Rolling window functions

Definition at line 29 of file Rolling.cs.

Member Function Documentation

◆ Beta()

static Series<DateTime, double> QuantConnect.Report.Rolling.Beta ( SortedList< DateTime, double >  performancePoints,
SortedList< DateTime, double >  benchmarkPoints,
int  windowSize = 132 
)
static

Calculate the rolling beta with the given window size (in days)

Parameters
performancePointsThe performance points you want to measure beta for
benchmarkPointsThe benchmark/points you want to calculate beta with
windowSizeDays/window to lookback
Returns
Rolling beta

Definition at line 40 of file Rolling.cs.

Here is the call graph for this function:

◆ Sharpe()

static Series<DateTime, double> QuantConnect.Report.Rolling.Sharpe ( Series< DateTime, double >  equityCurve,
int  months,
int  tradingDayPerYear 
)
static

Get the rolling sharpe of the given series with a lookback of months . The risk free rate is adjustable

Parameters
equityCurveEquity curve to calculate rolling sharpe for
monthsNumber of months to calculate the rolling period for
tradingDayPerYearThe number of trading days per year to increase result of Annual statistics
Returns
Rolling sharpe ratio

Definition at line 81 of file Rolling.cs.

Here is the call graph for this function:

The documentation for this class was generated from the following file: