您现在的位置:好股网 >> 股票公式 >> 通达信公式 >> 一键转帖:通达信] 主图叠加MACD、KDJ 主图公式源码 使用说明

通达信] 主图叠加MACD、KDJ 主图公式源码 使用说明


指标功能:[B]国产软件[/B]
指标类型:简体中文
所需积分:0
推荐星级:
授权方式:共享版
公式大小:0 Bytes
更新时间:2012-09-17 08:35:00
公式简介:

DE:=CONST(LLV(L,90));
JI:=CONST(HHV(H,90))-DE;
DE_K:=DE+JI/3*2;
JI_K:=JI/2;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
DE_A:=CONST(LLV(RSV,90));
DD_A:=CONST(HHV(RSV,90))-DE_A;
R:=(RSV-DE_A)/DD_A;
RSV1:=R*JI_K+DE_K;
K:SMA(RSV1,3,1);
D:SMA(K,3,1);
J:3*K-2*D;
DE_M:=DE+JI/3;
JI_M:=JI/2;
KDL:=CONST(LLV(EMA(C,26),90));
KDH:=CONST(HHV(EMA(C,26),90))-KDL;
R_K1:=(EMA(C,12)-KDL)/KDH;
R_K2:=(EMA(C,26)-KDL)/KDH;
DIF~:(R_K1-R_K2)*JI*1.5+DE_M;
DEA~:EMA(DIF~,9);
MACD~:=(DIF~-DEA~)*2+DE_M;
STICKLINE(MACD~>=DE_M,MACD~,DE_M,0,0),COLORLIBLUE;
D_1:=MACD~>H AND H>=DE_M AND DE_M>=L;
D_2:=MACD~>H AND H>=L AND L>DE_M;
D_3:=H>MACD~ AND MACD~>=L AND L>DE_M;
D_4:=H>MACD~ AND MACD~>DE_M AND DE_M>=L;
STICKLINE(D_1>0,H,DE_M,0,0),COLORYELLOW;
STICKLINE(D_2,H,L,0,0),COLORYELLOW;
STICKLINE(D_3,MACD~,L,0,0),COLORYELLOW;
STICKLINE(D_4,MACD~,DE_M,0,0),COLORYELLOW;
D_5:=MACD~<L AND L<=DE_M AND DE_M<=H;
D_6:=MACD~<L AND H<DE_M;
D_7:=L<MACD~ AND MACD~<=H AND H<DE_M;
D_8:=L<MACD~ AND MACD~<DE_M AND DE_M<=H;
STICKLINE(MACD~<DE_M,DE_M,MACD~,0,0),COLORAA00AA;
STICKLINE(D_5,DE_M,L,0,0),COLORYELLOW;
STICKLINE(D_6,H,L,0,0),COLORYELLOW;
STICKLINE(D_7,H,MACD~,0,0),COLORYELLOW;
STICKLINE(D_8,DE_M,MACD~,0,0),COLORYELLOW;
L_00:DE_K;
L_20:JI_K/5+DE_K;
L_80:JI_K*4/5+DE_K;
L_100:JI_K+DE_K;

{拐点}
Z:ZIG(3,50/5),DOTLINE,COLORD2691E;
G:MA(Z,5),DOTLINE,COLOR4B0082;
S:=CROSS(Z,G);
W:=CROSS(G,Z);
DRAWTEXT(W=1,Z*1.01,'∩S∩');
DRAWTEXT(S=1,Z*0.99,'∪B∪');
 


 



使用说明:拐点指标趋势线向上时,每次回调都是介入时机,拐点指标趋势线向下时,每次反弹都是卖出时机,配合KDJ指标,哪是反弹哪是回调就更加清楚;拐点指标B,G两条趋势线只要有角度上升不变,就可根据KDJ指标买卖或选股。拐点指标B,G两条趋势线下行时,只能抢反弹或不炒做此类股票。



[url=http://www.goodgupiao.com/gupiaogongshi/22586.html][B]通达信] 主图叠加MACD、KDJ 主图公式源码 使用说明[/B][/url]