Class MovingVolumeWeightedAveragePrice
java.lang.Object
trade.invision.indicators.indicators.Indicator<Num>
trade.invision.indicators.indicators.vwap.MovingVolumeWeightedAveragePrice
MovingVolumeWeightedAveragePrice is a Num Indicator to provide a Moving Volume-Weighted
Average Price (MVWAP) over a length of Bars.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class trade.invision.indicators.indicators.Indicator
Indicator.CacheSeries -
Field Summary
Fields inherited from class trade.invision.indicators.indicators.Indicator
cachedAddCallCount, cachedIndex, cachedValue, cacheSeries, minimumStableIndex, series -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMovingVolumeWeightedAveragePrice(BarSeries barSeries, int length, MovingAverageSupplier movingAverageSupplier) -
Method Summary
Modifier and TypeMethodDescriptionprotected Numcalculate(long index) Performs the calculation of thisIndicatorat the givenindex.movingVolumeWeightedAveragePrice(BarSeries barSeries, int length, MovingAverageSupplier movingAverageSupplier) Gets aMovingVolumeWeightedAveragePrice.mvwap(BarSeries barSeries, int length, MovingAverageSupplier movingAverageSupplier) Methods inherited from class trade.invision.indicators.indicators.Indicator
caching, getMinimumStableIndex, getSeries, getValue, isCaching, numOf, numOf, numOf, numOf, numOfEight, numOfFive, numOfFour, numOfHalf, numOfHundred, numOfHundredth, numOfNegativeOne, numOfNine, numOfOne, numOfSeven, numOfSix, numOfTen, numOfTenth, numOfThousand, numOfThousandth, numOfThree, numOfTwo, numOfZero, purgeCache
-
Constructor Details
-
MovingVolumeWeightedAveragePrice
protected MovingVolumeWeightedAveragePrice(BarSeries barSeries, int length, MovingAverageSupplier movingAverageSupplier)
-
-
Method Details
-
mvwap
public static MovingVolumeWeightedAveragePrice mvwap(BarSeries barSeries, int length, MovingAverageSupplier movingAverageSupplier) - See Also:
-
movingVolumeWeightedAveragePrice
public static MovingVolumeWeightedAveragePrice movingVolumeWeightedAveragePrice(BarSeries barSeries, int length, MovingAverageSupplier movingAverageSupplier) Gets aMovingVolumeWeightedAveragePrice.- Parameters:
barSeries- theBarSerieslength- the number of values to look back atmovingAverageSupplier- theMovingAverageSupplier
-
calculate
Description copied from class:IndicatorPerforms the calculation of thisIndicatorat the givenindex.
-