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!
:)
|
|
|
|
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)
|
|
|
|
|
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
|
|
|
|
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 '-)
|
|
|
|
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!
|
|
|
|
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 '-)
|
|
|
|
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!
:
|
|
|
|
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 '-)
|
|
|
|
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.
|
|
|
|
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.