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)
|
Highlights
Long
up:=H>=Ref(H,-1) AND L>=Ref(L,-1);
dn:=H<=Ref(H,-1) AND L<=Ref(L,-1);
x1:=If(BarsSince(up)<=BarsSince(dn),1,0);
A3:=100*(Mov(Mov((C-LLV(L,15)),3,E),3,E) /
Mov(Mov((HHV(H,15) - LLV(L,15)),3,E),3,E));
Buy:= (X1>Ref(X1,-1) AND A3>50);
Sell:= (X1<Ref(X1,-1) AND A3<50);
D:=If(BarsSince(Buy)<BarsSince(Sell),1,0);
D=1
Short
up:=H>=Ref(H,-1) AND L>=Ref(L,-1);
dn:=H<=Ref(H,-1) AND L<=Ref(L,-1);
x1:=If(BarsSince(up)<=BarsSince(dn),1,0);
A3:=100*(Mov(Mov((C-LLV(L,15)),3,E),3,E) /
Mov(Mov((HHV(H,15) - LLV(L,15)),3,E),3,E));
Buy:= (X1>Ref(X1,-1) AND A3>50);
Sell:= (X1<Ref(X1,-1) AND A3<50);
D:=If(BarsSince(Buy)<BarsSince(Sell),1,0);
D=0
Symbols
Long Entry
up:=H>=Ref(H,-1) AND L>=Ref(L,-1);
dn:=H<=Ref(H,-1) AND L<=Ref(L,-1);
x1:=If(BarsSince(up)<=BarsSince(dn),1,0);
A3:=100*(Mov(Mov((C-LLV(L,15)),3,E),3,E) /
Mov(Mov((HHV(H,15) - LLV(L,15)),3,E),3,E));
Buy:= (X1>Ref(X1,-1) AND A3>50);
Sell:= (X1<Ref(X1,-1) AND A3<50);
D:=If(BarsSince(Buy)<BarsSince(Sell),1,0);
D>Ref(D,-1)
Short Entry
up:=H>=Ref(H,-1) AND L>=Ref(L,-1);
dn:=H<=Ref(H,-1) AND L<=Ref(L,-1);
x1:=If(BarsSince(up)<=BarsSince(dn),1,0);
A3:=100*(Mov(Mov((C-LLV(L,15)),3,E),3,E) /
Mov(Mov((HHV(H,15) - LLV(L,15)),3,E),3,E));
Buy:= (X1>Ref(X1,-1) AND A3>50);
Sell:= (X1<Ref(X1,-1) AND A3<50);
D:=If(BarsSince(Buy)<BarsSince(Sell),1,0);
D<Ref(D,-1)
|