Class RecursiveIndicator<T>

Type Parameters:
T - the Indicator type
Direct Known Subclasses:
AccumulationDistribution, ExponentialMovingAverage, GlobalBearishPercentage, GlobalBullishPercentage, GlobalFallingPercentage, GlobalMaximum, GlobalMinimum, GlobalRisingPercentage, KaufmansAdaptiveMovingAverage, NegativeVolumeIndex, OnBalanceVolume, PositiveVolumeIndex, Supertrend, SupertrendLowerBand, SupertrendUpperBand, WellesWilderMovingAverage, ZeroLagExponentialMovingAverage

public abstract class RecursiveIndicator<T> extends CachingIndicator<T>
RecursiveIndicator is an abstract CachingIndicator class for Indicator subclasses that use recursion in the Indicator.calculate(long) method implementation. If getValue(long) is called with an empty Indicator cache, a StackOverflowError may occur, so this class replaces recursion with iteration.