Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers Joined: 10/29/2004(UTC) Posts: 1,394 Location: Glastonbury, CT
Was thanked: 2 time(s) in 2 post(s)
|
Bull:=Mov(C,3,E)>Mov(C,13,E) AND Mov(C,13,E)>Mov(C,39,E); Bear:= Mov(C,3,E)<Mov(C,13,E) AND Mov(C,13,E)<Mov(C,39,E); A:=If(bull,1,If(Bear,-1,0);
For the long position
A=1 and ref(a,-1)<>1
For the short position
A=-1 and Ref(A,-1)<>-1
For the Long Exit position
A<>1 and Ref(A,-1)=1
For the Shortexit position
A<>-1 and Ref(A,-1)=-1
|