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)
|
indexarb,
The kase dev stop is more of what you are looking for. it gives you 6 levels of stops. For more info you can read Trading With the Odds by Cynthia Kase
[code]
Per1:=Input("max length",10,100,30);
RWH:=(H-Ref(L,-Per1))/(ATR(Per1)*Sqrt(Per1));
RWL:=(Ref(H,-Per1)-L)/(ATR(Per1)*Sqrt(Per1));
Pk:=Mov((RWH-RWL),3,W);
{you can change this if your indicator is long}
AVTR:=Mov(HHV(H,2) - LLV(L,2),20, S);
SD:=Stdev(HHV(H,2) - LLV(L,2),20);
Val6:=If(Pk>0,HHV(H-AVTR-(4*SD),20),LLV(L+AVTR+(4*SD),20));
Val5:=If(Pk>0,HHV(H-AVTR-(3*SD),20),LLV(L+AVTR+(3*SD),20));
Val4:=If(Pk>0,HHV(H-AVTR-(2*SD),20),LLV(L+AVTR+(2*SD),20));
Val3:=If(Pk>0,HHV(H-AVTR-SD,20),LLV(L+AVTR+SD,20));
Val2:=If(Pk>0,HHV(H-AVTR,20),LLV(L+AVTR,20));
Val1:=If(Pk>0,HHV(H-AVTR+SD,20),LLV(L+AVTR-SD,20));
Val6;Val5;Val4;Val3;Val2;Val1;
|