n1 1 100 9
m2 1 100 5
mtm:=c-ref(c,1);
ZLGJ:100*ema(ema(mtm,n1),n1)/ema(ema(abs(mtm),n1),n1),colorwhite;
MAZL:MA(ZLGJ,N2),coloryellow;
买点:0,linethick3,colorred;
drawtext(CROSS(ZLGJ,MAZL) and ZLGJ<80,55,'买'),COLORred;
STICKLINE(CROSS(ZLGJ,MAZL) and ZLGJ<80 ,0,40,4,0),COLORred;
drawicon(CROSS(ZLGJ,MAZL) and ZLGJ<0,-2,1);
drawtext(CROSS(MAZL,ZLGJ),40,'卖'),color00FF00;
STICKLINE(CROSS(MAZL,ZLGJ),0,20,4,0),color00FF00;