N:=12;M:=20;
TR:= EMA(EMA(EMA(CLOSE,N),N),N);
trix : (TR-REF(TR,1))/REF(TR,1)*100;
TRMA : MA(TRIX,M);
DRAWTEXT(crOSS(TRIX,TRMA),TRMA,'★金'), COLORYELLOW ;
DRAWTEXT(CROSS(TRMA,TRIX),TRIX,'★死'),COLORBLUE ;
N:=12;M:=20;
TR:= EMA(EMA(EMA(CLOSE,N),N),N);
trix : (TR-REF(TR,1))/REF(TR,1)*100;
TRMA : MA(TRIX,M);
DRAWTEXT(crOSS(TRIX,TRMA),TRMA,'★金'), COLORYELLOW ;
DRAWTEXT(CROSS(TRMA,TRIX),TRIX,'★死'),COLORBLUE ;