Download software Tutorial videos
Subscription & data-feed pricing Class schedule


New account application Trading resources
Margin rates Stock & option commissions

Attention: Discussion forums are read-only for extended maintenance until further notice.
Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

xalyx 812 Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
xalyx
Posted : Saturday, January 26, 2008 11:30:45 AM
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
Bruce_L
Posted : Monday, January 28, 2008 8:55:49 AM


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
Bruce_L
Posted : Monday, January 28, 2008 9:49:02 AM


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
tedk
Posted : Tuesday, March 11, 2008 9:23:11 PM
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
Bruce_L
Posted : Wednesday, March 12, 2008 1:40:04 AM


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
Users browsing this topic
Guest-1

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.