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

Notification

Icon
Error

Options
Go to last post Go to first unread
patoche  
#1 Posted : Tuesday, September 20, 2005 7:44:26 AM(UTC)
patoche

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 2/19/2005(UTC)
Posts: 17

Hello, I don't know to write an exploration with: Col A: Linear Regression Trendline between the period ref(C,-10) and ref(C,-5) AND Col B: Linear Regression Trendline between the period ref(C,-5) and C What i want to determinate is the security will make a figure like a "V". Thanks for your help Patrick :?
StorkBite  
#2 Posted : Wednesday, September 21, 2005 3:26:16 PM(UTC)
StorkBite

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 3/19/2005(UTC)
Posts: 2,995

Was thanked: 14 time(s) in 10 post(s)
Hey Patoche- What about something like this? If you can modify it to meet your needs please post back your final code. [code:1:22bc698e3d]ColA [LR10] LR:=Highest(LinearReg(C,1)); LR5:=Ref(LR,-5); LR10:=Ref(LR,-10); LR10-LR5 ColB [LR10] LR:=Highest(LinearReg(C,1)); LR5:=Ref(LR,-5); LR10:=Ref(LR,-10); LR5-LR[/code:1:22bc698e3d]
Jose  
#3 Posted : Wednesday, September 21, 2005 3:41:24 PM(UTC)
Jose

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 1/19/2005(UTC)
Posts: 1,065
Location: Koh Pha-Ngan, Earth

Was thanked: 2 time(s) in 2 post(s)
Or what about using the ZigZag() function? jose '-)
patoche  
#4 Posted : Thursday, September 22, 2005 7:43:10 AM(UTC)
patoche

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 2/19/2005(UTC)
Posts: 17

The code is good, but how to have a Linear regression trendline, and not a curve ? Jose speaks about a ZigZag function, but the function moves with a percentage pre-defined, and it is impossible with a feedback. :shock: Pat
Jose  
#5 Posted : Thursday, September 22, 2005 11:13:03 AM(UTC)
Jose

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 1/19/2005(UTC)
Posts: 1,065
Location: Koh Pha-Ngan, Earth

Was thanked: 2 time(s) in 2 post(s)
Linear Regression Trendline MS code, with Standard Deviation/Error Channels/Bands, date-adjustable: http://www.metastocktools.com/#metastock "Indicators" section, "LinReg Trendline v4" link. jose '-)
patoche  
#6 Posted : Thursday, September 22, 2005 3:58:41 PM(UTC)
patoche

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 2/19/2005(UTC)
Posts: 17

Jose, Thanks , you are the best. Your Web site is great. Pat. :D
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.