Class PreviousValue<T>
java.lang.Object
trade.invision.indicators.indicators.Indicator<T>
trade.invision.indicators.indicators.CachelessIndicator<T>
trade.invision.indicators.indicators.previous.PreviousValue<T>
- Type Parameters:
T- the type
PreviousValue is an Indicator to provide the n-th previous value.-
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 Tcalculate(long index) Performs the calculation of thisIndicatorat the givenindex.static <T> PreviousValue<T> previousValue(Indicator<T> indicator) static <T> PreviousValue<T> previousValue(Indicator<T> indicator, int n) Gets aPreviousValue.Methods inherited from class trade.invision.indicators.indicators.CachelessIndicator
cachingMethods inherited from class trade.invision.indicators.indicators.Indicator
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
-
PreviousValue
-
-
Method Details
-
previousValue
-
previousValue
Gets aPreviousValue.- Parameters:
indicator- theIndicatorn- the previous n-th value to look back at
-
calculate
Description copied from class:IndicatorPerforms the calculation of thisIndicatorat the givenindex.
-