MACD大杀器指标 (源码)
通达信MACD大杀器指标公式股票软件源码如下:
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_L<REF(周MACD_L,1) AND 周MACD_L>0,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<REF(周MACD_L,1) AND 周MACD_L<0,0,周MACD_L,18,0),COLORBLUE;
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(MACD<REF(MACD,1) AND MACD>0,0,MACD,-1,1),COLORWHITE;
STICKLINE(MACD<REF(MACD,1) AND MACD<0,0,MACD,-1,0),COLORCYAN;
{www.gpxiazai.com 股票软件下载网_通达信股票指标公式}
日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<REF(J_DFA,1),J_DFA,DRAWNULL),COLORBLUE,DOTLINE;
- 上一篇公式:神奇筹码波指标 (源码)
- 下一篇公式:散户主力线加强版指标 (源码)