N1:=8;N2:=20;
X1:EMA(C,n1),COLORWHITE;
X2:EMA(c,n2),COLORYELLOW;
X3:EMA(X2,n2),COLORF0F000;
VAR4: EMA(CLOSE,N1),COLORWHITE;
VAR5: EMA(CLOSE,N2),COLORYELLOW;
STICKLINE(VAR4>VAR5,VAR5,VAR4,0.1,0),COLORGREEN;
STICKLINE(VAR4<VAR5,VAR4,VAR5,0.1,0),COLORF00FF0;
DRAWTEXT(CROSS(VAR5,VAR4),VAR4,'★止损'),COLORGRAY;
DRAWTEXT(CROSS(VAR4,VAR5),VAR4,'★买入'),COLORRED;