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)
|
Here are several charts using the various Pring KST here are the following formulas KST 3 4 6 10pds1:=Input("MA1 periods",1,260,3);pds2:=Input("MA2 periods",2,260,3);plt:=Input("[1]roc$ [2]roc%",1,2,1);prc:=Input("Price: [1]Close [2]WghtCl [3]Median [4]Typ [5]Avg",1,5,1);prc:=If(prc=1,C,If(prc=2,WC(),If(prc=3,MP(), If(prc=4,Typ(),(O+H+L+C)/4))));KSTP:= (Mov(ROC(prc,3,%),3, E)*1)+(Mov(ROC(prc,4,%),4, E)*2)+(Mov(ROC(prc,6,%),6, E)*3)+(Mov(ROC(prc,10,%),8, E)*4)/10;KSTD:= (Mov(ROC(prc,3,$),3, E)*1)+(Mov(ROC(prc,4,$),4, E)*2)+(Mov(ROC(prc,6,$),6, E)*3)+(Mov(ROC(prc,10,$),8, E)*4)/10;KST:=If(plt=1,KSTD,KSTP);UZ:=Mov(KST,34,S)+(1.3185 *Stdev(KST,34));LZ:=Mov(KST,34,S)-(1.3185 *Stdev(KST,34));Sig:=Mov(Mov(KST,pds1,S),pds2,S);rev:=Input("Reverse trade signals? [1]Yes [0]No",0,1,0);{* Entry conditions *}entry:= {<- Do not change entry parameter name} Cross(KST,Sig);{* Exit conditions *}exit:= {<- Do not change exit parameter name} Cross(Sig,KST);Pring KST 9 12 18 24 pds1:=Input("MA1 periods",1,260,3); pds2:=Input("MA2 periods",2,260,3); plt:=Input("[1]roc$ [2]roc%",1,2,1); prc:=Input("Price: [1]Close [2]WghtCl [3]Median [4]Typ [5]Avg",1,5,1); prc:=If(prc=1,C,If(prc=2,WC(),If(prc=3,MP(), If(prc=4,Typ(),(O+H+L+C)/4)))); KSTP:= (Mov(ROC(prc,9,%),6, S)*1)+(Mov(ROC(prc,12,%),6, S)*2)+(Mov(ROC(prc,18,%),6, S)*3)+(Mov(ROC(prc,24,%),9, S)*4)/10; KSTD:= (Mov(ROC(prc,9,$),6, S)*1)+(Mov(ROC(prc,12,$),6, S)*2)+(Mov(ROC(prc,18,$),6, S)*3)+(Mov(ROC(prc,24,$),9, S)*4)/10; KST:=If(plt=1,KSTD,KSTP); UZ:=Mov(KST,34,S)+(1.3185 *Stdev(KST,34)); LZ:=Mov(KST,34,S)-(1.3185 *Stdev(KST,34)); Sig:=Mov(Mov(KST,pds1,S),pds2,S); rev:=Input("Reverse trade signals? [1]Yes [0]No",0,1,0); {* Entry conditions *} entry:= {<- Do not change entry parameter name} Cross(KST,Sig); {* Exit conditions *} exit:= {<- Do not change exit parameter name} Cross(Sig,KST); Pring KST 1013 15 20pds1:=Input("MA1 periods",1,260,3);pds2:=Input("MA2 periods",2,260,3);plt:=Input("[1]roc$ [2]roc%",1,2,1);prc:=Input("Price: [1]Close [2]WghtCl [3]Median [4]Typ [5]Avg",1,5,1);prc:=If(prc=1,C,If(prc=2,WC(),If(prc=3,MP(), If(prc=4,Typ(),(O+H+L+C)/4))));KSTP:= (Mov(ROC(prc,10,%),10, E)*1)+(Mov(ROC(prc,13,%),13, E)*2)+(Mov(ROC(prc,15,%),15, E)*3)+(Mov(ROC(prc,20,%),20, E)*4)/10;KSTD:= (Mov(ROC(prc,10,$),10, E)*1)+(Mov(ROC(prc,13,$),13, E)*2)+(Mov(ROC(prc,15,$),15, E)*3)+(Mov(ROC(prc,20,$),20, E)*4)/10;KST:=If(plt=1,KSTD,KSTP);UZ:=Mov(KST,34,S)+(1.3185 *Stdev(KST,34));LZ:=Mov(KST,34,S)-(1.3185 *Stdev(KST,34));Sig:=Mov(Mov(KST,pds1,S),pds2,S);rev:=Input("Reverse trade signals? [1]Yes [0]No",0,1,0);{* Entry conditions *}entry:= {<- Do not change entry parameter name} Cross(KST,Sig);{* Exit conditions *}exit:= {<- Do not change exit parameter name} Cross(Sig,KST);Pring KST 1015 20 30 pds1:=Input("MA1 periods",1,260,3); pds2:=Input("MA2 periods",2,260,3); plt:=Input("[1]roc$ [2]roc%",1,2,1); prc:=Input("Price: [1]Close [2]WghtCl [3]Median [4]Typ [5]Avg",1,5,1); prc:=If(prc=1,C,If(prc=2,WC(),If(prc=3,MP(), If(prc=4,Typ(),(O+H+L+C)/4)))); KSTP:= (Mov(ROC(prc,10,%),10, S)*1)+(Mov(ROC(prc,15,%),10, S)*2)+(Mov(ROC(prc,20,%),15, S)*3)+(Mov(ROC(prc,30,%),20, S)*4)/10; KSTD:= (Mov(ROC(prc,10,$),10, S)*1)+(Mov(ROC(prc,15,$),10, S)*2)+(Mov(ROC(prc,20,$),15, S)*3)+(Mov(ROC(prc,30,$),20, S)*4)/10; KST:=If(plt=1,KSTD,KSTP); UZ:=Mov(KST,34,S)+(1.3185 *Stdev(KST,34)); LZ:=Mov(KST,34,S)-(1.3185 *Stdev(KST,34)); Sig:=Mov(Mov(KST,pds1,S),pds2,S); rev:=Input("Reverse trade signals? [1]Yes [0]No",0,1,0); {* Entry conditions *} entry:= {<- Do not change entry parameter name} Cross(KST,Sig); {* Exit conditions *} exit:= {<- Do not change exit parameter name} Cross(Sig,KST); Pring KST 39 52 78 104pds1:=Input("MA1 periods",1,260,3);pds2:=Input("MA2 periods",2,260,3);plt:=Input("[1]roc$ [2]roc%",1,2,1);prc:=Input("Price: [1]Close [2]WghtCl [3]Median [4]Typ [5]Avg",1,5,1);prc:=If(prc=1,C,If(prc=2,WC(),If(prc=3,MP(), If(prc=4,Typ(),(O+H+L+C)/4))));KSTP:= (Mov(ROC(prc,39,%),26, E)*1)+(Mov(ROC(prc,52,%),26, E)*2)+(Mov(ROC(prc,78,%),26, E)*3)+(Mov(ROC(prc,104,%),39, E)*4)/10;KSTD:= (Mov(ROC(prc,39,$),26, E)*1)+(Mov(ROC(prc,52,$),26, E)*2)+(Mov(ROC(prc,78,$),26, E)*3)+(Mov(ROC(prc,104,$),39, E)*4)/10;KST:=If(plt=1,KSTD,KSTP);UZ:=Mov(KST,34,S)+(1.3185 *Stdev(KST,34));LZ:=Mov(KST,34,S)-(1.3185 *Stdev(KST,34));Sig:=Mov(Mov(KST,pds1,S),pds2,S);rev:=Input("Reverse trade signals? [1]Yes [0]No",0,1,0);{* Entry conditions *}entry:= {<- Do not change entry parameter name} Cross(KST,Sig);{* Exit conditions *}exit:= {<- Do not change exit parameter name} Cross(Sig,KST);Pring KST 50 65 75 100 pds1:=Input("MA1 periods",1,260,3); pds2:=Input("MA2 periods",2,260,3); plt:=Input("[1]roc$ [2]roc%",1,2,1); prc:=Input("Price: [1]Close [2]WghtCl [3]Median [4]Typ [5]Avg",1,5,1); prc:=If(prc=1,C,If(prc=2,WC(),If(prc=3,MP(), If(prc=4,Typ(),(O+H+L+C)/4)))); KSTP:= (Mov(ROC(prc,50,%),50, S)*1)+(Mov(ROC(prc,65,%),65, S)*2)+(Mov(ROC(prc,75,%),75, S)*3)+(Mov(ROC(prc,100,%),100, S)*4)/10; KSTD:= (Mov(ROC(prc,50,$),50, S)*1)+(Mov(ROC(prc,65,$),65, S)*2)+(Mov(ROC(prc,75,$),75, S)*3)+(Mov(ROC(prc,100,$),100, S)*4)/10; KST:=If(plt=1,KSTD,KSTP); UZ:=Mov(KST,34,S)+(1.3185 *Stdev(KST,34)); LZ:=Mov(KST,34,S)-(1.3185 *Stdev(KST,34)); Sig:=Mov(Mov(KST,pds1,S),pds2,S); rev:=Input("Reverse trade signals? [1]Yes [0]No",0,1,0); {* Entry conditions *} entry:= {<- Do not change entry parameter name} Cross(KST,Sig); {* Exit conditions *} exit:= {<- Do not change exit parameter name} Cross(Sig,KST);
|