N:3;
0;
WXS:=(10-5)/2;
JGL_DF:=WXS*(EMA(CLOSE,5)-REF(EMA(CLOSE,5),1));{微分}
DIF_J:=EMA(JGL_DF,10);{积分}
DEA_G:=EMA(DIF_J,8);{平滑}
macd_L:=(DIF_J-DEA_G)*10;
周WXS:=(10-5)/2;
周JGL_DF:=("MacD.DIF#WEEK");
周DIF_J:=("MACD.DIF#WEEK");
周DEA_G:=("MACD.DEA#WEEK");
周MACD_L:=N*(周DIF_J-周DEA_G);
K_DF:=SMA(JGL_DF,3,1)*1,COLORFEDCBA;
D_DF:=SMA(K_DF,3,1),COLOR13F8F9;
J_DF:=3*K_DF-2*D_DF,COLORF813F9;
STICKLINE(周MACD_L>REF(周MACD_L,1) AND 周MACD_L>0,0,周MACD_L,18,0),COLORLIRED;
STICKLINE(周MACD_L0,0,周MACD_L,18,0),COLORWHITE;
STICKLINE(周MACD_L>REF(周MACD_L,1) AND 周MACD_L<0,0,周MACD_L,18,0),COLORCYAN;
STICKLINE(周MACD_L
STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,-1,0),COLORRED;
STICKLINE(MACD>REF(MACD,1) AND MACD<0,0,MACD,-1,1),COLORLIRED;
STICKLINE(MACD0,0,MACD,-1,1),COLORWHITE;
STICKLINE(MACD
{ _通达信股票指标公式}
日DIF_J:EMA(JGL_DF,10),COLORRED,LINETHICK2;
日DEA_G:EMA(DIF_J,8),COLORYELLOW,LINETHICK2;
周A:EMA(周DIF_J,5)-EMA(周DEA_G,10),,COLOR1234AA,LINETHICK2;
周B:EMA(周A,8),COLOR338833,LINETHICK2;
K_DFA:SMA(JGL_DF,3,1)*1,COLORFEDCBA,DOTLINE;
D_DFA:SMA(K_DF,3,1),DOTLINE;
J_DFA:3*K_DF-2*D_DF,DOTLINE;
DRAWICON(crOSS(J_DFA,D_DFA),D_DFA,1);
DRAWICON(CROSS(D_DFA,J_DFA),D_DFA,2);
IF(J_DFA>REF(J_DFA,1),J_DFA,DRAWNULL),COLORRED,DOTLINE;
IF(J_DFA