Class BollingerBands
java.lang.Object
trade.invision.indicators.indicators.Indicator<BollingerBandsResult>
trade.invision.indicators.indicators.bb.BollingerBands
- 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
ConstructorsModifierConstructorDescriptionprotectedBollingerBands(Indicator<Num> indicator, Set<BollingerBandsResultType> resultTypes, int length, Num multiplier, MovingAverageSupplier movingAverageSupplier, boolean unbiased) -
Method Summary
Modifier and TypeMethodDescriptionstatic BollingerBandsbb(Indicator<Num> indicator, Set<BollingerBandsResultType> resultTypes, int length, Num multiplier, MovingAverageSupplier movingAverageSupplier, boolean unbiased) bbBandwidth(Indicator<Num> indicator, int length, Num multiplier, MovingAverageSupplier movingAverageSupplier, boolean unbiased) bbLowerBand(Indicator<Num> indicator, int length, Num multiplier, MovingAverageSupplier movingAverageSupplier, boolean unbiased) bbMiddleBand(Indicator<Num> indicator, int length, Num multiplier, MovingAverageSupplier movingAverageSupplier, boolean unbiased) bbPercentB(Indicator<Num> indicator, int length, Num multiplier, MovingAverageSupplier movingAverageSupplier, boolean unbiased) bbUpperBand(Indicator<Num> indicator, int length, Num multiplier, MovingAverageSupplier movingAverageSupplier, boolean unbiased) static BollingerBandsbollingerBands(Indicator<Num> indicator, Set<BollingerBandsResultType> resultTypes, int length, Num multiplier, MovingAverageSupplier movingAverageSupplier, boolean unbiased) Gets aBollingerBands.bollingerBandsBandwidth(Indicator<Num> indicator, int length, Num multiplier, MovingAverageSupplier movingAverageSupplier, boolean unbiased) bollingerBandsLowerBand(Indicator<Num> indicator, int length, Num multiplier, MovingAverageSupplier movingAverageSupplier, boolean unbiased) bollingerBandsMiddleBand(Indicator<Num> indicator, int length, Num multiplier, MovingAverageSupplier movingAverageSupplier, boolean unbiased) bollingerBandsPercentB(Indicator<Num> indicator, int length, Num multiplier, MovingAverageSupplier movingAverageSupplier, boolean unbiased) bollingerBandsUpperBand(Indicator<Num> indicator, int length, Num multiplier, MovingAverageSupplier movingAverageSupplier, boolean unbiased) protected BollingerBandsResultcalculate(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
-
BollingerBands
protected BollingerBands(Indicator<Num> indicator, Set<BollingerBandsResultType> resultTypes, int length, Num multiplier, MovingAverageSupplier movingAverageSupplier, boolean unbiased)
-
-
Method Details
-
bbMiddleBand
public static Indicator<Num> bbMiddleBand(Indicator<Num> indicator, int length, Num multiplier, MovingAverageSupplier movingAverageSupplier, boolean unbiased) - See Also:
-
bollingerBandsMiddleBand
-
bbUpperBand
public static Indicator<Num> bbUpperBand(Indicator<Num> indicator, int length, Num multiplier, MovingAverageSupplier movingAverageSupplier, boolean unbiased) - See Also:
-
bollingerBandsUpperBand
-
bbLowerBand
public static Indicator<Num> bbLowerBand(Indicator<Num> indicator, int length, Num multiplier, MovingAverageSupplier movingAverageSupplier, boolean unbiased) - See Also:
-
bollingerBandsLowerBand
-
bbBandwidth
public static Indicator<Num> bbBandwidth(Indicator<Num> indicator, int length, Num multiplier, MovingAverageSupplier movingAverageSupplier, boolean unbiased) - See Also:
-
bollingerBandsBandwidth
-
bbPercentB
public static Indicator<Num> bbPercentB(Indicator<Num> indicator, int length, Num multiplier, MovingAverageSupplier movingAverageSupplier, boolean unbiased) - See Also:
-
bollingerBandsPercentB
-
bb
public static BollingerBands bb(Indicator<Num> indicator, Set<BollingerBandsResultType> resultTypes, int length, Num multiplier, MovingAverageSupplier movingAverageSupplier, boolean unbiased) - See Also:
-
bollingerBands
public static BollingerBands bollingerBands(Indicator<Num> indicator, Set<BollingerBandsResultType> resultTypes, int length, Num multiplier, MovingAverageSupplier movingAverageSupplier, boolean unbiased) Gets aBollingerBands.- Parameters:
indicator- theIndicatorresultTypes- theBollingerBandsResultTypeSetlength- the number of values to look back atmultiplier- the multiplier (typically 2)movingAverageSupplier- theMovingAverageSupplierunbiased-trueto usen - 1(unbiased) for the divisor in the standard deviation calculation,falseto usen(biased)
-
calculate
Description copied from class:IndicatorPerforms the calculation of thisIndicatorat the givenindex.- Specified by:
calculatein classIndicator<BollingerBandsResult>- Parameters:
index- the index- Returns:
- the result (never
null)
-