MA18:=MA(CLOSE,18);:=C-REF(C,1);DX:=100*EMA(EMA(MTM,7),7)/EMA(EMA(A(MTM),7),7);买:=LLV(DX,3)=LLV(DX,8) AND COUNT(DX<0 OSS(DX,MA(DX,2));DRAWTEXT(FILTER(买=1,5),LOW*0.98, colorred;卖一:=HHV(DX,2)>50,2) AND CROSS(MA(DX,2),DX);DRAWTEXT(FILTER(卖一=1,1),HIGH*1.02,'★卖'),colorgreen;