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

Notification

Icon
Error

Options
Go to last post Go to first unread
Renzo  
#1 Posted : Thursday, January 21, 2010 3:39:39 PM(UTC)
Renzo

Rank: Newbie

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

Hello I'm trying to create an Expert Advisor to identify all Short Term Highs and all Short Term Lows I'm also looking to create an Exploration that base on Short Term Highs and Short Term Lows formulas will help me identify Market Structure (Long or Short). Thanks in Advance for any help Renzo
johnl  
#2 Posted : Saturday, January 23, 2010 6:45:18 PM(UTC)
johnl

Rank: Advanced Member

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


I think you have to first define whatyou mean by short term high/low. Playing
around with zigzag might get you started.
Renzo  
#3 Posted : Saturday, January 23, 2010 8:47:51 PM(UTC)
Renzo

Rank: Newbie

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

Thanks johnl, You are right, I should define Short Term High/Low. By Short Term High in a Daily Chart for example I mean when the High of a day is higher than the High of the previous day and also higher than the High of the next day. By Short Term Low when the Low of a Day is Lower than the Low of the Previous day and Also Lower than the Low of the Next Day. I hope this will clarify what I'm looking for and that somebody will give me an idea on how to go about it. Thanks in Advance
johnl  
#4 Posted : Sunday, January 24, 2010 6:43:57 PM(UTC)
johnl

Rank: Advanced Member

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


Try this for the daily high:

a1:=(C<Ref(C,-1))*(Ref(C,-1)>Ref(C,-2));
a1
Renzo  
#5 Posted : Monday, January 25, 2010 8:26:12 AM(UTC)
Renzo

Rank: Newbie

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

Hi Johnl, Thank you very much for your help. The formula is a great start but I'm looking for the High so I changed the Close for the High and like this actually find the candle right after the Short Term High. Thanks Renzo
Renzo  
#6 Posted : Monday, January 25, 2010 9:02:42 AM(UTC)
Renzo

Rank: Newbie

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

For Those that are looking for the Short Term High this is the formula: a1:=(H>Ref(H,-1)) AND (H>Ref(H,+1)); a1 Of course I got it thanks to the help of Johnl Thanks
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.