JJ:=(CLOSE+HIGH+LOW+O)/4;
A:=EMA(JJ,6);
B:=EMA(JJ,2);
STICKLINE(A>REF(A,1) AND REF(A,1)>REF(A,2) ,A,REF(A,1),4,1),COLORRED;
STICKLINE(A>REF(A,1) AND REF(A,1)<REF(A,2) ,A,REF(A,1),4,0),COLORRED;
STICKLINE(A>REF(A,1) AND REF(A,1)<REF(A,2) ,A,REF(A,1),2,1),COLORRED;
STICKLINE(A<REF(A,1),A,REF(A,1),4,0),COLORCYAN;
操盘线:(20*B+19*REF(B,1)+18*REF(B,2)+17*REF(B,3)+16*REF(B,4)+15*REF(B,5)+14*REF(B,6)
+13*REF(B,7)+12*REF(B,8)+11*REF(B,9)+10*REF(B,10)+9*REF(B,11)+8*REF(B,12)
+7*REF(B,13)+6*REF(B,14)+5*REF(B,15)+4*REF(B,16)+3*REF(B,17)+2*REF(B,18)+
REF(B,20))/210,COLORMAGENTA;
IF( 操盘线<= REF(操盘线,1),操盘线,DRAWNULL),COLORGREEN;
IF( 操盘线> REF(操盘线,1) ,操盘线,DRAWNULL),COLORMAGENTA;
IF( 操盘线> REF(操盘线,1),EMA(操盘线,2),DRAWNULL),COLORMAGENTA;