Lean
$LEAN_TAG$
|
Volume Weighted Average Price (VWAP) Indicator: It is calculated by adding up the dollars traded for every transaction (price multiplied by number of shares traded) and then dividing by the total shares traded for the day. More...
Public Member Functions | |
VolumeWeightedAveragePriceIndicator (int period) | |
Initializes a new instance of the VWAP class with the default name and period More... | |
VolumeWeightedAveragePriceIndicator (string name, int period) | |
Initializes a new instance of the VWAP class with a given name and period More... | |
override void | Reset () |
Resets this indicator to its initial state More... | |
Public Attributes | |
override bool | IsReady => VWAP.IsReady |
Gets a flag indicating when this indicator is ready and fully initialized More... | |
int | WarmUpPeriod => _period |
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... | |
virtual decimal | GetTimeWeightedAveragePrice (TradeBar input) |
Gets an estimated average price to use for the interval covered by the input trade bar. More... | |
Protected Member Functions inherited from QuantConnect.Indicators.TradeBarIndicator | |
TradeBarIndicator (string name) | |
Creates a new TradeBarIndicator with the specified name More... | |
Properties | |
Identity | Price [get] |
Indentity indicator for price More... | |
Identity | Volume [get] |
Identity indicator for volume More... | |
CompositeIndicator | VWAP [get] |
Volume Weighted Average Price 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... | |
Volume Weighted Average Price (VWAP) Indicator: It is calculated by adding up the dollars traded for every transaction (price multiplied by number of shares traded) and then dividing by the total shares traded for the day.
Definition at line 26 of file VolumeWeightedAveragePriceIndicator.cs.
QuantConnect.Indicators.VolumeWeightedAveragePriceIndicator.VolumeWeightedAveragePriceIndicator | ( | int | period | ) |
Initializes a new instance of the VWAP class with the default name and period
period | The period of the VWAP |
Definition at line 52 of file VolumeWeightedAveragePriceIndicator.cs.
QuantConnect.Indicators.VolumeWeightedAveragePriceIndicator.VolumeWeightedAveragePriceIndicator | ( | string | name, |
int | period | ||
) |
Initializes a new instance of the VWAP class with a given name and period
name | string - the name of the indicator |
period | The period of the VWAP |
Definition at line 62 of file VolumeWeightedAveragePriceIndicator.cs.
override void QuantConnect.Indicators.VolumeWeightedAveragePriceIndicator.Reset | ( | ) |
Resets this indicator to its initial state
Definition at line 87 of file VolumeWeightedAveragePriceIndicator.cs.
|
protected |
Computes the next value of this indicator from the given state
input | The input given to the indicator |
Definition at line 100 of file VolumeWeightedAveragePriceIndicator.cs.
|
protectedvirtual |
Gets an estimated average price to use for the interval covered by the input trade bar.
input | The current trade bar input |
Definition at line 112 of file VolumeWeightedAveragePriceIndicator.cs.
override bool QuantConnect.Indicators.VolumeWeightedAveragePriceIndicator.IsReady => VWAP.IsReady |
Gets a flag indicating when this indicator is ready and fully initialized
Definition at line 77 of file VolumeWeightedAveragePriceIndicator.cs.
int QuantConnect.Indicators.VolumeWeightedAveragePriceIndicator.WarmUpPeriod => _period |
Required period, in data points, for the indicator to be ready and fully initialized.
Definition at line 82 of file VolumeWeightedAveragePriceIndicator.cs.
|
getprotected |
Indentity indicator for price
Definition at line 36 of file VolumeWeightedAveragePriceIndicator.cs.
|
getprotected |
Identity indicator for volume
Definition at line 41 of file VolumeWeightedAveragePriceIndicator.cs.
|
getprotected |
Volume Weighted Average Price
Definition at line 46 of file VolumeWeightedAveragePriceIndicator.cs.