JJ:=C;
A:=EMA(JJ,3);
B:=REF(A,1);
STICKLINE(A>B,A,B,2,0),COLORYELLOW;
STICKLINE(A<B,A,B,2,0),COLORLIBLUE;
中线:MA(CLOSE,21),COLORRED;
上线:中线+2*STD(CLOSE,21) COLORFF00FF;
下线:中线-2*STD(CLOSE,21) COLORWHITE;
抄底: CROSS(A,下线);{}
STICKLINE(抄底=1,下线-1,下线-2,3,0),COLORLIBLUE;
DRAWTEXT(抄底=1,下线-3,'底'),COLORLIBLUE;
拉高: CROSS(A,上线),COLORRED;
STICKLINE(拉高=1,上线+1,上线+2,3,0),COLORRED;
DRAWTEXT(拉高=1,上线+3,'拉'),COLORRED;