Class MovingAverageDistanceDifference
java.lang.Object
trade.invision.indicators.indicators.Indicator<Num>
trade.invision.indicators.indicators.mad.MovingAverageDistanceDifference
MovingAverageDistanceDifference is a Num Indicator to provide the Moving Average Distance
Difference (MADD) over a length 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
ConstructorsModifierConstructorDescriptionprotectedMovingAverageDistanceDifference(Indicator<Num> indicator, int length, MovingAverageSupplier movingAverageSupplier) -
Method Summary
Modifier and TypeMethodDescriptionprotected Numcalculate(long index) Performs the calculation of thisIndicatorat the givenindex.madd(Indicator<Num> indicator, int length, MovingAverageSupplier movingAverageSupplier) movingAverageDistanceDifference(Indicator<Num> indicator, int length, MovingAverageSupplier movingAverageSupplier) Gets aMovingAverageDistanceDifference.Methods inherited from class trade.invision.indicators.indicators.Indicator
caching, 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
-
MovingAverageDistanceDifference
protected MovingAverageDistanceDifference(Indicator<Num> indicator, int length, MovingAverageSupplier movingAverageSupplier)
-
-
Method Details
-
madd
public static MovingAverageDistanceDifference madd(Indicator<Num> indicator, int length, MovingAverageSupplier movingAverageSupplier) - See Also:
-
movingAverageDistanceDifference
public static MovingAverageDistanceDifference movingAverageDistanceDifference(Indicator<Num> indicator, int length, MovingAverageSupplier movingAverageSupplier) Gets aMovingAverageDistanceDifference.- Parameters:
indicator- theIndicatorlength- the number of values to look back atmovingAverageSupplier- theMovingAverageSupplier
-
calculate
Description copied from class:IndicatorPerforms the calculation of thisIndicatorat the givenindex.
-