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YG1F;
ZYG23:=ZYGB+ZYG10+ZYG17+ZYG20;
ZYG24:=ZYGC+ZYG11+ZYG18+ZYG21;
ZYG25:=(G4+G2+G1)/3;
ZYG26:=AMOUNT/VOL/100;
ZYG27:=SUM(AMOUNT,5)/SUM(VOL,5)/100;
ZYG28:=(ZYG25-MA(ZYG25,34))/(0.015*AVEDEV(ZYG25,34));
ZYG29:=DMA(AMOUNT/VOL/100,VOL/CAPITAL);
ZYG2A:=(G4+G2+G1+ZYG25)/4;
ZYG2B:=EMA(ZYG2A,24);
ZYG2C:=STD(ZYG2A,24);
ZYG2D:=(ZYG2A-ZYG2B)/ZYG2C*100;
ZYG2E:=(ZYG25-MA(ZYG25,24))/(0.015*AVEDEV(ZYG25,24));
ZYG2F:=EMA(ZYG2D,5);
ZYG30:=(ZYG26-MA(ZYG26,21))/(0.015*AVEDEV(ZYG26,21));
ZYG31:=(ZYG27-MA(ZYG27,90))/(0.015*AVEDEV(ZYG27,90));
ZYG32:=((ZYG2F+ZYG2E+ZYG28)/3+165)/4;
ZYG33:=(EMA(EMA(EMA(ZYG32,15),10),5)-25)*2+ZYG29;
ZYG34:=(ZYG22+ZYG23+ZYG24*30)/32/5-15;
ZYG35:=EMA(ZYG34,13);
ZYG36:=(ZYG32+ZYG34)/2/1.1;
ZYG38:=EMA((ZYG33+ZYG35)/2,2);
厚积起爆:=CROSS(ZYG36,0) AND COUNT(ZYG5<-12,2)>=1 OR CROSS(ZYG36,ZYG38) AND COUNT(ZYG5<-12,2)>=1,COLORYELLOW,NODRAW;
STICKLINE(厚积起爆,60,90,1,0),COLORMAGENTA;
STICKLINE(厚积起爆,30,60,2,0),COLORRED;
STICKLINE(厚积起爆,10,30,3,0),COLORYELLOW;