Rank: Advanced Member
Groups: Registered, Registered Users, Unverified Users Joined: 1/13/2005(UTC) Posts: 87 Location: perth australia
|
Below is a formula previously posted by Patrick.
Bsetup:=sum(C < Ref(C,-4),4)=4 AND
Ref(C,-4) >= Ref(C,-8);
BCD:=HighestSince(1,Peak(1,Bsetup,.001),(C<=Ref(L,-2) AND V > 0) + PREV);
BUY:=BCD-ValueWhen(1,Bsetup,BCD)=6 AND Ref(BCD-ValueWhen(1,Bsetup,BCD)=6,-1)<>1;
BUY
I am trying to remove the PREV function to speed up its execution. Has anybody got any ideas?
Cheers
Norman
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users Joined: 1/19/2005(UTC) Posts: 1,065 Location: Koh Pha-Ngan, Earth
Was thanked: 2 time(s) in 2 post(s)
|
I don't have MetaStock with me, but I think this should work:
[code:1:55ace94b01]Bsetup:=sum(C<Ref(C,-4),4)=4 AND Ref(C,-4)>=Ref(C,-8);
BCD:=
HighestSince(1,Peak(1,Bsetup,.001),Cum(C<=Ref(L,-2) AND V>0));
BUY:=BCD-ValueWhen(1,Bsetup,BCD)=6
AND Ref(BCD-ValueWhen(1,Bsetup,BCD)=6,-1)<>1;
BUY
[/code:1:55ace94b01]
jose '-)
http://metastocktools.com/#metastock
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Unverified Users Joined: 1/13/2005(UTC) Posts: 87 Location: perth australia
|
Hi Jose,
That was simple.Thanks for that. Also I guess buying your ADT6 kit is probably not on the cards until you get back from your holidays?
Cheers
Norman
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users Joined: 1/19/2005(UTC) Posts: 1,065 Location: Koh Pha-Ngan, Earth
Was thanked: 2 time(s) in 2 post(s)
|
Thanks for the plug, Norman... :oops:
Unfortunately I don't have physical access to any of my trading tools whilst I'm away. I thought I that would help me keep away from PCs and the Net, but it hasn't really worked out that way. :)
Jose '-)
http://metastocktools.com/ADT/ADT-06.htm
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Unverified Users Joined: 1/13/2005(UTC) Posts: 87 Location: perth australia
|
No problems Jose
Cheers
Norman
|
|
|
|
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.