Registered User Joined: 3/12/2005 Posts: 123
|
In TC 2000 V7 Is it possible to create a %B indicator of a 20-day bollinger band with 2 standard deviation upper and lower bands? %B is the position of price between the upper and lower bands.
Thanks
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
Please try adding a Custom Indicator with the following settings.
Plotting Custom Indicators with Examples
- Period: 1
- Average Type: Doesn't matter.
- Formula: (C - AVGC20) / 4 / SQR(ABS(C ^ 2 + C1 ^ 2 + C2 ^ 2 + C3 ^ 2 + C4 ^ 2 + C5 ^ 2 + C6 ^ 2 + C7 ^ 2 + C8 ^ 2 + C9 ^ 2 + C10 ^ 2 + C11 ^ 2 + C12 ^ 2 + C13 ^ 2 + C14 ^ 2 + C15 ^ 2 + C16 ^ 2 + C17 ^ 2 + C18 ^ 2 + C19 ^ 2 - 20 * AVGC20 ^ 2) / 19) + .5
You can multiply this by 100 if you want it to from 0 at the bottom and 100 at the top instead of 0 at the bottom and 1 at the top.
100 *((C - AVGC20) / 4 / SQR(ABS(C ^ 2 + C1 ^ 2 + C2 ^ 2 + C3 ^ 2 + C4 ^ 2 + C5 ^ 2 + C6 ^ 2 + C7 ^ 2 + C8 ^ 2 + C9 ^ 2 + C10 ^ 2 + C11 ^ 2 + C12 ^ 2 + C13 ^ 2 + C14 ^ 2 + C15 ^ 2 + C16 ^ 2 + C17 ^ 2 + C18 ^ 2 + C19 ^ 2 - 20 * AVGC20 ^ 2) / 20) + .5)
Modelling Bollinger Bands (& Standard Deviation) in a TC PCF
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
Registered User Joined: 3/12/2005 Posts: 123
|
Thanks Bruce!
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You're welcome.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|