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 |

moving linear regression Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
tedk
Posted : Saturday, August 18, 2007 6:52:10 PM
Registered User
Joined: 10/7/2004
Posts: 28
what is the PCF for moving linear regression? i want to write a formula with one lmr crossing another. thanks.
tedk
diceman
Posted : Saturday, August 18, 2007 7:32:48 PM
Registered User
Joined: 1/28/2005
Posts: 6,049
You would need to supply lengths.

For example. This would be a 20 bar LRMA

AVGC20+9.5*((9.5*C+ 8.5*C1+ 7.5*C2 +6.5*C3 +5.5*C4 +4.5*C5 +3.5*C6 +2.5*C7 +1.5*C8 +0.5*C9 -0.5*C10 -1.5*C11 -2.5*C12 -3.5*C13 -4.5*C14 -5.5*C15 -6.5*C16 -7.5*C17 -8.5*C18 -9.5*C19)/665)


Thanks
diceman



tedk
Posted : Sunday, March 23, 2008 12:04:24 AM
Registered User
Joined: 10/7/2004
Posts: 28
diceman, 
thanks for replying.
how is the "665" in your formula calculated?
tedk
diceman
Posted : Sunday, March 23, 2008 9:30:59 AM
Registered User
Joined: 1/28/2005
Posts: 6,049
 
It is the sum of the values used in the equation
squared:
 
 
 
 

9.5

squared equals

90.25

8.5

squared equals

72.25

7.5

squared equals

56.25

6.5

squared equals

42.25

5.5

squared equals

30.25

4.5

squared equals

20.25

3.5

squared equals

12.25

2.5

squared equals

6.25

1.5

squared equals

2.25

0.5

squared equals

0.25

-0.5

squared equals

0.25

-1.5

squared equals

2.25

-2.5

squared equals

6.25

-3.5

squared equals

12.25

-4.5

squared equals

20.25

-5.5

squared equals

30.25

-6.5

squared equals

42.25

-7.5

squared equals

56.25

-8.5

squared equals

72.25

-9.5

squared equals

90.25

     
 

sum equals

665

 
 
 
Thanks
diceman
 
 
 
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.