江恩完整指标源码

[复制链接]
查看105 | 回复0 | 2022-7-24 06:04:27 | 显示全部楼层 |阅读模式

{江恩日线}
总股本:=FINANCE2(35) ;
流通股:=FINANCE2(37);
每股收益:=FINANCE2(3);
市盈率:=DYNAINFO(39);
每股公积金:=FINANCE2(7);
 {江恩分线}
工作16:eMA(CLOSE,16),color074af0,linethick2;
辅助8:eMA(CLOSE,8);
 ①55:eMA(CLOSE,55);
 ②103:eMA(CLOSE,103);
 ③453:eMA(CLOSE,453),linethick2;
 DIFF:=( EMA(CLOSE,7) - EMA(CLOSE,19));
 DEA:=EMA(DIFF,9);
 MACD:=0.90*(DIFF-DEA);
 tj:=(diff>=dea);
 tj1:=(diff>=0);
 stickline(tj,h,l,0,0),COLORyellow;
 stickline(tj,o,c,8,0),COLORyellow;
 stickline(tj1 and tj,h,l,0,0),colorred;
 stickline(tj1 and tj,o,c,8,0),colorred;
 stickline(diff
 stickline(diff
 Var1:=(CLOSE*2+HIGH+LOW)/4;
 SK:= EMA(Var1,13)-EMA(Var1,73);
 SD:= EMA(SK,2);
 drawtext((cross(sk,sd) and sk<-0.04 and (c-ref(c,1))/ref(c,1)>=0.03) or (cross(sk,sd) and sk<=-0.14 )
 or (cross(sk,sd) and sk<=0.05 and (v/ma(v,5)>2 or c/ref(c,1)>0.035)) ,l*0.99,"短线"),colorgreen;
 stickline((cross(sk,sd) and sk<-0.04 and (c-ref(c,1))/ref(c,1)>=0.03) or (cross(sk,sd) and sk<=-0.14 )
 or (cross(sk,sd) and sk<=0.05 and (v/ma(v,5)>2 or c/ref(c,1)>0.035)),h,l,0.5,0),colorred;
 stickline((cross(sk,sd) and sk<-0.04 and (c-ref(c,1))/ref(c,1)>=0.03) or (cross(sk,sd) and sk<=-0.14 )
 or (cross(sk,sd) and sk<=0.05 and (v/ma(v,5)>2 or c/ref(c,1)>0.035)),o,c,10,1),linethick3,colorred;

 {江恩日线}
总股本:=FINANCE2(35) ;
流通股:=FINANCE2(37);
每股收益:=FINANCE2(3);
市盈率:=DYNAINFO(39);
每股公积金:=FINANCE2(7);
 DRAWTEXTABS(12,8,"总股本: "+NUMTOSTRN(总股本,2)+" 万股"),ColorFFFFDD;
 DRAWTEXTABS(170,8,"流通A股: "+NUMTOSTRN(流通股,2)+" 万股"),ColorFFFFDD;
 DRAWTEXTABS(12,25,"每股收益:"+NUMTOSTRN(每股收益,2)+"元 "+" 市盈率:"+NUMTOSTRN(市盈率,1)+"倍 "+" 每股公积金:"+NUMTOSTRN(每股公积金,2)+"元"),ColorFFFFDD;
壹MA4:eMA(CLOSE,4),COLORWHITE;
壹辅助:eMA(CLOSE,9),COLORYELLOW;
贰辅助:eMA(CLOSE,45),COLORYELLOW;
壹工作:eMA(CLOSE,14),color074af0,linethick2;
贰①:eMA(CLOSE,144),color074af0;
贰②:  MA(CLOSE,26),colorf78d11,linethick2;
 ③:eMA(CLOSE,318);
 ④生命:eMA(CLOSE,453),colorred,linethick2;
 ⑤:eMA(CLOSE,550);
 ⑥:eMA(CLOSE,610);
 ⑦:eMA(CLOSE,730);
 ⑧:eMA(CLOSE,888);
贰⑨:eMA(CLOSE,99),colorgreen;
压力线:贰② + 2*STD(CLOSE,26),colorWHITE,POINTDOT;
支撑线:贰② - 2*STD(CLOSE,26),colorWHITE,POINTDOT;
 DIFF:=( EMA(CLOSE,7) - EMA(CLOSE,19));
 DEA:=EMA(DIFF,9);
 MACD:=0.90*(DIFF-DEA);
 tj:=(diff>=dea);
 tj1:=(diff>=0);
 stickline(tj,h,l,0,0),COLORyellow;
 stickline(tj,o,c,8,0),COLORyellow;
 stickline(tj1 and tj,h,l,0,0),colorred;
 stickline(tj1 and tj,o,c,8,0),colorred;
 stickline(diff
 stickline(diff
 Var1:=(CLOSE*2+HIGH+LOW)/4;
 SK:= EMA(Var1,13)-EMA(Var1,73);
 SD:= EMA(SK,2);
 drawtext((cross(sk,sd) and sk<-0.04 and (c-ref(c,1))/ref(c,1)>=0.03) or (cross(sk,sd) and sk<=-0.14 )
 or (cross(sk,sd) and sk<=0.05 and (v/ma(v,5)>2 or c/ref(c,1)>0.035)) ,l*0.99,"短线"),colorgreen;
 stickline((cross(sk,sd) and sk<-0.04 and (c-ref(c,1))/ref(c,1)>=0.03) or (cross(sk,sd) and sk<=-0.14 )
 or (cross(sk,sd) and sk<=0.05 and (v/ma(v,5)>2 or c/ref(c,1)>0.035)),h,l,0.5,0),colorred;
 stickline((cross(sk,sd) and sk<-0.04 and (c-ref(c,1))/ref(c,1)>=0.03) or (cross(sk,sd) and sk<=-0.14 )
 or (cross(sk,sd) and sk<=0.05 and (v/ma(v,5)>2 or c/ref(c,1)>0.035)),o,c,10,1),linethick3,colorred;

 {江恩周线}
工作:eMA(CLOSE,16),color074af0,linethick2;
 ①牛熊分界:eMA(CLOSE,181),colorf78d11,linethick2;
 ②:eMA(CLOSE,272);
 ③发财:eMA(CLOSE,33),COLORYELLOW,linethick2;
 ⑨:eMA(CLOSE,99);
 DIFF:=( EMA(CLOSE,7) - EMA(CLOSE,19));
 DEA:=EMA(DIFF,9);
 MACD:=0.90*(DIFF-DEA);
 tj:=(diff>=dea);
 tj1:=(diff>=0);
 stickline(tj,h,l,0,0),COLORyellow;
 stickline(tj,o,c,8,0),COLORyellow;
 stickline(tj1 and tj,h,l,0,0),colorred;
 stickline(tj1 and tj,o,c,8,0),colorred;
 stickline(diff
 stickline(diff
 Var1:=(CLOSE*2+HIGH+LOW)/4;
 SK:= EMA(Var1,13)-EMA(Var1,73);
 SD:= EMA(SK,2);
 drawtext((cross(sk,sd) and sk<-0.04 and (c-ref(c,1))/ref(c,1)>=0.03) or (cross(sk,sd) and sk<=-0.14 )
 or (cross(sk,sd) and sk<=0.05 and (v/ma(v,5)>2 or c/ref(c,1)>0.035)) ,l*0.99,"短线"),colorgreen;
 stickline((cross(sk,sd) and sk<-0.04 and (c-ref(c,1))/ref(c,1)>=0.03) or (cross(sk,sd) and sk<=-0.14 )
 or (cross(sk,sd) and sk<=0.05 and (v/ma(v,5)>2 or c/ref(c,1)>0.035)),h,l,0.5,0),colorred;
 stickline((cross(sk,sd) and sk<-0.04 and (c-ref(c,1))/ref(c,1)>=0.03) or (cross(sk,sd) and sk<=-0.14 )
 or (cross(sk,sd) and sk<=0.05 and (v/ma(v,5)>2 or c/ref(c,1)>0.035)),o,c,10,1),linethick3,colorred;

 {江恩月线}
①20:eMA(CLOSE,20);
 ②40:eMA(CLOSE,40);
 ③60:eMA(CLOSE,60);
 ④80:eMA(CLOSE,80);
 ⑤100:eMA(CLOSE,100);
 ⑥120:eMA(CLOSE,120);
 ⑦140:eMA(CLOSE,140);
 DIFF:=( EMA(CLOSE,7) - EMA(CLOSE,19));
 DEA:=EMA(DIFF,9);
 MACD:=0.90*(DIFF-DEA);
 tj:=(diff>=dea);
 tj1:=(diff>=0);
 stickline(tj,h,l,0,0),COLORyellow;
 stickline(tj,o,c,8,0),COLORyellow;
 stickline(tj1 and tj,h,l,0,0),colorred;
 stickline(tj1 and tj,o,c,8,0),colorred;
 stickline(diff
 stickline(diff
 Var1:=(CLOSE*2+HIGH+LOW)/4;
 SK:= EMA(Var1,13)-EMA(Var1,73);
 SD:= EMA(SK,2);
 drawtext((cross(sk,sd) and sk<-0.04 and (c-ref(c,1))/ref(c,1)>=0.03) or (cross(sk,sd) and sk<=-0.14 )
 or (cross(sk,sd) and sk<=0.05 and (v/ma(v,5)>2 or c/ref(c,1)>0.035)) ,l*0.99,"短线"),colorgreen;
 stickline((cross(sk,sd) and sk<-0.04 and (c-ref(c,1))/ref(c,1)>=0.03) or (cross(sk,sd) and sk<=-0.14 )
 or (cross(sk,sd) and sk<=0.05 and (v/ma(v,5)>2 or c/ref(c,1)>0.035)),h,l,0.5,0),colorred;
 stickline((cross(sk,sd) and sk<-0.04 and (c-ref(c,1))/ref(c,1)>=0.03) or (cross(sk,sd) and sk<=-0.14 )
 or (cross(sk,sd) and sk<=0.05 and (v/ma(v,5)>2 or c/ref(c,1)>0.035)),o,c,10,1),linethick3,colorred;

 {江恩操盘}
辅助线17:EMA(CLOSE,17),COLORYELLOW;
短期线50:EMA(CLOSE,50),linethick2;
长期线453:EMA(CLOSE,453),colorred,linethick2;
 DIFF:=( EMA(CLOSE,7) - EMA(CLOSE,19));
 DEA:=EMA(DIFF,9);
 MACD:=0.90*(DIFF-DEA);
 tj:=(diff>=dea);
 tj1:=(diff>=0);
 stickline(tj,h,l,0,0),COLORyellow;
 stickline(tj,o,c,8,0),COLORyellow;
 stickline(tj1 and tj,h,l,0,0),colorred;
 stickline(tj1 and tj,o,c,8,0),colorred;
 stickline(diff
 stickline(diff
 Var1:=(CLOSE*2+HIGH+LOW)/4;
 SK:= EMA(Var1,13)-EMA(Var1,73);
 SD:= EMA(SK,2);
 drawtext((cross(sk,sd) and sk<-0.04 and (c-ref(c,1))/ref(c,1)>=0.03) or (cross(sk,sd) and sk<=-0.14 )
 or (cross(sk,sd) and sk<=0.05 and (v/ma(v,5)>2 or c/ref(c,1)>0.035)) ,l*0.99,"短线"),colorgreen;
 stickline((cross(sk,sd) and sk<-0.04 and (c-ref(c,1))/ref(c,1)>=0.03) or (cross(sk,sd) and sk<=-0.14 )
 or (cross(sk,sd) and sk<=0.05 and (v/ma(v,5)>2 or c/ref(c,1)>0.035)),h,l,0.5,0),colorred;
 stickline((cross(sk,sd) and sk<-0.04 and (c-ref(c,1))/ref(c,1)>=0.03) or (cross(sk,sd) and sk<=-0.14 )
 or (cross(sk,sd) and sk<=0.05 and (v/ma(v,5)>2 or c/ref(c,1)>0.035)),o,c,10,1),linethick3,colorred;

 

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则