Rank: Member
Groups: Registered, Registered Users Joined: 11/15/2008(UTC) Posts: 17
|
Hey,
I've run into this problem a couple of times and was wondering if anybody knew of a solution. I'm trying to count the number of times that the HHV(H,X) has been tested - that is how many times has the high over the last X periods equalled the HHV of the high over that same period.
I originally tried a sum(HHV(H,X)=H,X). This isn't correct. I understand why, but don't know how to re-write it so that it works correctly. Basically, I need to define the HHV value as a constant and then get the sum function to use the constant value and not one that's based on the bar that the sum function is currently testing.
Any ideas?
Many Thanks,
AMSH
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Unverified Users Joined: 9/13/2004(UTC) Posts: 673 Location: Salt Lake City, UT
|
The period value X should be a constant. I may not be quite understanding what you're looking for, but your formula seems correct to me.
|
|
|
|
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.