MAZ:=MA(CLOSE,3);
MA1:=MA(CLOSE,5),COLORWHITE;
MA2:=MA(CLOSE,10),COLORYELLOW;
MA3:=MA(CLOSE,15);
MA4:MA(CLOSE,20),COLORMAGENTA;
MA5:MA(CLOSE,55),COLORGREEN;
MM:=CROSS(MA1,MA3);
STICKLINE(MM,LLV(L,4),LLV(L,4),50,1),COLORWHITE;
DRAWTEXT(MM,LLV(L,4),'止损'),COLORWHITE;
DRAWLINE(MAZ>=HHV(MAZ,5),MAZ,MAZ<=LLV(MAZ,5),MAZ,1),COLORLIBLUE,LINETHICK1;
DRAWLINE(MAZ<=LLV(MAZ,5),MAZ,MAZ>=HHV(MAZ,5),MAZ,1),COLORLIBLUE,LINETHICK1;
DRAWLINE(MA1>=HHV(MA1,5),MA1,MA1<=LLV(MA1,5),MA1,1),COLORRED,LINETHICK2;
DRAWLINE(MA1<=LLV(MA1,5),MA1,MA1>=HHV(MA1,5),MA1,1),COLORRED,LINETHICK2;