STICKLINE(CLOSE ZJ,C,OPEN,4,0),COLORRED;
STICKLINE(CLOSE=ZJ,H,L,2,0),COLORWHITE;
STICKLINE(CLOSE ZJ,O,C,4,0),COLORYELLOW;
STICKLINE(CLOSE ZJ,H,L,0.1,0),COLORYELLOW;
DRAWICON( (CLOSE ZJ AND CLOSE =HY) AND (REF(CLOSE,1) =REF(HY,1)), L*0.98, 4);
DRAWICON( (CLOSE ZJ AND CLOSE =HY) AND (REF(CLOSE,1) REF(ZJ,1) AND REF(CLOSE,1) =REF(HY,1)), L*0.98, 4);
STICKLINE(CLOSE HY,OPEN,CLOSE,4,0),COLORCYAN;
STICKLINE(CLOSE HY,HIGH,L,0.1,0),COLORCYAN;
DRAWICON( (CLOSE ZJ) AND REF(CLOSE,1) REF(ZJ,1) AND REF(CLOSE,1) =REF(HY,1), H*1.02, 5);
选股
ZJ:=EMA(C,13),COLOR0000FF;
HY:=EMA(C,20),COLORFF00FF;
买:= If((CLOSE ZJ AND CLOSE =HY) AND (REF(CLOSE,1) =REF(HY,1)) or (CLOSE ZJ AND CLOSE =HY) AND (REF(CLOSE,1) REF(ZJ,1) AND REF(CLOSE,1) =REF(HY,1)), 50, 0);
选股:Barslast(买)=0;