Class PercentagePriceOscillator
java.lang.Object
trade.invision.indicators.indicators.Indicator<Num>
trade.invision.indicators.indicators.ppo.PercentagePriceOscillator
- Direct Known Subclasses:
PercentageVolumeOscillator
PercentagePriceOscillator is a Num Indicator to provide the Percentage Price Oscillator (PPO)
over a shortLength and longLength of values. This is the same as the Range Action
Verification Index (RAVI).- 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
ConstructorsModifierConstructorDescriptionprotectedPercentagePriceOscillator(Indicator<Num> indicator, int shortLength, int longLength, MovingAverageSupplier movingAverageSupplier) -
Method Summary
Modifier and TypeMethodDescriptionprotected Numcalculate(long index) Performs the calculation of thisIndicatorat the givenindex.static PercentagePriceOscillatorpercentagePriceOscillator(Indicator<Num> indicator, int shortLength, int longLength, MovingAverageSupplier movingAverageSupplier) Gets aPercentagePriceOscillator.static PercentagePriceOscillatorppo(Indicator<Num> indicator, int shortLength, int longLength, 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
-
PercentagePriceOscillator
protected PercentagePriceOscillator(Indicator<Num> indicator, int shortLength, int longLength, MovingAverageSupplier movingAverageSupplier)
-
-
Method Details
-
ppo
public static PercentagePriceOscillator ppo(Indicator<Num> indicator, int shortLength, int longLength, MovingAverageSupplier movingAverageSupplier) - See Also:
-
percentagePriceOscillator
public static PercentagePriceOscillator percentagePriceOscillator(Indicator<Num> indicator, int shortLength, int longLength, MovingAverageSupplier movingAverageSupplier) Gets aPercentagePriceOscillator.- Parameters:
indicator- theIndicatorshortLength- the short averaging length (typically 12)longLength- the long averaging length (typically 26)movingAverageSupplier- theMovingAverageSupplier
-
calculate
Description copied from class:IndicatorPerforms the calculation of thisIndicatorat the givenindex.
-