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

Notification

Icon
Error

Options
Go to last post Go to first unread
fiorenzo  
#1 Posted : Tuesday, December 13, 2005 2:33:00 PM(UTC)
fiorenzo

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 2/21/2005(UTC)
Posts: 44
Location: Genoa (Italy)

Thanks: 2 times
Was thanked: 3 time(s) in 3 post(s)
Hello everyone, Most of us assume that a trendline has more value if it touches more than 2 points, at least 3. Does anyone have a formula to spot out such a TL? Thank you v.much, it's becoming a true obsession :stretch: I want to give my small contribution to anyone stuck on how to spot out a 2 touchpoints TL by writing the below, found on the web: :boire: { Trend-lines } pv:= Input("VeryLong=4,Long=3,Med=2,Short=1",1,4,3); pp:= LastValue(If(pv=4,4,If(pv=3,2,If(pv=2,1,0.5)))); r0:= If(MP()>=Ref(MP(),-1),ATR(1),0); r1:= Log(If(r0>0,ATR(1),HIGH)/HIGH); r2:= Cum(r1)/Max(1,Cum(If(r0>0,1,0))); r3:= LastValue(100*Exp(LastValue(r2)))*pp; r4:= LastValue(PeakBars(2,H,r3))-LastValue(PeakBars(1,H,r3)); r5:= (LastValue(Peak(1,H,r3))-LastValue(Peak(2, H,r3)))/r4; {slope} r6:= LastValue(Peak(2, H,r3))+(r5*(Cum(1)-LastValue(Cum(1)- PeakBars(2,H,r3)))); r7:= If(Cum(1) <LastValue(Cum(1)-PeakBars(2,H,r3)),BarsSince(Cum(1)>=LastValue(Cum(1)-PeakBars( 2,H,r3))),r6); s0:= If(MP()<=Ref(MP(),-1),ATR(1),0); s1:= Log(If(s0>0,ATR(1),LOW)/LOW); s2:= Cum(s1)/Max(1,Cum(If(s0>0,1,0))); s3:= LastValue(100*Exp(LastValue(s2)))*pp; s4:= LastValue(TroughBars(2,L,s3))-LastValue(TroughBars(1,L,s3)); s5:= (LastValue(Trough(1,L,s3))-LastValue(Trough(2,L,s3)))/s4; {slope} s6:= LastValue(Trough(2,L,s3))+(s5*(Cum(1)-LastValue(Cum(1)-TroughBars(2,L,s3)))); s7:= If(Cum(1)<LastValue(Cum(1)-TroughBars(2,L,s3)),BarsSince(Cum(1)>=LastValue(Cum(1 )-TroughBars(2, L,s3))),s6); r7;s7;
johnl  
#2 Posted : Tuesday, December 13, 2005 3:05:12 PM(UTC)
johnl

Rank: Advanced Member

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

With just one line, you could count how many times price drops to within some % of the trendline, if over 2 you know if you have a good one, then look at breakouts or buying opportunities. May want to see what happens to volume around the trendline. I will see if I can modify yours to establish a support line, find the previous high using zigzag from the first trendline point, establish a upper channel line and see if I can quantify something that I can "explorer" upper channel breakouts with instead of going through each chart manually.
StorkBite  
#3 Posted : Wednesday, December 14, 2005 5:05:40 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)
Please see more of this topic here: http://forum.equis.com/viewtopic.php?t=2985
fiorenzo  
#4 Posted : Thursday, December 15, 2005 9:13:19 AM(UTC)
fiorenzo

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 2/21/2005(UTC)
Posts: 44
Location: Genoa (Italy)

Thanks: 2 times
Was thanked: 3 time(s) in 3 post(s)
T h a n k Y o u !!! :thumbup: Have you tried it by any chance? I definitely will and shall post my (humble) comments on it Cheers.
Jose  
#5 Posted : Thursday, December 15, 2005 11:28:26 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)
I've tried the Trend Toolbox. As a visual tool, I think it is the best kind of this type that I've seen for MetaStock. This is not to say that it may not be further developed - the programmer (Umit) listens to his clients, and is very good at incorporating useful suggestions into his products. jose '-)
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.