DRAWBAND(Ema(C,12),RGB(166,16,160),ema(COST(65),30),RGB(0,0,0));DRAWKLINE(H,O,L,C);
E:EMA(C,5);E1:EMA(C,12);E2:EMA(C,50),LINETHICK2;E3:MA(C,120);dif:=(EMA(C,12)-EMA(C,26));DEA:=EMA(DIF,9);
A:=crOSS(C,E2) AND DIF>=DEA AND DIF>=0 AND E2>REF(E2,1) AND C>O;
DRAWTEXT(A,L-0.03,'狙击');
STICKLINE(A,O,C,6,0),COLORLIMAGENTA;
STICKLINE(A,O,C,3,0),COLORBLUE;
平均成本:COST(1),COLORLIGREEN;
A1:=CROSS(C,E3) AND DIF>=DEA AND C>O;
STICKLINE(A1,O,C,6,0),COLORWHITE;
STICKLINE(A1,O,C,3,0),COLORRED;
A2:=A AND A1;DRAWTEXT(A2,H+0.03,'黑马'),COLORBLUE;A3:=REF((C<O),1);
B:=H>O AND C=H AND L<O AND L>REF(L,1) AND A3;STICKLINE(B,H,O,1,0),COLORBLUE;
DRAWTEXT(B,L-0.066,'★'),COLORBLUE;
C6:=REF(C,1);
涨停:=IF((C-C6)*100/C6>=(10-0.01*100/C6),1,0);
STICKLINE(涨停,OPEN,CLOSE,1,0),COLORLICYAN;
STICKLINE(涨停,H,L,0,0),COLORLICYAN;
DRAWTEXT(涨停,H+0.10,'涨停'),COLORBLUE;
DD:=COST(65);DD1:EMA(DD,30),COLORWHITE;
LS:=CROSS(C,DD1) AND DIF>=0 AND REF((C<O),1) AND C>O AND E>E1 AND E1>E2;STICKLINE(LS,O,C,1,0),COLORMAGENTA;
DRAWTEXT(LS,L-0.18,'@★★★★★五星上将')COLORWHITE;
K:=CROSS(C,DD1) AND DIF>=0 AND E>E1 AND E1>E2 AND DIF>=DEA;STICKLINE(K,O,C,5,0),COLORLIMAGENTA;STICKLINE(K,O,C,2,0),COLORBLUE;
DRAWTEXT(K,C+0.18,'@★★★★★五星上将')COLORBLUE;