Registered User Joined: 8/1/2006 Posts: 97
|
Hi. Instead of the usual 20,2, what would the formula be for %b with the Bollinger Band settings of 5-day MA, 1 SD? Also, what would be the "yesterday" version of that formula? Thanks as always.
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
For the current bar this would be:
(C - AVGC5) / 2 / SQR(ABS(C ^ 2 + C1 ^ 2 + C2 ^ 2 + C3 ^ 2 + C4 ^ 2 - 5 * AVGC5 ^ 2) / 5) + .5
And for the previous bar this would be:
(C1 - AVGC5.1) / 2 / SQR(ABS(C1 ^ 2 + C2 ^ 2 + C3 ^ 2 + C4 ^ 2 + C5 ^ 2 - 5 * AVGC5.1 ^ 2) / 5) + .5
Modelling Bollinger Bands (& Standard Deviation) in a TC PCF
-Bruce Personal Criteria Formulas TC2000 Support Articles
|