Registered User Joined: 11/1/2010 Posts: 28
|
Bruce L wrote a script I used to find stocks on the lower and another for the upper Bollinger bands.
Here is a copy of one of the scripts. C > AVGC15 + 1.5 * 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 - 15 * AVGC15 ^ 2) / 15) AND C >= 15 AND ( AVGV5 > 200000)
I need another script that will search for stocks that are above and another script for below Bollinger bands (BB) with the following specification:
BB with period = 10 and SD (standard deviation) = 0.8.
I also need to be above the Forward Weighted moving average with period 5 in the same script for above BB.
I also need to be below the Forward Weighted moving average with period 5 in the same script for below BB.
Thanks,
Fred
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
Please try the following for above:
C > AVGC10 + .8 * SQR(ABS(C ^ 2 + C1 ^ 2 + C2 ^ 2 + C3 ^ 2 + C4 ^ 2 + C5 ^ 2 + C6 ^ 2 + C7 ^ 2 + C8 ^ 2 + C9 ^ 2 - 10 * AVGC10 ^ 2) / 10) AND 10 * C > 4 * C1 + 3 * C2 + 2 * C3 + C4
And the following for below:
C < AVGC10 - .8 * SQR(ABS(C ^ 2 + C1 ^ 2 + C2 ^ 2 + C3 ^ 2 + C4 ^ 2 + C5 ^ 2 + C6 ^ 2 + C7 ^ 2 + C8 ^ 2 + C9 ^ 2 - 10 * AVGC10 ^ 2) / 10) AND 10 * C < 4 * C1 + 3 * C2 + 2 * C3 + C4
Modelling Bollinger Bands (& Standard Deviation) in a TC PCF
-Bruce Personal Criteria Formulas TC2000 Support Articles
|