|
Lean
$LEAN_TAG$
|
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... | |
Rolling window functions
Definition at line 29 of file Rolling.cs.
|
static |
Calculate the rolling beta with the given window size (in days)
| performancePoints | The performance points you want to measure beta for |
| benchmarkPoints | The benchmark/points you want to calculate beta with |
| windowSize | Days/window to lookback |
Definition at line 40 of file Rolling.cs.
|
static |
Get the rolling sharpe of the given series with a lookback of months . The risk free rate is adjustable
| equityCurve | Equity curve to calculate rolling sharpe for |
| months | Number of months to calculate the rolling period for |
| tradingDayPerYear | The number of trading days per year to increase result of Annual statistics |
Definition at line 81 of file Rolling.cs.