Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
Bollinger Bands (BB)
Templates (v17+)
Function Version (simple, of closing prices)
Bottom Band
BBBOT(d, x, z)
Top Band
BBTOP(d, x, z)
Center Line
AVG(C, x)
Indicator Version (simple, of closing prices)
Bottom Band
BBBOTd.x.z
Top Band
BBTOPd.x.z
Center Line
AVGCx
Generalized Version
Bottom Band
AVG(w, x) - d * SQR(ABS((SUM(w, x) - SUM(w, x) ^ 2 / x) / x))
Top Band
AVG(w, x) + d * SQR(ABS((SUM(w, x) - SUM(w, x) ^ 2 / x) / x))
Center Line
AVG(w, x)
Where d is the d = width in standard deviations +/- from the centerline. Must be an integer in the indicator version.
Where w can be any formula which returns a numeric value.
Where x is the Period of the Bollinger Bands
Where z is the number of Bars Ago. z can also be a date in the indicator version. May 4, 2015 would be (single quotes required): '05/04/2015'
The Average Type is assumed to be Simple. If you want to change this, it is best to use the generalized version.
Change AVG to FAVG for a Front Weighted Average Type.
Change AVG to HAVG for a Hull Average Type.
Change AVG to XAVG for an Exponential Average Type.
Related Topics
-Bruce Personal Criteria Formulas TC2000 Support Articles
|