VAR1:=(2*CLOSE+HIGH+LOW)/4;
VAR2:=EXPma(expma(EXPMA(VAR1,4),4),4);
J:= (VAR2-REF(VAR2,1))/REF(VAR2,1)*100, COLORSTICK;
D: MA(J,2);
K: MA(J,1);
STICKLINE(K>=D,K,D,3,0),COLORWHITE;
STICKLINE(K<D,D,K,3,0),COLORFFFF33;
STICKLINE(K>=0,K,0,1,0),COLORWHITE;
STICKLINE(K<0,K,0,1,0),COLORCYAN;
STICKLINE(K<REF(K,1),0,K,1,0),COLORYELLOW;
VAR3:=crOSS(K,D) AND D<0;
VAR4:=CROSS(D,0);
VAR5:=CROSS(K,D) AND D>0;
买一: VAR3,LINETHICK0;
STICKLINE(买一,0.5,0,1,1),COLORFF00FF;
买二: VAR4 OR VAR5,,LINETHICK0;
STICKLINE(买二,0.5,0,1,1),COLORCYAN;
VAR6:=CROSS(D,K);
卖出: VAR6 ,LINETHICK0;
STICKLINE(卖出,0.5,0,1,1),COLORRED;
0,DOTLINE;