Lean
$LEAN_TAG$
|
The AverageTrueRange indicator is a measure of volatility introduced by Welles Wilder in his book: New Concepts in Technical Trading Systems. This indicator computes the TrueRange and then smoothes the TrueRange over a given period. More...
Public Member Functions | |
AverageTrueRange (string name, int period, MovingAverageType movingAverageType=MovingAverageType.Wilders) | |
Creates a new AverageTrueRange indicator using the specified period and moving average type More... | |
AverageTrueRange (int period, MovingAverageType movingAverageType=MovingAverageType.Wilders) | |
Creates a new AverageTrueRange indicator using the specified period and moving average type More... | |
override void | Reset () |
Resets this indicator to its initial state More... | |
Static Public Member Functions | |
static decimal | ComputeTrueRange (IBaseDataBar previous, IBaseDataBar current) |
Computes the TrueRange from the current and previous trade bars More... | |
Public Attributes | |
override bool | IsReady => _smoother.IsReady |
Gets a flag indicating when this indicator is ready and fully initialized More... | |
Protected Member Functions | |
override decimal | ComputeNextValue (IBaseDataBar input) |
Computes the next value of this indicator from the given state More... | |
Protected Member Functions inherited from QuantConnect.Indicators.BarIndicator | |
BarIndicator (string name) | |
Creates a new TradeBarIndicator with the specified name More... | |
Properties | |
IndicatorBase< IBaseDataBar > | TrueRange [get] |
Gets the true range which is the more volatile calculation to be smoothed by this indicator More... | |
int | WarmUpPeriod [get] |
Required period, in data points, for the indicator to be ready and fully initialized. More... | |
Properties inherited from QuantConnect.Indicators.IIndicatorWarmUpPeriodProvider | |
int | WarmUpPeriod [get] |
Required period, in data points, for the indicator to be ready and fully initialized. More... | |
The AverageTrueRange indicator is a measure of volatility introduced by Welles Wilder in his book: New Concepts in Technical Trading Systems. This indicator computes the TrueRange and then smoothes the TrueRange over a given period.
TrueRange is defined as the maximum of the following: High - Low ABS(High - PreviousClose) ABS(Low - PreviousClose)
Definition at line 31 of file AverageTrueRange.cs.
QuantConnect.Indicators.AverageTrueRange.AverageTrueRange | ( | string | name, |
int | period, | ||
MovingAverageType | movingAverageType = MovingAverageType.Wilders |
||
) |
Creates a new AverageTrueRange indicator using the specified period and moving average type
name | The name of this indicator |
period | The smoothing period used to smooth the true range values |
movingAverageType | The type of smoothing used to smooth the true range values |
Definition at line 61 of file AverageTrueRange.cs.
QuantConnect.Indicators.AverageTrueRange.AverageTrueRange | ( | int | period, |
MovingAverageType | movingAverageType = MovingAverageType.Wilders |
||
) |
Creates a new AverageTrueRange indicator using the specified period and moving average type
period | The smoothing period used to smooth the true range values |
movingAverageType | The type of smoothing used to smooth the true range values |
Definition at line 84 of file AverageTrueRange.cs.
|
static |
Computes the TrueRange from the current and previous trade bars
TrueRange is defined as the maximum of the following: High - Low ABS(High - PreviousClose) ABS(Low - PreviousClose)
previous | The previous trade bar |
current | The current trade bar |
Definition at line 100 of file AverageTrueRange.cs.
|
protected |
Computes the next value of this indicator from the given state
input | The input given to the indicator |
Definition at line 119 of file AverageTrueRange.cs.
override void QuantConnect.Indicators.AverageTrueRange.Reset | ( | ) |
Resets this indicator to its initial state
Definition at line 131 of file AverageTrueRange.cs.
override bool QuantConnect.Indicators.AverageTrueRange.IsReady => _smoother.IsReady |
Gets a flag indicating when this indicator is ready and fully initialized
Definition at line 48 of file AverageTrueRange.cs.
|
get |
Gets the true range which is the more volatile calculation to be smoothed by this indicator
Definition at line 43 of file AverageTrueRange.cs.
|
get |
Required period, in data points, for the indicator to be ready and fully initialized.
Definition at line 53 of file AverageTrueRange.cs.