Rank: Member
Groups: Registered, Registered Users, Unverified Users Joined: 1/9/2007(UTC) Posts: 16
|
Hi,
I want to create an indictator to tell me if the current price is the highest high since x periods ago. For instane, todays price is the highest high since 21 periods, or 52 periods etc.
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 7/25/2005(UTC) Posts: 1,042
Was thanked: 57 time(s) in 54 post(s)
|
Hi Dataman
Start the development of your indicator with something like this..
HHV(C,21)=C AND Sum(HHV(C,21)=C,21)=1;
This expression checks that the highest hich value of C over the last 21 periods is equal to the current C and that C has only been equal to HHV(C,21) once over the last 21 periods.
Roy
|
|
|
|
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.