A1:=5;
A2:=8;
A3:=13;
A4:=21;
DIF1:=(EMA(DCLOSE,12)-EMA(DCLOSE,26))/EMA(DCLOSE,26)*100;
DEA1:=EMA(DIF1,9);
AAA1:=(DIF1-DEA1)*100;
买:=45;
入:=AAA1-REF(AAA1,1);
XC:=CROSS(入,买);
DIF:=(EMA(DCLOSE,10)-EMA(DCLOSE,72))/EMA(DCLOSE,72)*100;
DEA:=EMA(DIF,17);
AAA:=(DIF-DEA)*100;
FV:=CROSS(AAA-REF(AAA,1),45);
BN:XC AND FV,COLORWHITE;
TJ2:IF(BN AND C/MA(C,60)<1.15 AND EXIST(C,MA(C,20)) AND EVERY(C>BBI.BBI,3) AND EVERY(BBI.BBI>REF(BBI.BBI,1),3),5,0),COLORRED;
B1:IF(C/MA(C,60)<1.15,1,0),COLORYELLOW;
B2:IF(EXIST(C,MA(C,20)),2,0),COLORGRAY;
B3:IF(EVERY(C>BBI.BBI,3),3,0),COLOR000999;
B4:IF(EVERY(BBI.BBI>REF(BBI.BBI,1),3),4,0),COLORBLUE;
X1:=REF(HHV(C,20),1);
X2:=C>X1;
X3:=REF(C,1);
X4:=(C-X3)*100/X3;
X5:=X4>1.8;
X6:=(C-X1)*100/X1;
X7:=X6>1;
X:=X5 AND X7 AND X2;
STICKLINE(X2=1,5,4,5,0),COLORYELLOW;
STICKLINE(X7=1,4,3,5,0),COLORMAGENTA;
STICKLINE(X=1,3,2,5,0),COLORGREEN;