Registered User Joined: 7/5/2009 Posts: 191
|
Hello,
Can you please help me create a pcf or scan condition for:
1. Bollinger Bandwidth less than .04 for the last 5 days OR 10 days, not including today
2. Bollinger Bandwidth less than .04 for each of the last 5 days OR 10 days, not including today
Questions:
Would the pcf or scan condition be different for 1. vs 2.?
Would I still need to specify a Period of 20 and Std Dev of 2.00 or would this be different since I'm only looking at the last 5 OR 10 days, not including today?
Does this mean the distance between the upper and lower bollinger bands is less that 4% of the closing price or is it less than 4% of the center line?
Basically, I want it to find stocks with low volatility in last 5 OR 10 days and a series of low range bars in last 5 OR 10 days, not including today.
Thank you!
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
Well the basic formula is just the following, but it is only going to check for 1 bar.
4 * SQR(ABS(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 + C20 ^ 2 - 20 * AVGC20.1 ^ 2) / 20) < .04 * AVGC20.1
Modelling Bollinger Bands (& Standard Deviation) in a TC PCF
You do need to specify the period and width. The width of the Bollinger Bands need to be less than 4% of the value of the centerline.
I would have guessed that 1 and 2 were the same if I had seen them on their own, but if you want them to be different I would think that 1 requires it to be true at least once while 2 requires it to be true for the entire period.
The techniques for identifying these two different things are very similar.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
Registered User Joined: 7/5/2009 Posts: 191
|
Thank you very much Bruce!
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You're welcome.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|