M1:=5;M2:=10;M3:=30;M4:=60;M5:=120;M6:=250;
MA1:MA(CLOSE,M1);
MA2:=MA(CLOSE,M2);
MA3:=MA(CLOSE,M3);
M12:=MIN(MA1,MA2);
MD:MIN(M12,M3);
MA4:=MA(CLOSE,M4);
MA5:=MA(CLOSE,M5);
MA6:=MA(CLOSE,M6);
M45:=MAX(MA4,MA5);
MG:MAX(MA6,M45);
买入:crOSS(MD,MG) OR CROSS(MD,M45),NODRAW;
DRAWTEXT(买入, MD*0.95,'买入');
DRAWTEXT(REF(zig(3,10),2)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)
MAVOL1:=MA(VOLUME,M1);
MAVOL2:=MA(VOLUME,M2);
MAVOL3:=MA(VOLUME,M3);
突破:(VOL>MAVOL1 OR CROSS(MAVOL1,MAVOL2)) AND ( 买入 OR 买 ),NODRAW,COLORRED;
{bs标志}
DRAWICON((ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2))
AND (REF(ZIG(3,5),2)<=REF(ZIG(3,5),3)),LOW*0.98,7);
DRAWICON((ZIG(3,5)=REF(ZIG(3,5),2))
AND (REF(ZIG(3,5),2)>=REF(ZIG(3,5),3)),HIGH*1.02,8);