ma20:MA(C,20),colorwhite,linethick2;ma120:MA(C,120),colorffcccc,linethick2;ma250:MA(C,250),colorffcc66,linethick2;乖离线:=((C-REF(ma20,1))/20+ma20)*1.20;tt1:=CROSS(ma20,ma120) AND CROSS(ma20,ma250) AND V>REF(V,1);tt2:=ma20>REF(ma20,2) AND V>REF(V,1) AND CROSS(C,ma20);STICKLINE(TT1,L,L-0.09,4,0),coloryellow;DRAWTEXT(TT1,L-0.13,'金叉'),coloryellow;STICKLINE(CROSS(C,ma120) AND CROSS(C,ma250) AND CROSS(C,ma20),L,L-0.09,4,0),coloryellow;DRAWTEXT(CROSS(C,ma120) AND CROSS(C,ma250) AND CROSS(C,ma20),L-0.13,'并线开花'),coloryellow;STICKLINE(tt2,L,L-0.09,4,0),coloryellow;DRAWTEXT(tt2,L-0.13,'买点1'),coloryellow;STICKLINE(CROSS(C,乖离线),H,H+0.09,4,0),color00ff00;DRAWTEXT(CROSS(C,乖离线) ,H+0.13,'卖点'),color00ff00;STICKLINE(ma250>=REF(ma250,1) AND ma20>=REF(ma20,1) AND CROSS(C,ma250),L,L-0.09,4,0),colorffcc66; |