Class CachelessIndicator<T>
java.lang.Object
trade.invision.indicators.indicators.Indicator<T>
trade.invision.indicators.indicators.CachelessIndicator<T>
- Type Parameters:
T- theIndicatortype
- Direct Known Subclasses:
BarEnd,BarStart,Close,ConstantArray,ConstantValue,CurrentIndex,High,IsIndexStable,Low,NumDatapointInstant,NumDatapointValue,Open,PreviousValue,Replacement,SeriesReference,TradeCount,Volume
CachelessIndicator is an abstract Indicator class that permanently disables caching. This is useful
for Indicator implementations that derive their calculated values from existing data without any
modifications.-
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 TypeMethodDescriptioncaching()Permanently enables caching of thisIndicator's calculated values in order to optimizeIndicator.getValue(long)for non-ending indices.Methods inherited from class trade.invision.indicators.indicators.Indicator
calculate, 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
-
CachelessIndicator
- See Also:
-
-
Method Details
-
caching
Description copied from class:IndicatorPermanently enables caching of thisIndicator's calculated values in order to optimizeIndicator.getValue(long)for non-ending indices. The cache should be enabled when consumers of thisIndicatoruse the calculated values of non-ending indices, as opposed to only using the calculated value of the end index (e.g.Series.getEndIndex()). The cache size is equal toIndicator.getSeries()Series.getMaximumLength().
-