SHORT:=12;LONG:=26;MID:=9;M:=3;
WXS:=(LONG-SHORT)/2;{系数};
JGL_DF:=WXS*(EMA(CLOSE,SHORT)-REF(EMA(CLOSE,SHORT),1));{微分};
DIF_J:EMA(JGL_DF,LONG),COLORFEDCBA,LINETHICK2;{积分};
DEA_G:EMA(DIF_J,MID),LINETHICK2;{平滑};
MACD_L:(DIF_J-DEA_G)*2,COLOR1133FE,COLORSTICK;
K_DF:SMA(JGL_DF,M,1),COLOR1188FF;{以下为“类KDJ”};
D_DF:SMA(K_DF,3,1),COLOR13FF99;
J_DF:2.6*K_DF-1.6*D_DF,COLORAF13FA;
RF:=REF(J_DF,1);
STICKLINE(J_DF>=RF,J_DF,RF,2.3,0),COLOR1399FE;
STICKLINE(J_DF>=RF,J_DF,RF,1.0,0),COLOR13DDFE;
STICKLINE(J_DF<RF,J_DF,RF,2.3,0),COLORFF9913;
STICKLINE(J_DF<RF,J_DF,RF,1.0,0),COLORFFDD13;