最新更新 - 网站地图 -
您的当前位置:首页 > 股票指标 > KDJ指标 > MACB&KDJ叠加(飞狐)

MACB&KDJ叠加(飞狐)

来源:网络 点击: 时间:2022-12-30 22:54:38

{macb}
DIFF : EMA(C,12) - EMA(C,26),PRECISION2,LINETHICK2,COLORGREEN;
DEA : EMA(DIFF,9),PRECISION2,LINETHICK2,ColorFFA800;
MACD : 2*(DIFF-DEA),PRECISION2,LINETHICK,COLORGRAY;
{kdj}
RSV:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
K:SMA(RSV,3,1),PRECISION2,LINETHICK,COLORWHITE;
D:SMA(K,3,1),PRECISION2,LINETHICK,COLORYELLOW;
J:3*K-2*D,PRECISION2,LINETHICK,ColorFF80FF;
{叠加}
n1:=sysparam(3); n2:=sysparam(2); n3:=(n1-n2)+1; hh:=hhv(DIFF,n3); ll:=llv(MACD,n3);
zhh:=hh[n1]; zll:=ll[n1]; Rh:=hhv(J,0); RL:=LLv(J,0); q:=datacount;
Rb:=(zhh-zll)/(RH[q]-RL[q]); Ry:=(zhh+zll-rb*(RH[q]+RL[q]))/2;
叠K:=k*rb+ry; 叠D:=d*rb+ry; 叠J:=J*rb+ry;
STICKLINE(MACDSTICKLINE(MACD0,0,MACD,0,0),COLORYELLOW;
STICKLINE(MACD>ref(MACD,1) and MACD<0,0,MACD,0,0),COLORMAGENTA;
STICKLINE(MACD>ref(MACD,1) and MACD>0,0,MACD,0,0),COLORRED;
PARTLINE(1,叠K),COLORWHITE;
PARTLINE(1,叠D),COLORYELLOW;
PARTLINE(1,叠J),ColorFF80FF;
//

    Copyright 2018- www.dyjian.com/ 大宇股票知识网 海口美兰韩哲棚百货商行 版权所有 琼ICP备2023001966号

    免责声名:本站所发表的内容仅用于学术交流和学习,内容所带来的一切后果均与本站无关。若您发现本站存在您非授权的原创作品,请第一时间联系本站删除!

    Top