|
Description |
BB() returns |
|
|
Syntax |
|
|
|
Parameters |
SERIES Use the SERIES parameter when you are referencing a study value. In chart windows, values are displayed in decimals. In quote windows, values are displayed in the units of the underlying instrument.
INPUT Use the INPUT parameter when you are referencing an overlay value.
maLength Moving average length.
stdDev Standard deviation.
envLength Envelope length.
<shift> Optional. A number, positive or negative, enclosed in brackets defining the number of bars (periods) to shift the formula line. Typically used only in formulas that will be displayed in chart windows. |
|
|
Return Value |
A Bollinger Bands value. |
|
|
Examples |
BB_EX1(SERIES,ma_len=9,std_dev=1,env_len=2)=begin retval = BB(SERIES,ma_len,std_dev,env_len) end
BB_EX2(INPUT,ma_len=9,std_dev=1,env_len=2)=begin retval = BB(INPUT,ma_len,std_dev,env_len)[1] end |
|
|
Comments |
Developed by John Bollinger, Bollinger bands are lines drawn at fixed intervals around a moving average, as a function of a market's volatility. Lines are plotted above and below the chosen moving average at a distance equal to two times the root mean square of the deviations from the moving average. The length of the data used is set by the number of periods calculated in the moving average. |