N:=10; M1:=11; M2:=9; UPPER:(1+M1/100)*ma(CLOSE,N); LOWER:(1-M2/100)*MA(CLOSE,N); ene:(UPPER+LOWER)/2; 買線:=zig(3,10); 賣線:=MA(買線,3); BU:=crOSS(買線,賣線); SEL:=CROSS(賣線,買線); DRAWTEXT(BU,L*0.99,'買'),LINETHICK1,COLOR00AAFF; DRAWTEXT(SEL,H*1.01,'賣'),LINETHICK1,COLOR00FF00; stICKLINE(買線>=賣線,LOW,HIGH,0,1),COLOR0000CC; STICKLINE(買線>=賣線,CLOSE,OPEN,2,1),COLOR0000CC; STICKLINE(買線<賣線,CLOSE,OPEN,2,0),COLORCYAN; STICKLINE(買線<賣線,LOW,HIGH,0,0),COLORCYAN; STICKLINE(CROSS(買線,賣線),OPEN,CLOSE,3,0),COLOR00AAFF; STICKLINE(CROSS(賣線,買線),OPEN,CLOSE,3,0),COLOR00DD00;
|