Class MovingAverageDistancePercentage
java.lang.Object
trade.invision.indicators.indicators.Indicator<Num>
trade.invision.indicators.indicators.mad.MovingAverageDistancePercentage
MovingAverageDistancePercentage is a Num Indicator to provide the Moving Average Distance
Percentage (MADP) over a length of values. The percentage is represented as a fractional. For example, a
provided value of 0.15 would represent 15%.- 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
ConstructorsModifierConstructorDescriptionprotectedMovingAverageDistancePercentage(Indicator<Num> indicator, int length, MovingAverageSupplier movingAverageSupplier) -
Method Summary
Modifier and TypeMethodDescriptionprotected Numcalculate(long index) Performs the calculation of thisIndicatorat the givenindex.madp(Indicator<Num> indicator, int length, MovingAverageSupplier movingAverageSupplier) movingAverageDistancePercentage(Indicator<Num> indicator, int length, MovingAverageSupplier movingAverageSupplier) Gets aMovingAverageDistancePercentage.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
-
MovingAverageDistancePercentage
protected MovingAverageDistancePercentage(Indicator<Num> indicator, int length, MovingAverageSupplier movingAverageSupplier)
-
-
Method Details
-
madp
public static MovingAverageDistancePercentage madp(Indicator<Num> indicator, int length, MovingAverageSupplier movingAverageSupplier) - See Also:
-
movingAverageDistancePercentage
public static MovingAverageDistancePercentage movingAverageDistancePercentage(Indicator<Num> indicator, int length, MovingAverageSupplier movingAverageSupplier) Gets aMovingAverageDistancePercentage.- Parameters:
indicator- theIndicatorlength- the number of values to look back atmovingAverageSupplier- theMovingAverageSupplier
-
calculate
Description copied from class:IndicatorPerforms the calculation of thisIndicatorat the givenindex.
-