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 : Thursday, May 16, 2013 11:46:47 AM(UTC)
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 : Thursday, May 16, 2013 2:14:34 PM(UTC)
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 : Thursday, May 16, 2013 2:17:47 PM(UTC)
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 : Friday, May 17, 2013 12:52:50 AM(UTC)
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 : Sunday, May 19, 2013 9:44:45 AM(UTC)
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 : Sunday, May 19, 2013 1:56:44 PM(UTC)
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 : Monday, May 20, 2013 3:23:26 AM(UTC)
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/11/2022 6:28:18 AM(UTC)
how to find highest high value of high in the range (from- to) (Formula Assistance)
by atitats 12/8/2014 9:11:40 AM(UTC)
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.