大盘:=EMA(INDEXC,500)/EMA(C,500);
引路线:INDEXC/大盘,LINETHICK1,colorblue;
工作线:EMA(C,14),colorf00ff0,linethick1;
庄线:EMA(CLOSE,144),POINTDOT,linethick1,Color0000FF;
命线:EMA(C,25),colorwhite,linethick1;
小马线:EMA(C,318),Color0000FF,linethick1;
上马线:EMA(C,453),POINTDOT,linethick1,coloryellow;
大马线:EMA(C,550),COLORFFCC66;
牛线:EMA(C,610),linethick1,coloryellow;
黑牛线:EMA(C,730),colorblue;
回避线:EMA(C,99),POINTDOT,linethick1,colorwhite;
DIFF:=( EMA(CLOSE,7) - EMA(CLOSE,19)),colorwhite;
DEA:=EMA(DIFF,9),COLORf00ff0 ;
macd:=0.90*(DIFF-DEA), COLORSTICK;
tj:=(diff>=dea);
tj1:=(diff>=0);
STICKLINE(tj,H,L,0.4,0),coloryellow;
STICKLINE(tj,O,C,8,0),coloryellow;
STICKLINE(tj1 AND tj,H,L,0.4,0),colorf00ff0;
STICKLINE(tj1 AND tj,O,C,8,1),colorf00ff0;
STICKLINE(diff<dea,H,L,0.4,0),colorf0f000;
STICKLINE(diff<dea,O,C,8,0),colorf0f000;
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,'短线'),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)),H,L,0.45,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,12,1),linethick3,colorred;
ss:=CROSS(命线,回避线) AND C>1.5 AND C>REF(C,1.5) AND C/REF(C,1.5)>=0.98 OR CROSS(庄线,小马线) AND C>1.5 AND C>REF(C,1.5) AND C/REF(C,1.5)>=0.98 OR CROSS(庄线,庄线) AND C>1.5 AND C>REF(C,1.5) AND C/REF(C,1.5)>=0.98;
DRAWICON(SS,L-0.04,1);
DD:=CROSS(回避线,庄线) AND C>1.5 AND C>REF(C,1.5) AND C/REF(C,1.5)>=0.98
OR CROSS(回避线,上马线) AND C>1.5 AND C>REF(C,1.5) AND C/REF(C,1.5)>=0.98
OR CROSS(回避线,小马线) AND C>1.5 AND C>REF(C,1.5) AND C/REF(C,1.5)>=0.98
OR CROSS(回避线,小马线) AND C>1.5 AND C>REF(C,1.5) AND C/REF(C,1.5)>=0.98 AND CROSS(庄线,上马线);