Sign in
|
Join
|
Help
in
Advanced Coding Techniques (forum)
Special Interest Groups (group)
(Entire Site)
Search
Home
Blogs
Discussions
Images
Files
External News
Equis International Online Com...
»
Special Interest Groups
»
Advanced Coding Techniques
»
Re: How to find the highest price in 1 year ?
How to find the highest price in 1 year ?
Last post 03-30-2008, 21:20 by
johnl
. 2 replies.
Sort Posts:
Oldest to newest
Newest to oldest
Previous
Next
03-03-2008, 2:38
26616
trinhnova
Joined on 07-26-2007
Posts 3
How to find the highest price in 1 year ?
How to find the highest price in 1 year ?
I used the max syntax but it couldnt ? who can help me ?
Thank you !
Post Points: 20
Report abuse
03-03-2008, 18:26
26620
in reply to
26616
Richard Dale
Joined on 04-06-2006
Premium Data
Posts 62
Re: How to find the highest price in 1 year ?
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.
www.premiumdata.net
Post Points: 20
Report abuse
03-30-2008, 21:20
26800
in reply to
26620
johnl
Joined on 11-08-2005
Posts 184
Re: How to find the highest price in 1 year ?
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).
Post Points: 5
Report abuse
Copyright © 2008 Equis International, a Reuters company. All rights reserved.
Community Dedication
|
Membership Policy
|
Community Rules
|
Privacy
|
About