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
|
|
|
|
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.
|
|
|
|
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
|
|
|
|
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
|
|
|
|
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
|
|
|
|
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.