DX:=(C+H+L+O)/4; MTM:=C-REF(C,1); ZLGJ:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6); FB:=MA(DX,17)+ABS(MA(DX,17)-REF(MA(DX,17),1)); FS:=MA(DX,17)+MA(DX,17)-REF(MA(DX,17),1); TIDD:=IF(LLV(ZLGJ,2)=LLV(ZLGJ,7) AND COUNT(ZLGJ<0,2) AND CROSS(ZLGJ,MA(ZLGJ,2)),1,0); TIKK:=IF(HHV(ZLGJ,2)=HHV(ZLGJ,7) AND COUNT(ZLGJ>50,2) AND CROSS(MA(ZLGJ,2),ZLGJ),1,0); BOLL:MA(CLOSE,20); UPPER:BOLL+2*STD(CLOSE,20); LOWER:BOLL-2*STD(CLOSE,20); STICKLINE(FILTER(TIDD=1,5),C,O,6,0),COLORFF00FF; STICKLINE(FILTER(TIKK=1,1),C,O,6,0),COLOR00FF00; DRAWTEXT(FILTER(TIDD=1,5),LOWER,'買'),COLORMAGENTA,VALIGN0; DRAWTEXT(FILTER(TIKK=1,5),UPPER,'賣'),COLORGREEN,VALIGN2; |