Lean  $LEAN_TAG$
QuantConnect.Indicators.MovingAverageTypeExtensions Class Reference

Provides extension methods for the MovingAverageType enumeration More...

Static Public Member Functions

static IndicatorBase< IndicatorDataPointAsIndicator (this MovingAverageType movingAverageType, int period)
 Creates a new indicator from the specified MovingAverageType. So if MovingAverageType.Simple is specified, then a new SimpleMovingAverage will be returned. More...
 
static IndicatorBase< IndicatorDataPointAsIndicator (this MovingAverageType movingAverageType, string name, int period)
 Creates a new indicator from the specified MovingAverageType. So if MovingAverageType.Simple is specified, then a new SimpleMovingAverage will be returned. More...
 

Detailed Description

Provides extension methods for the MovingAverageType enumeration

Definition at line 23 of file MovingAverageTypeExtensions.cs.

Member Function Documentation

◆ AsIndicator() [1/2]

static IndicatorBase<IndicatorDataPoint> QuantConnect.Indicators.MovingAverageTypeExtensions.AsIndicator ( this MovingAverageType  movingAverageType,
int  period 
)
static

Creates a new indicator from the specified MovingAverageType. So if MovingAverageType.Simple is specified, then a new SimpleMovingAverage will be returned.

Parameters
movingAverageTypeThe type of averaging indicator to create
periodThe smoothing period
Returns
A new indicator that matches the MovingAverageType

Definition at line 32 of file MovingAverageTypeExtensions.cs.

◆ AsIndicator() [2/2]

static IndicatorBase<IndicatorDataPoint> QuantConnect.Indicators.MovingAverageTypeExtensions.AsIndicator ( this MovingAverageType  movingAverageType,
string  name,
int  period 
)
static

Creates a new indicator from the specified MovingAverageType. So if MovingAverageType.Simple is specified, then a new SimpleMovingAverage will be returned.

Parameters
movingAverageTypeThe type of averaging indicator to create
nameThe name of the new indicator
periodThe smoothing period
Returns
A new indicator that matches the MovingAverageType

Definition at line 82 of file MovingAverageTypeExtensions.cs.


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