Rank: Newbie
Groups: Registered, Registered Users, Subscribers Joined: 5/27/2007(UTC) Posts: 6
|
I'm testing the Zweig 4% with Patrick's Latch on weekly data (HLC only) in version 7.2 show below. Although I have the tester set to trade on the CLOSE, it seems to be trading on the LOW price. Any thoughts on how to force this to trade on the CLOSE? Thanks in advance.
ENTER LONG : a:=If(PREV=1,If(CLOSE<HighestSince(1,PREV<>1,CLOSE)*.96,-1,PREV),If(PREV=-1,If(CLOSE>LowestSince(1,PREV<>-1,CLOSE)*1.04,+1,PREV),If(PREV=0,If(CLOSE>Lowest(CLOSE)*1.04,+1,If(CLOSE<Highest(CLOSE)*.96,-1,PREV)),PREV))); D:=If(A=1,1,0); LE:=D=1; SE:=D=0; LX:=0; SX:=0; B:= ExtFml("ForumDll.Latch",LE,LX,SE,SX); B = 1 AND Ref(B,-1) <> 1
EXIT LONG : a:=If(PREV=1,If(CLOSE<HighestSince(1,PREV<>1,CLOSE)*.96,-1,PREV),If(PREV=-1,If(CLOSE>LowestSince(1,PREV<>-1,CLOSE)*1.04,+1,PREV),If(PREV=0,If(CLOSE>Lowest(CLOSE)*1.04,+1,If(CLOSE<Highest(CLOSE)*.96,-1,PREV)),PREV))); D:=If(A=1,1,0); LE:=D=1; SE:=D=0; LX:=0; SX:=0; B:= ExtFml("ForumDll.Latch",LE,LX,SE,SX); B = 0 AND Ref(B,-1) = 1
|