Rank: Newbie
Groups: Registered, Registered Users Joined: 9/28/2006(UTC) Posts: 6
|
Hi everyone!
I'm hoping someone can help me out. I'm writing some formulas and I'm a little stuck in one area of what I want to identify a swing high and I'm just having a difficult time with a programatic approach, so I thought I'd ask.
I want to identify a swing high -- a high where there are at least 5 lower highs than the swing high bar high and at least 5 lower lows that the swing high bar low on either side of the swing high bar. The tricky part is they do not have to be consecutive?
Any ideas?
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers, Unverified Users Joined: 10/28/2004(UTC) Posts: 3,111 Location: Perth, Western Australia
Was thanked: 16 time(s) in 16 post(s)
|
Optimus wrote:I want to identify a swing high -- a high where there are at least 5 lower highs than the swing high bar high and at least 5 lower lows that the swing high bar low on either side of the swing high bar. The tricky part is they do not have to be consecutive? I think you will find the forum.dll variable sum function will help you out here; or you could use a count and reset system which is a little more complicated, but not impossible. Hope this helps. wabbit [:D]
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users Joined: 9/28/2006(UTC) Posts: 6
|
As always wabbit you are an assett to the forum.
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users Joined: 9/28/2006(UTC) Posts: 6
|
Wabbit,
I thought I'd ask a follow up question, as I'm trying to wrap my head around this one. How would you go about creating this in the Forum DLL. I just don't know what function would work best.
|
|
|
|
Rank: Newbie
Groups: Registered, Registered Users Joined: 8/19/2006(UTC) Posts: 1
|
I think you should use the "highest since function" which allows your prviouse high expression and is also the "nth "expression of this , in your case 5 , i.e highestsince (nth, expression ,data array) then reference this formula before reverse (lowset since). IF YOU REQUIRE ANY FURTHER ASSISTANCE CONTACT ME AT - http://www.tradingtraders.co.uk/
|
|
|
|
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.