logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
trinhnova  
#1 Posted : Monday, March 3, 2008 2:38:56 AM(UTC)
trinhnova

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 !
Richard Dale  
#2 Posted : Monday, March 3, 2008 6:26:31 PM(UTC)
Richard Dale

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.


Cheers, Richard Norgate Data
johnl  
#3 Posted : Sunday, March 30, 2008 9:20:35 PM(UTC)
johnl

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.