Class KaufmansAdaptiveMovingAverage
java.lang.Object
trade.invision.indicators.indicators.Indicator<Num>
trade.invision.indicators.indicators.CachingIndicator<Num>
trade.invision.indicators.indicators.RecursiveIndicator<Num>
trade.invision.indicators.indicators.ma.kama.KaufmansAdaptiveMovingAverage
KaufmansAdaptiveMovingAverage is a Num Indicator to provide a Kaufman's Adaptive Moving
Average (KAMA) over a efficiencyRatioLength of values.- See Also:
-
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
ConstructorsModifierConstructorDescriptionprotectedKaufmansAdaptiveMovingAverage(Indicator<Num> indicator, int efficiencyRatioLength, int fastLength, int slowLength) -
Method Summary
Modifier and TypeMethodDescriptionprotected Numcalculate(long index) Performs the calculation of thisIndicatorat the givenindex.kaufmansAdaptiveMovingAverage(Indicator<Num> indicator, int efficiencyRatioLength) CallskaufmansAdaptiveMovingAverage(Indicator, int, int, int)withfastLengthandslowLengthset to typical values that are proportional withefficiencyRatioLength.kaufmansAdaptiveMovingAverage(Indicator<Num> indicator, int efficiencyRatioLength, int fastLength, int slowLength) Gets aKaufmansAdaptiveMovingAverage.Methods inherited from class trade.invision.indicators.indicators.RecursiveIndicator
getValueMethods inherited from class trade.invision.indicators.indicators.Indicator
caching, getMinimumStableIndex, getSeries, 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
-
KaufmansAdaptiveMovingAverage
-
-
Method Details
-
kama
public static KaufmansAdaptiveMovingAverage kama(Indicator<Num> indicator, int efficiencyRatioLength) - See Also:
-
kaufmansAdaptiveMovingAverage
public static KaufmansAdaptiveMovingAverage kaufmansAdaptiveMovingAverage(Indicator<Num> indicator, int efficiencyRatioLength) CallskaufmansAdaptiveMovingAverage(Indicator, int, int, int)withfastLengthandslowLengthset to typical values that are proportional withefficiencyRatioLength. -
kama
public static KaufmansAdaptiveMovingAverage kama(Indicator<Num> indicator, int efficiencyRatioLength, int fastLength, int slowLength) - See Also:
-
kaufmansAdaptiveMovingAverage
public static KaufmansAdaptiveMovingAverage kaufmansAdaptiveMovingAverage(Indicator<Num> indicator, int efficiencyRatioLength, int fastLength, int slowLength) Gets aKaufmansAdaptiveMovingAverage.- Parameters:
indicator- theIndicatorefficiencyRatioLength- the length of the efficiency ratio (typically 10)fastLength- the length of the fast timeframe (typically 2)slowLength- the length of the slow timeframe (typically 30)
-
calculate
Description copied from class:IndicatorPerforms the calculation of thisIndicatorat the givenindex.
-