淡出指标区很久了,已经很长时间没有发过指标,九月将临,现将我自用的kdj贴出来,指标不过参考而已,谈不上什么宝贝或者说精品,所以敢拿出来献丑。不想多解释,用则悟之,弃则扔之。指标主要是用来看趋势,你喜欢怎么删减优化都行,希望能为有心人提供一些灵感!
====================================================
drawgbk(close=close,colorrgb(30,30,60),colorrgb(30,30,60),1);
rsvc:=(close-llv(low,89))/(hhv(high,89)-llv(low,89))*(c+h+l+o)/4;
rsv89:=(close-llv(low,89))/(hhv(high,89)-llv(low,89))*100;
k89:=sma(rsv89,5,1);
k:sma(rsvc,5,1),linethick,colorred,precision2;
d:sma(k,4,1),colorfff000,linethick,precision2;
j:=4*k-3*d;
rsvz:=(close-llv(low,55))/(hhv(high,55)-llv(low,55))*(c+o+h+l)/4;
kz:=sma(rsvz,4,1),colorc080ff,linethick,precision2;
dz:=sma(kz,3,1),colorffffff,linethick,precision2;
jz:4*kz-3*dz,colorffffff,linethick,linedot,precision2;
js:ema(jz,5),color00ff00,linethick,linedot,precision2;
kem:ema(k,14),color1477ff,linethick,precision2;
rsvt:=(close-llv(low,14))/(hhv(high,14)-llv(low,14))*(c+o+h+l)/4;
kt:=sma(rsvt,3,1),colorc080ff,linethick,precision2;
dt:=sma(kt,3,1),colorffffff,linethick,precision2;
jt:=4*kt-3*dt;
macd:=(jz-kz)*0.8;
macd2:=(jt-kt)*0.5;
macd1:=(j-k)*1.2,color8855ff,linethick0;
fillrgn(k>ema(k,14),k,ema(k,14)),color441f7d;
fillrgn(k<=ema(k,14),k,ema(k,14)),colorgray;
stickline(macd1>ref(macd1,1) and macd1>0,0,macd1+0,8.3,1),colorred;
stickline(macd1<=ref(macd1,1) and macd1>0,0,macd1+0,8.3,1),colorfff000;
stickline(macd1>ref(macd1,1) and macd1<0,0,macd1+0,8.3,1),color555fff;
stickline(macd1<=ref(macd1,1) and macd1<0,0,macd1+0,8.3,1),color408080;
stickline(macd>ref(macd,1) and macd>0,0,macd+0,5.5,0),coloraa00bb;
stickline(macd>ref(macd,1) and macd>0,0,macd+0,4,0),colorcc22bb;
stickline(macd>ref(macd,1) and macd>0,0,macd+0,2,0),colordd33bb;
stickline(macd>ref(macd,1) and macd>0,0,macd+0,1,0),colorff55bb;
stickline(macd<=ref(macd,1) and macd>0,0,macd+0,5.5,0),color666666;
stickline(macd<=ref(macd,1) and macd>0,0,macd+0,4,0),color777777;
stickline(macd<=ref(macd,1) and macd>0,0,macd+0,2,0),color888888;
stickline(macd<=ref(macd,1) and macd>0,0,macd+0,1,0),color999999;
stickline(macd>ref(macd,1) and macd<0,0,macd+0,5.5,0),color3377aa;
stickline(macd>ref(macd,1) and macd<0,0,macd+0,4,0),color3388bb;
stickline(macd>ref(macd,1) and macd<0,0,macd+0,2,0),color4499cc;
stickline(macd>ref(macd,1) and macd<0,0,macd+0,1,0),color5599dd;
stickline(macd<=ref(macd,1) and macd<0,0,macd+0,5.5,0),colorff3300;
stickline(macd<=ref(macd,1) and macd<0,0,macd+0,4,0),colorff4400;
stickline(macd<=ref(macd,1) and macd<0,0,macd,2,0),colorff5500;
stickline(macd<=ref(macd,1) and macd<0,0,macd,1,0),colorff6600;
stickline(macd2>ref(macd2,1) and macd2>0,0,macd2+0,1.5,0),color00ffff;
stickline(macd2<=ref(macd2,1) and macd2>0,0,macd2+0,1.5,0),colorfff000;
stickline(macd2>ref(macd2,1) and macd2<0,0,macd2+0,1.5,0),colorffffff;
stickline(macd2<=ref(macd2,1) and macd2<0,0,macd2+0,1.5,0),color00ff00;
stickline(k>d,k,d,4,0),colorff0070;
stickline(k>d,k,d,2,0),colorff1180;
stickline(k>d,k,d,1,0),colorff2290;
stickline(k<d,k,d,4,0),colorff4400;
stickline(k<d,k,d,2,0),colorff6600;
stickline(k<d,k,d,1,0),colorff8800;
stickline(k<d and k89>50,k,d,4,0),colorbbbb00;
stickline(k<d and k89>50,k,d,2,0),colordddd00;
stickline(k<d and k89>50,k,d,1,0),colorffff00;
stickline(k>d and k89<20,k,d,4,0),color1155aa;
stickline(k>d and k89<20,k,d,2,0),color2277bb;
stickline(k>d and k89<20,k,d,1,0),color3399cc;
stickline(k>d and k89>50,k,d,4,0),color0000aa;
stickline(k>d and k89>50,k,d,2,0),color0000dd;
stickline(k>d and k89>50,k,d,1,0),color0000ff;
stickline(k>d and k89>79,k,d,4,0),color00ddee;
stickline(k>d and k89>79,k,d,2,0),color00eeee;
stickline(k>d and k89>79,k,d,1,0),color00ffff;
stickline(k>d and k89>89,k,d,4,0),coloraaaaaa;
stickline(k>d and k89>89,k,d,2,0),colorbbbbbb;
stickline(k>d and k89>89,k,d,1,0),colordddddd;
stickline(k>d and k89>94,k,d,4,0),color005500;
stickline(k>d and k89>94,k,d,2,0),color007700;
stickline(k>d and k89>94,k,d,1,0),color009900;
kem,color1477ff,linethick1,precision2;
partline(kem<ref(kem,1),kem),color008000,linethick1;
partline(c,k),colorred,linethick1,linedot;
partline(c,d),colorfff000,linethick1,linedot;
jz,colorffffff,linethick1;
js,color00ff00,linethick1;
上一指标公式:仓位增减+乖离率差公式 飞狐仓位乖离率差指标 源码
下一指标公式:买卖频谱公式 飞狐频谱指标 源码
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文自用KDJ公式 飞狐自用指标 源码仅供学习研究。