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
STICKLINE(K<0,K,0,1,0),COLORGREEN;
{ Gupang.com 股-旁-网_通达信股票指标公式}
STICKLINE(K
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),COLORGREEN;
VAR6:=CROSS(D,K);
卖出: VAR6 ,LINETHICK0;
STICKLINE(卖出,0.5,0,1,1),COLORWHITE;
0,DOTLINE;