Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
Registered User Joined: 10/7/2004 Posts: 41
|
scan todays lmr (8) higher than yesterdays lmr (8) where lmr is below bottom bolinger band.... scan todays lmr(8) lower than yesterdays lmr(8) where lmr is above top bolinger band thank you bob
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
The formula for the 8-Period Moving Linear Regression is:
AVGC8 + 3.5 * (3.5 * C + 2.5 * C1 + 1.5 * C2 + .5 * C3 - .5 * C4 - 1.5 * C5 - 2.5 * C6 - 3.5 * C7) / 42
The formulas for your requests would depend on your specific Bollinger Band settings. You may wish to review the following:
Using Linear Regression vs Classical Peaks/Valleys for Divergence Analysis
Modelling Bollinger Bands (& Standard Deviation) in a TC PCF
How to create a Personal Criteria Forumula (PCF)
PCF Formula Descriptions
Handy PCF example formulas to help you learn the syntax of PCFs!
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
QUOTE (xalyx) Scan Todays LMR(8) higher than yesterdays LMR(8) where LMR is below bottiom bollinger band(period(10) and (width (10).
Please try the following:
AVGC8 + 3.5 * (3.5 * C + 2.5 * C1 + 1.5 * C2 + .5 * C3 - .5 * C4 - 1.5 * C5 - 2.5 * C6 - 3.5 * C7) / 42 > AVGC8.1 + 3.5 * (3.5 * C1 + 2.5 * C2 + 1.5 * C3 + .5 * C4 - .5 * C5 - 1.5 * C6 - 2.5 * C7 - 3.5 * C8) / 42 AND AVGC8 + 3.5 * (3.5 * C + 2.5 * C1 + 1.5 * C2 + .5 * C3 - .5 * C4 - 1.5 * C5 - 2.5 * C6 - 3.5 * C7) / 42 < AVGC10 - 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) / 9)
QUOTE (xalyx) Scan Todays LMR (8) lower than yesterdays LMR(8) where LMR is above top bollinger band (period (10) and (width (10)).
Please try the following:
AVGC8 + 3.5 * (3.5 * C + 2.5 * C1 + 1.5 * C2 + .5 * C3 - .5 * C4 - 1.5 * C5 - 2.5 * C6 - 3.5 * C7) / 42 < AVGC8.1 + 3.5 * (3.5 * C1 + 2.5 * C2 + 1.5 * C3 + .5 * C4 - .5 * C5 - 1.5 * C6 - 2.5 * C7 - 3.5 * C8) / 42 AND AVGC8 + 3.5 * (3.5 * C + 2.5 * C1 + 1.5 * C2 + .5 * C3 - .5 * C4 - 1.5 * C5 - 2.5 * C6 - 3.5 * C7) / 42 > AVGC10 + 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) / 9)
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 10/7/2004 Posts: 28
|
Bruce,
What is the derivation of the number "42" in this formula. In other words, if I want to write a formula for a different length of time, I think I can figure out the rest of it, but what does the "42" represent?
AVGC8 + 3.5 * (3.5 * C + 2.5 * C1 + 1.5 * C2 + .5 * C3 - .5 * C4 - 1.5 * C5 - 2.5 * C6 - 3.5 * C7) / 42
tedk
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
tedk,
Bustermu covers this in some detail in his Tuesday, April 04, 2006 12:12:34 PM ET post in Using Linear Regression vs Classical Peaks/Valleys for Divergence Analysis. I just add up the sums of the squares of the factors:
3.5 ^ 2 + 2.5 ^ 2 + 1.5 ^ 2 + .5 ^ 2 + (- .5) ^ 2 + (- 1.5) ^ 2 + (- 2.5) ^ 2 + (- 3.5) ^ 2 = 42
The method outlined by bustermu is shorter and more efficient.
P * (P ^ 2 - 1) / 12 = 8 * (8 ^ 2 - 1) / 12 = 42
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Guest-1 |