Class PreviousPercentChange
java.lang.Object
trade.invision.indicators.indicators.Indicator<Num>
trade.invision.indicators.indicators.previous.PreviousRatio
trade.invision.indicators.indicators.previous.PreviousPercentChange
- Direct Known Subclasses:
ClosePricePercentChange,VolumePercentChange
PreviousPercentChange is a Num Indicator to provide the percent change of the current value
from the n-th previous value. This is also referred to as Rate of Change (ROC) or Momentum. The percentage is
represented as a fractional. For example, a provided value of 0.15 would represent 15%.-
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Numcalculate(long index) Performs the calculation of thisIndicatorat the givenindex.static PreviousPercentChangepreviousPercentChange(Indicator<Num> indicator) static PreviousPercentChangepreviousPercentChange(Indicator<Num> indicator, int n) Gets aPreviousPercentChange.Methods inherited from class trade.invision.indicators.indicators.previous.PreviousRatio
previousRatio, previousRatioMethods 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
-
PreviousPercentChange
-
-
Method Details
-
previousPercentChange
-
previousPercentChange
Gets aPreviousPercentChange. -
calculate
Description copied from class:IndicatorPerforms the calculation of thisIndicatorat the givenindex.- Overrides:
calculatein classPreviousRatio- Parameters:
index- the index- Returns:
- the result (never
null)
-