A1:(EMA(CLOSE,12)-EMA(CLOSE,26))/EMA(CLOSE,26)+EMA(C,8);
A2:EMA(A1,9);
A3:MA(HHV(C,20),60),COLORMAGENTA;
STICKLINE(A1>=A2,A3,A1,0,-1),COLORRED;
STICKLINE(A1<A2,A3,A1,0,-1),COLORCYAN;
A4:MA(LLV(C,20),60),COLORLIRED;
DRAWKLINE(H,O,L,C);
STICKLINE(KDJ.J>50,O,C,3,0) COLORBLUE;
STICKLINE(KDJ.J,L,H,0,1) COLORBLUE;
STICKLINE(KDJ.J<50,O,C,3,0) COLORLIBLUE;
STICKLINE(KDJ.J<50,L,H,0,1) COLORLIBLUE;
STICKLINE(CROSS(KDJ.J,50),O,C,3,0) COLORRED;
STICKLINE(CROSS(KDJ.J,50),L,H,0,1) COLORRED;
STICKLINE(CROSS(50,KDJ.J),O,C,3,0) COLORYELLOW;
STICKLINE(CROSS(50,KDJ.J),L,H,0,1) COLORYELLOW;
{牛熊轨道上抓启爆点 适合抓爆涨股}
AHC1:=CLOSE*VOL;
AHC22:=EMA((EXPMA(AHC1,27)/EXPMA(VOL,27)+EXPMA(AHC1,54)/EXPMA(VOL,54)+EXPMA(AHC1,108)/EXPMA(VOL,108)+EXPMA(AHC1,316)/EXPMA(VOL,316))/4,34);
上轨:=1.06*AHC22;
下轨:=AHC22*0.94;
ZT:=REF(C,1)*1.1-C<0.01 AND H=C;
启爆:=CROSS(C,上轨) OR CROSS(C,下轨) AND ZT;
DRAWTEXT(启爆,L,'启爆'),COLORCYAN;