logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Mr Travis  
#1 Posted : Sunday, April 19, 2009 9:25:20 PM(UTC)
Mr Travis

Rank: Newbie

Groups: Registered, Registered Users
Joined: 3/26/2009(UTC)
Posts: 7

can any one in this forum tell me the differences between these 2 indicators?

also I have had a chance to visit Jose Silva web page indicator formula for linear regression slope and linear regression. is that the standard function ( the same as metastock equis )? if they are not the same can someone show me the basic code for these indicators?

I just wish to construct them by my self

Many thanks

Dave

wabbit  
#2 Posted : Monday, April 20, 2009 6:47:37 AM(UTC)
wabbit

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 10/28/2004(UTC)
Posts: 3,111
Location: Perth, Western Australia

Was thanked: 16 time(s) in 16 post(s)
The differences between the Linear Regression Indicator and the Linear Regression Slope are explained in the MS Users Manual.

Jose's work does not reproduce the MS built-in function exactly but it's pretty close. He explains a likely source of error in the comments for his code. IMHO, I don't think the implementation of the least-squares-fit in MS is exactly correct, so I prefer to use my own implementation (on the few times I use this indicator).

If you want to construct your own version, start by finding the definition of least-squares-regression or whatever regression method you want to employ and start building your code around that algorithm. Wolfram's is a great place to start : http://mathworld.wolfram.com/LeastSquaresFitting.html
iitiim200  
#3 Posted : Tuesday, May 25, 2010 8:42:51 AM(UTC)
iitiim200

Rank: Newbie

Groups: Registered, Registered Users, Subscribers
Joined: 5/20/2010(UTC)
Posts: 1

Wabbit,

Can you please share the code you have built for doing the linear regression?

Users browsing this topic
Guest (Hidden)
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.