Q6:=Ema(c,6);
P2:=Ema(c,2);
FILLRGN((P2>Q6),P2,Q6),coloraa00DD;
FILLRGN((P2<Q6),Q6,P2),color009900;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,0,0 ),COLORffff00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,8,0 ),COLOR888800;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,7,0 ),COLOR999900;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,6,0 ),COLORaaaa00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,5,0 ),COLORbbbb00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,4,0 ),COLORcccc00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,3,0 ),COLORdddd00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2,0 ),COLOReeee00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1,0 ),COLORffff00;
STICKLINE(OPEN>=CLOSE ,HIGH ,LOW,0.5,0 ),COLORffff00;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0,0) ,COLOR0000ff;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,8,0) ,COLOR000088;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,7,0) ,COLOR000099;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,6,0) ,COLOR0000aa;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,5,0) ,COLOR0000bb;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,4,0) ,COLOR0000cc;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0) ,COLOR0000dd;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0) ,COLOR0000ee;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0) ,COLOR0000FF;
STICKLINE(CLOSE>OPEN,HIGH,LOW,0.5,0) ,COLOR0000FF ;
STICKLINE(CLOSE=OPEN,HIGH ,LOW,0.5,0) ,COLOReeeeee;
STICKLINE(CLOSE=OPEN,CLOSE,OPEN,8,0) ,COLOReeeeee;
x开:ma(o,1),LINETHICK0;
y收:ma(c,1),LINETHICK0;
金牛13:Ema(c,13)COLORyellow,LINETHICK2;
矿渣6:Ema(c,6),color00cc00;
金矿2:Ema(c,2),coloree00ee;
DRAWTEXT(o<矿渣6 and c>金牛13 and 金牛13>矿渣6,l*0.97,'抢'),COLORRED;
DRAWTEXT(CROSS(Q6,P2),HIGH*1.08,'废\n弃'),COLORGREEN,ALIGN0;
DRAWTEXT(CROSS(Q6,P2),HIGH*1.04,'┳'),COLORGREEN,ALIGN0;
DRAWTEXT(CROSS(金牛13,P2) AND C<ref(CLOSE,1)*0.97,HIGH*1.12,'清'),colorffffff,ALIGN0;
DRAWTEXT(CROSS(金牛13,P2) AND C<ref(CLOSE,1)*0.97,HIGH*1.06,'¤'),colorffffff,ALIGN0;
DRAWTEXT(CROSS(P2,Q6),LOW*0.92,'金\n矿'),COLORMAGENTA,ALIGN0;
DRAWTEXT(CROSS(P2,Q6),LOW*0.96,'▓ '),COLORMAGENTA,ALIGN0;
TT2:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4.15),0.9);
TT1:=REF(EMA(TT2,3),1);
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
LC:=REF(CLOSE,1);
RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);
FF:=EMA(CLOSE,3);
AA1:=AMOUNT/VOL;
BB1:=L<AA1*0.9;
CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;
DD1:=L<MA(C,5)*0.921;
EE1:=VOL<MA(V,5)*1.5;
FF1:=BB1 AND CC1 AND DD1 AND EE1;
F:=100*(C-REF(C,1))/REF(C,1);
P1:=IF(C<REF(O,1) AND F<0,1,0);
P2:=IF(C<REF(O,2) AND F<0,1,0);
TT3:=P1=0 AND REF(P1,1)=1 AND P2=0 AND REF(P2,1)=1 ;
TT4:=P1=1 AND REF(P1,1)=0 AND P2=1 AND REF(P2,1)=0 ;
Z1:=MA(C,13);
ZX:=REF(Z1,13/2+1);
DRAWTEXT(CROSS(CLOSE,TT1)AND J<55,LOW,''),COLORRED;
DRAWTEXT((((CROSS(CLOSE,TT1)<REF(Z1,1)) AND (CLOSE>=Z1)) AND (BARSCOUNT(CLOSE)=SYSPARAM(1))),(Z1*1.0),''),SHIFT1,ColorFF00FF;
DRAWTEXT(CROSS(88,RSI),HIGH* 1.05,''),COLORGREEN;
DRAWTEXT(CROSS(88,RSI),HIGH * 1.08,'矿渣'),COLORGREEN;
DRAWTEXT(CROSS(88,RSI),HIGH * 1.05,'※'),COLORGREEN;
DRAWTEXT(FF1,L*0.99,''),COLORMAGENTA;
DRAWTEXT((((REF(CLOSE,1)<REF(TT2,1)) AND (CLOSE>=TT2)) AND (BARSCOUNT(CLOSE)=SYSPARAM(1))),(TT2*0.95),'买\n底'),SHIFT1,COLORRED;
STICKLINE(TT3,OPEN,CLOSE,0.99,1),COLORRED;