Lean  $LEAN_TAG$
QuantConnect.Indicators.AccumulationDistribution Class Reference

This indicator computes the Accumulation/Distribution (AD) The Accumulation/Distribution is calculated using the following formula: AD = AD + ((Close - Low) - (High - Close)) / (High - Low) * Volume More...

Inheritance diagram for QuantConnect.Indicators.AccumulationDistribution:
[legend]

Public Member Functions

 AccumulationDistribution ()
 Initializes a new instance of the AccumulationDistribution class using the specified name. More...
 
 AccumulationDistribution (string name)
 Initializes a new instance of the AccumulationDistribution class using the specified name. More...
 

Public Attributes

override bool IsReady => Samples > 0
 Gets a flag indicating when this indicator is ready and fully initialized More...
 
int WarmUpPeriod => 1
 Required period, in data points, for the indicator to be ready and fully initialized. More...
 

Protected Member Functions

override decimal ComputeNextValue (TradeBar input)
 Computes the next value of this indicator from the given state More...
 
- Protected Member Functions inherited from QuantConnect.Indicators.TradeBarIndicator
 TradeBarIndicator (string name)
 Creates a new TradeBarIndicator with the specified name More...
 

Additional Inherited Members

- Properties inherited from QuantConnect.Indicators.IIndicatorWarmUpPeriodProvider
int WarmUpPeriod [get]
 Required period, in data points, for the indicator to be ready and fully initialized. More...
 

Detailed Description

This indicator computes the Accumulation/Distribution (AD) The Accumulation/Distribution is calculated using the following formula: AD = AD + ((Close - Low) - (High - Close)) / (High - Low) * Volume

Definition at line 25 of file AccumulationDistribution.cs.

Constructor & Destructor Documentation

◆ AccumulationDistribution() [1/2]

QuantConnect.Indicators.AccumulationDistribution.AccumulationDistribution ( )

Initializes a new instance of the AccumulationDistribution class using the specified name.

Definition at line 30 of file AccumulationDistribution.cs.

◆ AccumulationDistribution() [2/2]

QuantConnect.Indicators.AccumulationDistribution.AccumulationDistribution ( string  name)

Initializes a new instance of the AccumulationDistribution class using the specified name.

Parameters
nameThe name of this indicator

Definition at line 39 of file AccumulationDistribution.cs.

Member Function Documentation

◆ ComputeNextValue()

override decimal QuantConnect.Indicators.AccumulationDistribution.ComputeNextValue ( TradeBar  input)
protected

Computes the next value of this indicator from the given state

Parameters
inputThe input given to the indicator
Returns
A new value for this indicator

Definition at line 59 of file AccumulationDistribution.cs.

Member Data Documentation

◆ IsReady

override bool QuantConnect.Indicators.AccumulationDistribution.IsReady => Samples > 0

Gets a flag indicating when this indicator is ready and fully initialized

Definition at line 47 of file AccumulationDistribution.cs.

◆ WarmUpPeriod

int QuantConnect.Indicators.AccumulationDistribution.WarmUpPeriod => 1

Required period, in data points, for the indicator to be ready and fully initialized.

Definition at line 52 of file AccumulationDistribution.cs.


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