Class BollingerBandWidthIndicator
java.lang.Object
org.ta4j.core.indicators.AbstractIndicator<T>
org.ta4j.core.indicators.CachedIndicator<Num>
org.ta4j.core.indicators.bollinger.BollingerBandWidthIndicator
public class BollingerBandWidthIndicator extends CachedIndicator<Num>
Bollinger BandWidth indicator.
-
Field Summary
Fields inherited from class org.ta4j.core.indicators.CachedIndicator
highestResultIndex
Fields inherited from class org.ta4j.core.indicators.AbstractIndicator
log
-
Constructor Summary
ConstructorsConstructorDescriptionBollingerBandWidthIndicator(BollingerBandsUpperIndicator bbu, BollingerBandsMiddleIndicator bbm, BollingerBandsLowerIndicator bbl)
Constructor. -
Method Summary
Methods inherited from class org.ta4j.core.indicators.CachedIndicator
getValue
Methods inherited from class org.ta4j.core.indicators.AbstractIndicator
getBarSeries, numOf, toString
-
Constructor Details
-
BollingerBandWidthIndicator
public BollingerBandWidthIndicator(BollingerBandsUpperIndicator bbu, BollingerBandsMiddleIndicator bbm, BollingerBandsLowerIndicator bbl)Constructor.- Parameters:
bbu
- the upper band Indicator.bbm
- the middle band Indicator. Typically an SMAIndicator is used.bbl
- the lower band Indicator.
-
-
Method Details
-
calculate
- Specified by:
calculate
in classCachedIndicator<Num>
- Parameters:
index
- the bar index- Returns:
- the value of the indicator
-