A1:=AMOUNT/VOL/100; 五日均價(jià):=MA(A1,5)COLORYELLOW,LINETHICK2; 二十日均價(jià):=MA(A1,20)COLORFF00FF; 通道上:=HHV(MA(HIGH,3)*1.03,30); 通道下:=LLV(MA(LOW,3)*0.97,30); STICKLINE(五日均價(jià)>二十日均價(jià),通道上,通道下,5,0)COLORFF0080; STICKLINE(五日均價(jià)<二十日均價(jià),通道上,通道下,4,0)COLOR808080; 買線:=EMA(CLOSE,2); 賣線:=EMA(SLOPE(CLOSE,32)*20+CLOSE,56),LINETHICK0; BU:=CROSS(買線,賣線); SEL:=CROSS(賣線,買線); DRAWTEXT (BU,LOW*0.989,'進(jìn)入'),COLORYELLOW,LINETHICK3; DRAWTEXT(SEL,HIGH*1.0175,'離場(chǎng)'),COLORFFFFFF,LINETHICK3; STICKLINE(買線>=賣線,LOW,HIGH,0,0),COLORRED; STICKLINE(買線>=賣線,CLOSE,OPEN,3,0),COLOR0000AA; STICKLINE(買線>=賣線,CLOSE,OPEN,1,0),COLOR0000CC; STICKLINE(買線<賣線,CLOSE,OPEN,3,0),COLORAAAA00; STICKLINE(買線<賣線,CLOSE,OPEN,1,0),COLORBBBB00; STICKLINE(買線<賣線,LOW,HIGH,0,0),COLORFFFF00; STICKLINE(CROSS(買線,賣線),OPEN,CLOSE,4,0),COLORYELLOW; STICKLINE(CROSS(賣線,買線),OPEN,CLOSE,4,0),COLORMAGENTA; MA5:MA(C,5); MA10:MA(C,10); MA20:MA(C,20); MA30:MA(C,30); MA60:MA(C,60);
|