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

Notification

Icon
Error

Options
Go to last post Go to first unread
xrousaios  
#1 Posted : 12 years ago
xrousaios

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

haddison  
#2 Posted : 12 years ago
haddison

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.
mstt  
#3 Posted : 12 years ago
mstt

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
xrousaios  
#4 Posted : 12 years ago
xrousaios

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.

xrousaios  
#5 Posted : 12 years ago
xrousaios

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.

mstt  
#6 Posted : 12 years ago
mstt

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

xrousaios  
#7 Posted : 12 years ago
xrousaios

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)
Similar Topics
Highest High value & Lowest Low Value (Formula Assistance)
by kaushik1 3 years ago
how to find highest high value of high in the range (from- to) (Formula Assistance)
by atitats 10 years ago
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.

information You have 1 unread message(s) in your Inbox.