Class CommodityChannelIndex
java.lang.Object
trade.invision.indicators.indicators.Indicator<Num>
trade.invision.indicators.indicators.cci.CommodityChannelIndex
CommodityChannelIndex is a Num Indicator to provide the Commodity Channel Index (CCI) 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
ConstructorsModifierConstructorDescriptionprotectedCommodityChannelIndex(Indicator<Num> indicator, int length, MovingAverageSupplier movingAverageSupplier) -
Method Summary
Modifier and TypeMethodDescriptionprotected Numcalculate(long index) Performs the calculation of thisIndicatorat the givenindex.static CommodityChannelIndexcci(Indicator<Num> indicator, int length, MovingAverageSupplier movingAverageSupplier) static CommodityChannelIndexcommodityChannelIndex(Indicator<Num> indicator, int length, MovingAverageSupplier movingAverageSupplier) Gets aCommodityChannelIndex.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
-
CommodityChannelIndex
protected CommodityChannelIndex(Indicator<Num> indicator, int length, MovingAverageSupplier movingAverageSupplier)
-
-
Method Details
-
cci
public static CommodityChannelIndex cci(Indicator<Num> indicator, int length, MovingAverageSupplier movingAverageSupplier) - See Also:
-
commodityChannelIndex
public static CommodityChannelIndex commodityChannelIndex(Indicator<Num> indicator, int length, MovingAverageSupplier movingAverageSupplier) Gets aCommodityChannelIndex.- Parameters:
indicator- theIndicatorlength- the number of values to look back at (typically 20)movingAverageSupplier- theMovingAverageSupplier
-
calculate
Description copied from class:IndicatorPerforms the calculation of thisIndicatorat the givenindex.
-