Rank: Member
Groups: Registered, Registered Users, Unverified Users Joined: 1/30/2012(UTC) Posts: 22 Location: Athens, Greece
|
Hi
Actualy the HHV function returns the highest value in the DATA ARRAY over the preceding PERIODS.
What about if I am looking for the highest value in the DATA ARRAY over the following PERIODS?
Thanks in advance
George
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 3/6/2010(UTC) Posts: 113 Location: London
|
This is the sort of thing that Metastock wants to avoid - looking into the future.
You could try the Forum.HHV. Be very careful not to use this when testing a trading system.
|
|
|
|
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 George
If I understand you correctly here's how required result could be generated. But why would you want to do this?
{Past & Future HHV} N:=Input("HHV Periods",2,99,10); HHV(H,N); Ref(HHV(H,N),N-1);
Roy
|
|
|
|
Rank: Member
Groups: Registered, Registered Users, Unverified Users Joined: 1/30/2012(UTC) Posts: 22 Location: Athens, Greece
|
Thanks a lot for your help.
I will try to explain what I am trying to do.
Some times I detect some patterns in the charts which are usually followed by certain results.
All I want to do is to examine if my observation is correct.
|
|
|
|
Rank: Member
Groups: Registered, Registered Users, Unverified Users Joined: 1/30/2012(UTC) Posts: 22 Location: Athens, Greece
|
Just a small detail, regarding my previous message.
When I am looking for the HHV, I do not want to include the current date. How can I do this?
My idea is to compare the current price with the result returned by HHV call.
|
|
|
|
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 George
HHV() can be applied to older data by using the Ref() function with an appropriate offset value, as in Ref(HHV(H,N),-1) for example.
Roy
|
|
|
|
Rank: Member
Groups: Registered, Registered Users, Unverified Users Joined: 1/30/2012(UTC) Posts: 22 Location: Athens, Greece
|
Just now I realized how the Ref function works in conjuction with other procedures. Realy I thank you again for your help
|
|
|
|
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.