Class Replacement<T>
java.lang.Object
trade.invision.indicators.indicators.Indicator<T>
trade.invision.indicators.indicators.CachelessIndicator<T>
trade.invision.indicators.indicators.meta.indicator.Replacement<T>
- Type Parameters:
T- the type
- Direct Known Subclasses:
UnstableReplacement
Replacement is an Indicator to provide the values of the given replacement
Indicator instead of the values of the given replacee Indicator only for all the indices
that are less than the given replacementIndex.-
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
ConstructorsModifierConstructorDescriptionprotectedReplacement(Indicator<T> replacee, Indicator<T> replacement, int replacementIndex) -
Method Summary
Modifier and TypeMethodDescriptionprotected Tcalculate(long index) Performs the calculation of thisIndicatorat the givenindex.static <T> Replacement<T> replacement(Indicator<T> replacee, Indicator<T> replacement, int replacementIndex) Gets aReplacement.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
-
Replacement
-
-
Method Details
-
replacement
public static <T> Replacement<T> replacement(Indicator<T> replacee, Indicator<T> replacement, int replacementIndex) Gets aReplacement. -
calculate
Description copied from class:IndicatorPerforms the calculation of thisIndicatorat the givenindex.
-