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

Notification

Icon
Error

Options
Go to last post Go to first unread
buddy  
#1 Posted : Sunday, December 4, 2005 2:01:10 PM(UTC)
buddy

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 10/6/2005(UTC)
Posts: 18

Hi All: Many elite members have posted works on automatic trendlines using peak and trough function. I just wonder how can we have a trendline that can be backtested? Any comment or suggestion? TIA! :)
Jose  
#2 Posted : Sunday, December 4, 2005 4:44:25 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)
Try these two trendline indicators from MetaStockTools.com - neither of them use any ZigZag-based hindsight functions: 2-point plot LinReg Trendline v4 jose '-)
sportrider  
#3 Posted : Sunday, December 4, 2005 8:41:17 PM(UTC)
sportrider

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 10/12/2005(UTC)
Posts: 141
Location: Brooklyn,NY

Hi Jose, I tried your linear reg. trendline indicator I think there are two on the page.Do you have to copy one or the other? Thanks Ralph
Jose  
#4 Posted : Sunday, December 4, 2005 9:39:33 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)
The LinReg Trendline v4 indicator code contains both "Linear Regression Trendline & Channels" and "Linear Regression Trendline & Bands" indicators. You can use either or both indicators - the actual Linear Regression Trendline plot output is the same for both. jose '-)
buddy  
#5 Posted : Monday, December 5, 2005 12:03:57 AM(UTC)
buddy

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 10/6/2005(UTC)
Posts: 18

Hi Jose: Your codes work wonderful! But, how can I backtested the Trendline on historical events? Thanx!
Jose  
#6 Posted : Monday, December 5, 2005 2:28:27 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)
Buddy, I don't understand your question - which historical events do you want to backtest? jose '-)
buddy  
#7 Posted : Tuesday, December 6, 2005 6:26:29 AM(UTC)
buddy

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 10/6/2005(UTC)
Posts: 18

Jose wrote:
Buddy, I don't understand your question - which historical events do you want to backtest? jose '-)
Hi Jose: What I mean is how can I backtest it using your two fine indicators for a series of historical data or built it into a trading system? Thanx in advance! :
Jose  
#8 Posted : Tuesday, December 6, 2005 1:56:45 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)
I guess you could try a backtest of price/trendline breakouts, but as with most single-indicator trading strategies, it probably isn't worth the time spent on backtesting. jose '-)
johnl  
#9 Posted : Tuesday, December 6, 2005 2:28:09 PM(UTC)
johnl

Rank: Advanced Member

Groups: Registered, Registered Users
Joined: 11/7/2005(UTC)
Posts: 602

Once you have a interesting indicator you have to ask yourself, how can I convert this to either a buy, sell or stop signal. The easiest way for me is to convert what I see happening on the chart using the "IF" statement into spikes: 1=buy....-1=sell Some thing like "If this happens then I do this" THen I use simulator with a stop to see if I can accumulae any money and the explorer to look at potental stocks to apply the trade to.
StorkBite  
#10 Posted : Tuesday, December 6, 2005 9:17:44 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)
You can find more info on constructing indicators in the Formula Primer. It's a free d/l here on the forum. Also, you could d/l the documentation on the forumdll and look at the latch function if you want something with built-in power. If you still get stuck, just post your formula snippet here and we can help you fine tune it.
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.