Rank: Newbie
Groups: Registered, Registered Users Joined: 7/26/2007(UTC) Posts: 3
|
How to find the highest price in 1 year ?
I used the max syntax but it couldnt ? who can help me ?
Thank you !
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 4/5/2006(UTC) Posts: 129 Location: Norgate Data
|
Have a look at the function HHV - that should do what you want.
Note also that MetaStock works on trading days aka bars. There are roughly 250 bars in a year and this varies according to holidays etc.
Cheers, Richard.
|
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users Joined: 11/7/2005(UTC) Posts: 602
|
For a specific year you might try: a1:=If(Year()=2006 AND C>PREV,C,PREV); a2:=LastValue(a1); a2 Ugly but it works (I think).
|
|
|
|
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.