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),COLORRED;
STICKLINE(K D,D,K,3,0),COLORFFFF33;
STICKLINE(K =0,K,0,1,0),COLORRED;
STICKLINE(K 0,K,0,1,0),COLORGREEN;
STICKLINE(K REF(K,1),0,K,1,0),COLORBLUE;
VAR3:=CROSS(K,D) AND D
VAR4:=CROSS(D,0);
VAR5:=CROSS(K,D) AND D
买一: VAR3,LINETHICK0;
STICKLINE(买一,0.5,0,1,1),COLORFF00FF;
买二: VAR4 OR VAR5,,LINETHICK0;
STICKLINE(买二,0.5,0,1,1),COLORGREEN;
VAR6:=CROSS(D,K);
卖出: VAR6 ,LINETHICK0;
STICKLINE(卖出,0.5,0,1,1),COLORWHITE;
0,DOTLINE;