Class AccelerationDeceleration
java.lang.Object
trade.invision.indicators.indicators.Indicator<Num>
trade.invision.indicators.indicators.acdc.AccelerationDeceleration
AccelerationDeceleration is a Num Indicator to provide the Acceleration/Deceleration (ACDC)
over a firstLength and secondLength 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
ConstructorsModifierConstructorDescriptionprotectedAccelerationDeceleration(Indicator<Num> indicator, int firstLength, int secondLength, MovingAverageSupplier movingAverageSupplier) -
Method Summary
Modifier and TypeMethodDescriptionstatic AccelerationDecelerationaccelerationDeceleration(Indicator<Num> indicator, int firstLength, int secondLength, MovingAverageSupplier movingAverageSupplier) Gets aAccelerationDeceleration.static AccelerationDecelerationacdc(Indicator<Num> indicator, int firstLength, int secondLength, MovingAverageSupplier movingAverageSupplier) protected Numcalculate(long index) Performs the calculation of thisIndicatorat the givenindex.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
-
AccelerationDeceleration
protected AccelerationDeceleration(Indicator<Num> indicator, int firstLength, int secondLength, MovingAverageSupplier movingAverageSupplier)
-
-
Method Details
-
acdc
public static AccelerationDeceleration acdc(Indicator<Num> indicator, int firstLength, int secondLength, MovingAverageSupplier movingAverageSupplier) - See Also:
-
accelerationDeceleration
public static AccelerationDeceleration accelerationDeceleration(Indicator<Num> indicator, int firstLength, int secondLength, MovingAverageSupplier movingAverageSupplier) Gets aAccelerationDeceleration.- Parameters:
indicator- theIndicatorfirstLength- the first averaging length (typically 5)secondLength- the second averaging length (typically 34)movingAverageSupplier- theMovingAverageSupplier
-
calculate
Description copied from class:IndicatorPerforms the calculation of thisIndicatorat the givenindex.
-