DIF:EMA(C,13)-EMA(C,21),LINETHICK2,COLORRED;
DEA:MA(DIF,8),COLORGREEN,LINETHICK2;
B1:EMA((0.668*REF(DIF,1)+0.333*DIF),1),COLORSTICK;
C1:EMA((0.668*REF(DEA,1)+0.333*DEA),1),COLORSTICK;
X1:=V/SUM(V,13);
X2:=DMA(C,X1);
X3:=(C-X2)/X2*40;
L2:=MA(AMOUNT/(100*V),13);
CYS13:= (C-L2)/L2*100;
做多:=IF(DIF =B1,DIF,B1);
做空:=IF(B1-DIF,B1,DIF);
DRAWTEXT(CROSS(DIF,DEA) AND DIF-DEA 0.03 AND DEA -0.1,DEA*1.2,'★买'),COLORRED;
DRAWTEXT(CROSS(DEA,DIF) AND DEA 0.1,DEA*1.25,'★卖'),COLORGREEN;
强庄:IF(CYS13 5,1,0),COLORYELLOW,NODRAW;
STICKLINE(CYS13 5,0,-做空,2,0 ),COLORYELLOW;
主力强度:IF(X3 0 AND 做多 0,1,0),COLORFF80FF,NODRAW;
STICKLINE(X3 0 AND 做多 0,做多+0.1,做多,2,0),COLORFF80FF;
弱庄:IF(CYS13 5,1,0),COLORLIGREEN,NODRAW;
STICKLINE(CYS13 5,0,-做空,2,0 ),COLORBLUE;
主力弱度:IF(X3 0 AND 做多 0,1,0),COLORFF80FF,NODRAW;
STICKLINE(X3 0 AND 做多 0,做多+0.1,做多,2,0),COLORGREEN;
MACD:(DIF-DEA)*2,COLORBROWN,LINETHICK3;
IF(MACD REF(MACD,1),MACD,DRAWNULL),COLORYELLOW,LINETHICK5;
0;