This study requires the period
and stdDeviationMultiplier
to be passed in the
derivation options.
This study is aliased by the caplin.chart-bollinger-bands-study
alias. To create a new instance of
this study use the caplin.chart.study.Factory.
Attributes | Name and Description |
---|---|
|
caplin.chart.study.BollingerBand(String alias, Object derivationParams, Object listener, Object configOverrides)
Constructs a new |
Attributes | Name and Description |
---|---|
|
void
evaluate(Array data)
Calculates the Bollinger Bands over the given period against the provided standard deviation multiplier. |
►
caplin.chart.study.BollingerBand(String alias, Object derivationParams, Object listener, Object configOverrides)
Constructs a new caplin.chart.study.BollingerBand
.
String | alias | The Study alias. |
Object | derivationParams | Study derivation options. |
Object | listener | A listener object that implements the caplin.chart.study.StudyListener interface. |
Object | configOverrides | (optional) Configuration overrides passed to the parent class. This study overrides
the representationTypes , representationNames and colors options. |
►
void
evaluate(Array data)
Calculates the Bollinger Bands over the given period against the provided standard deviation multiplier.
Once completed it will invoke the caplin.chart.study.StudyListener#onStudyData method on its listener.
The format of the calculated data is: [[timestamp, upper, middle, lower], ...]
Array | data | Chart series data in the Caplin Format. |