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

Notification

Icon
Error

Options
Go to last post Go to first unread
RUAGOODP  
#1 Posted : Thursday, June 9, 2005 1:39:51 AM(UTC)
RUAGOODP

Rank: Advanced Member

Groups: Registered, Registered Users, Unverified Users
Joined: 1/13/2005(UTC)
Posts: 87
Location: perth australia

Hi all, I have a set up and am trying to develop an entry based on the setup. My set up is: Bsetup:=Sum(C < Ref(C,-4),5)=5 AND Ref(C,-5) >= Ref(C,-9); What I am trying to do is to enter when a close following this setup closes above the high of this setup. Any ideas on how to construct this? Cheers Norman
Patrick  
#2 Posted : Thursday, June 9, 2005 1:42:54 AM(UTC)
Patrick

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 9/8/2004(UTC)
Posts: 2,266

Was thanked: 1 time(s) in 1 post(s)
Try : Bsetup:=Sum(C < Ref(C,-4),5)=5 AND Ref(C,-5) >= Ref(C,-9); Cross(C,Valuewhen(1,Bsetup,H)) Patrick :mrgreen:
RUAGOODP  
#3 Posted : Thursday, June 9, 2005 1:52:40 AM(UTC)
RUAGOODP

Rank: Advanced Member

Groups: Registered, Registered Users, Unverified Users
Joined: 1/13/2005(UTC)
Posts: 87
Location: perth australia

Hi Patrick, Your formula only references the last bar of the setup and assumes it is the highest bar of the setup....I am trying to reference the highest bar in this setup and enter on a close above this high. Somehow I think this is not possible in metastock. Any other ideas> Norman
Patrick  
#4 Posted : Thursday, June 9, 2005 2:37:24 AM(UTC)
Patrick

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 9/8/2004(UTC)
Posts: 2,266

Was thanked: 1 time(s) in 1 post(s)
Bsetup:=Sum(C < Ref(C,-4),5)=5 AND Ref(C,-5) >= Ref(C,-9); Cross(C,Valuewhen(1,Bsetup,HHV(H,5))) Hope this works for you Patrick :mrgreen:
RUAGOODP  
#5 Posted : Thursday, June 9, 2005 2:44:31 AM(UTC)
RUAGOODP

Rank: Advanced Member

Groups: Registered, Registered Users, Unverified Users
Joined: 1/13/2005(UTC)
Posts: 87
Location: perth australia

%$#@! why did I not think of that :x Thanks very much Patrick.
Patrick  
#6 Posted : Thursday, June 9, 2005 2:49:06 AM(UTC)
Patrick

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 9/8/2004(UTC)
Posts: 2,266

Was thanked: 1 time(s) in 1 post(s)
:lol: You are welcome
RUAGOODP  
#7 Posted : Thursday, June 9, 2005 4:25:32 AM(UTC)
RUAGOODP

Rank: Advanced Member

Groups: Registered, Registered Users, Unverified Users
Joined: 1/13/2005(UTC)
Posts: 87
Location: perth australia

Hi Patrick, I noticed a problem with the formula. It signals every time the entry signal is satisfied ie Cross(C,ValueWhen(1,Bsetup,HHV(H,5))) However I only want it to signal after the setup not every time it crosses the high of the setup. So basically I only want one signal after each setup if the signal occurs. Hope you understand what I am trying to say Cheers Norman
Patrick  
#8 Posted : Thursday, June 9, 2005 4:43:12 AM(UTC)
Patrick

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 9/8/2004(UTC)
Posts: 2,266

Was thanked: 1 time(s) in 1 post(s)
Bsetup:=Sum(C < Ref(C,-4),5)=5 AND Ref(C,-5) >= Ref(C,-9); Signal:=Cross(C,Valuewhen(1,Bsetup,HHV(H,5))); Signal and barssince(ref(signal,-1))>barssince(ref(Bsetup,-1)) That should do it. Patrick :mrgreen:
RUAGOODP  
#9 Posted : Thursday, June 9, 2005 4:55:15 AM(UTC)
RUAGOODP

Rank: Advanced Member

Groups: Registered, Registered Users, Unverified Users
Joined: 1/13/2005(UTC)
Posts: 87
Location: perth australia

BEAUTY! Thanks heaps Cheers Norman oz_pdt_06
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.