以下是同花顺先军KDJ指标公式
本指标使用说明:
1,红柱持股,绿柱持币,白柱过渡
2,红箭头均线多头,绿箭头均线空头
3,配合上方KD指标
4,本指标是短线窥测的改版
{\”均线系统\”;}
N1:=5;
N2:=10;
N3:=20;
N4:=30;
EMA7:=EMA(C,7);
BBI:=(MA(CLOSE,N1)+MA(CLOSE,N2)+MA(CLOSE,N3)+MA(CLOSE,N4))/4;
过渡:IF(BBI,10,DRAWNULL),colorwhite,LINETHICK9;
持股:IF(C>BBI AND BBI>REF(BBI,1),10,DRAWNULL), colorred,LINETHICK9;
持币:IF(C<=BBI AND BBI<=REF(BBI,1),10,DRAWNULL),colorgreen,LINETHICK9;
DRAWICON(CROSS(EMA7,BBI),7,1);
DRAWICON(CROSS(BBI,EMA7),0,2);
{\”9天KDJ\”;}
RSV=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
a=SMA(RSV,3,1);
b=SMA(a,3,1);
e=3*a-2*b;
IF(a<0) a=0;
IF(a>100) a=100;
IF(b<0) b=0;
IF(b>100) b=100;
IF(e<0) e=0;
IF(e>100) e=100;
K:a,coloryellow;
D:b,COLORFFFF00;
J:e,colorlired;
强势区:80,colorgray;
强弱分界:50,colorred;
弱势区:20,colorgray;
{大型股票公式,股票编程,股票技术教程投稿平台-你就是股神,网址:694.cn 备注:如果正文内容没有显示完全的,说明在附件中,请点击‘立即下载’下载该附件!}