A1J:=ABS(((3.48*CLOSE+HIGH+LOW)/4-EMA(CLOSE,10))/EMA(CLOSE,10));
A2J:=DMA(((2.15*CLOSE+LOW+HIGH)/4),A1J);
A2K:=EMA(A2J,5)*1;
A2K2:=EMA(A2J,200)*1.118;
A2K3:=(C-REF(C,1))/REF(C,1)*100>8;
A2K4:=CROSS(C,A2K) AND A2K3;
AA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
买量:=IF(CLOSE>OPEN,AA*(HIGH-LOW),IF(CLOSE<OPEN,AA*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),LINETHICK0,COLORRED;
卖量:=IF(CLOSE>OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-AA*(HIGH-LOW),0-VOL/2)),LINETHICK0,COLORCYAN;
进出量:=买量+卖量,COLOR00FFFF;
STICKLINE(进出量<0,0,进出量/10000,1,0),COLORFF6600;
STICKLINE(进出量<0,0,进出量/10000,1,0),COLORFF9900;
STICKLINE(进出量<0,0,进出量/10000,1.0,0),COLORFFCC00;
STICKLINE(进出量<0,0,进出量/10000,0.5,0),COLORGREEN;
STICKLINE(进出量>0,0,进出量/10000,1,0),COLOR000099;
STICKLINE(进出量>0,0,进出量/10000,1,0),COLOR0000CC;
STICKLINE(进出量>0,0,进出量/10000,1.0,0),COLOR0000FF;
STICKLINE(进出量>0,0,进出量/10000,0.5,0),COLORCC66FF;
BB:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
主动买:=IF(CLOSE>OPEN,BB*(HIGH-LOW),IF(CLOSE<OPEN,BB*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));
主买:主动买/10000/100,COLORRED,NODRAW;
主动卖:=IF(CLOSE>OPEN,0-BB*((HIGH-CLOSE)+(OPEN-LOW)),
IF(CLOSE<OPEN,0-BB*(HIGH-LOW),0-VOL/2));
主卖:-主动卖/10000/100,COLORGREEN,NODRAW;
启动:A2K4,COLORRED;
STICKLINE(启动,0,50,2,0),COLORYELLOW;