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
|
|
|
|
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:
|
|
|
|
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
|
|
|
|
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:
|
|
|
|
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.
|
|
|
|
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)
|
|
|
|
|
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
|
|
|
|
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:
|
|
|
|
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.