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)
|
Download this dll from
http://www.ksr.sp.ru/msx/msxen.htm
you will also need the Adaptive trading Solutions Add-in
Highlights
Long
A30:=ExtFml("MSX_KSR.CER",C,30);
RWH:=(H-Ref(L,-30))/(A30*Sqrt(30));
RWL:=(Ref(H,-30)-L)/(A30*Sqrt(30));
Pk:=Mov((RWH-RWL),3,W);
A:=ExtFml("MSX_KSR.CER",C,5);
Val1.5:=If(Pk>0,HHV(H-1.5*A,10),LLV(L+1.5*A,10));
Loss:= ExtFml("tsaequis1.eodlso");
Win:= ExtFml("tsaequis1.eodwso");
LE:=C>Val1.5 and Win > Loss and SAR(.02,.2)<C;
SE:=C<Val1.5 and Win < Loss and SAR(.02,.2)>C;
LX:=C<Val1.5 or SAR(.02,.2)>C ;
SX:=C>Val1.5 or SAR(.02,.2)<C ;
B:=ExtFml("PowerPivots.SysEval",LE,LX,SE,SX,"!@#$#@!");
B>0
Short
A30:=ExtFml("MSX_KSR.CER",C,30);
RWH:=(H-Ref(L,-30))/(A30*Sqrt(30));
RWL:=(Ref(H,-30)-L)/(A30*Sqrt(30));
Pk:=Mov((RWH-RWL),3,W);
A:=ExtFml("MSX_KSR.CER",C,5);
Val1.5:=If(Pk>0,HHV(H-1.5*A,10),LLV(L+1.5*A,10));
Loss:= ExtFml("tsaequis1.eodlso");
Win:= ExtFml("tsaequis1.eodwso");
LE:=C>Val1.5 and Win > Loss and SAR(.02,.2)<C;
SE:=C<Val1.5 and Win < Loss and SAR(.02,.2)>C;
LX:=C<Val1.5 or SAR(.02,.2)>C ;
SX:=C>Val1.5 or SAR(.02,.2)<C ;
B:=ExtFml("PowerPivots.SysEval",LE,LX,SE,SX,"!@#$#@!");
B<0
Out
A30:=ExtFml("MSX_KSR.CER",C,30);
RWH:=(H-Ref(L,-30))/(A30*Sqrt(30));
RWL:=(Ref(H,-30)-L)/(A30*Sqrt(30));
Pk:=Mov((RWH-RWL),3,W);
A:=ExtFml("MSX_KSR.CER",C,5);
Val1.5:=If(Pk>0,HHV(H-1.5*A,10),LLV(L+1.5*A,10));
Loss:= ExtFml("tsaequis1.eodlso");
Win:= ExtFml("tsaequis1.eodwso");
LE:=C>Val1.5 and Win > Loss and SAR(.02,.2)<C;
SE:=C<Val1.5 and Win < Loss and SAR(.02,.2)>C;
LX:=C<Val1.5 or SAR(.02,.2)>C ;
SX:=C>Val1.5 or SAR(.02,.2)<C ;
B:=ExtFml("PowerPivots.SysEval",LE,LX,SE,SX,"!@#$#@!");
B=0
Symbols
Long entry
A30:=ExtFml("MSX_KSR.CER",C,30);
RWH:=(H-Ref(L,-30))/(A30*Sqrt(30));
RWL:=(Ref(H,-30)-L)/(A30*Sqrt(30));
Pk:=Mov((RWH-RWL),3,W);
A:=ExtFml("MSX_KSR.CER",C,5);
Val1.5:=If(Pk>0,HHV(H-1.5*A,10),LLV(L+1.5*A,10));
Loss:= ExtFml("tsaequis1.eodlso");
Win:= ExtFml("tsaequis1.eodwso");
LE:=C>Val1.5 and Win > Loss and SAR(.02,.2)<C;
SE:=C<Val1.5 and Win < Loss and SAR(.02,.2)>C;
LX:=C<Val1.5 or SAR(.02,.2)>C ;
SX:=C>Val1.5 or SAR(.02,.2)<C ;
B:=ExtFml("PowerPivots.SysEval",LE,LX,SE,SX,"!@#$#@!");
B>0 AND Ref(B,-1)<=0
Short entry
A30:=ExtFml("MSX_KSR.CER",C,30);
RWH:=(H-Ref(L,-30))/(A30*Sqrt(30));
RWL:=(Ref(H,-30)-L)/(A30*Sqrt(30));
Pk:=Mov((RWH-RWL),3,W);
A:=ExtFml("MSX_KSR.CER",C,5);
Val1.5:=If(Pk>0,HHV(H-1.5*A,10),LLV(L+1.5*A,10));
Loss:= ExtFml("tsaequis1.eodlso");
Win:= ExtFml("tsaequis1.eodwso");
LE:=C>Val1.5 and Win > Loss and SAR(.02,.2)<C;
SE:=C<Val1.5 and Win < Loss and SAR(.02,.2)>C;
LX:=C<Val1.5 or SAR(.02,.2)>C ;
SX:=C>Val1.5 or SAR(.02,.2)<C ;
B:=ExtFml("PowerPivots.SysEval",LE,LX,SE,SX,"!@#$#@!");
B<0 AND Ref(B,-1)>=0
Long exit
A30:=ExtFml("MSX_KSR.CER",C,30);
RWH:=(H-Ref(L,-30))/(A30*Sqrt(30));
RWL:=(Ref(H,-30)-L)/(A30*Sqrt(30));
Pk:=Mov((RWH-RWL),3,W);
A:=ExtFml("MSX_KSR.CER",C,5);
Val1.5:=If(Pk>0,HHV(H-1.5*A,10),LLV(L+1.5*A,10));
Loss:= ExtFml("tsaequis1.eodlso");
Win:= ExtFml("tsaequis1.eodwso");
LE:=C>Val1.5 and Win > Loss and SAR(.02,.2)<C;
SE:=C<Val1.5 and Win < Loss and SAR(.02,.2)>C;
LX:=C<Val1.5 or SAR(.02,.2)>C ;
SX:=C>Val1.5 or SAR(.02,.2)<C ;
B:=ExtFml("PowerPivots.SysEval",LE,LX,SE,SX,"!@#$#@!");
B=0 AND Ref(B,-1)>0
Short exit
A30:=ExtFml("MSX_KSR.CER",C,30);
RWH:=(H-Ref(L,-30))/(A30*Sqrt(30));
RWL:=(Ref(H,-30)-L)/(A30*Sqrt(30));
Pk:=Mov((RWH-RWL),3,W);
A:=ExtFml("MSX_KSR.CER",C,5);
Val1.5:=If(Pk>0,HHV(H-1.5*A,10),LLV(L+1.5*A,10));
Loss:= ExtFml("tsaequis1.eodlso");
Win:= ExtFml("tsaequis1.eodwso");
LE:=C>Val1.5 and Win > Loss and SAR(.02,.2)<C;
SE:=C<Val1.5 and Win < Loss and SAR(.02,.2)>C;
LX:=C<Val1.5 and SAR(.02,.2)&
|