Rank: Member
Groups: Registered, Registered Users Joined: 4/27/2005(UTC) Posts: 13
|
HI,
I try to create a symbol on expert. This symbol is to give symbol on the highest price of the past 250 bars.
I used HHV(c, 250) but the metstock give me symbols on every single bar. Very strange…..
Please help
oradba
|
|
|
|
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)
|
Not strange at all oradba!
You have asked MS if there has been a highest high value in the last 250 bars. For the first 250 bars of the chart this will be false but from then after you will notice a symbol very time there is a value for the HHV.
What you really mean to ask MS to do is to indicate when a NEW high high value occurs.
Try H=HHV(C,250) instead!
Hope this helps.
wabbit :D
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Unverified Users Joined: 10/28/2004(UTC) Posts: 121
|
Here's another way of writing this...
H>=Ref(HHV(H,250),-1)
|
|
|
|
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.