drawgbk(c=c,colorrgb(130,130,130),colorrgb(30,30,30),1);
lc := ref(close,1);
rsi1:=sma(max(close-lc,0),14,1)/sma(abs(close-lc),14,1)*400-200;
fillrgn(rsi1>-60,rsi1,-60),color6699cc;
fillrgn(rsi1<-60,rsi1,-60),colorgray;
rsi:sma(max(close-lc,0),14,1)/sma(abs(close-lc),14,1)*100,linethick0;
//////////
di := (ema(close,12) - ema(close,26))*100;
de:= ema(di,9);
macd := 2*(di-de);
////////////
rsv:=(close-llv(low,13))/(hhv(high,13)-llv(low,13))*400-200;
k1:=sma(rsv,3,1),colormagenta,linethick2;
d1:=sma(k1,3,1),colorgreen,linethick0;
j1:=3*k1-2*d1,coloryellow,linethick2;
fillrgn(j1<k1,j1,k1),colorff0000;
fillrgn(j1>k1,j1,k1),colormagenta;
fillrgn(k1>d1,d1,k1),coloryellow;
fillrgn(k1<d1,d1,k1),colorcyan;
///////////
{红柱}
stickline(macd>0andmacd>ref(macd,1),macd,0,3,0),color0000aa;
stickline(macd>0andmacd>ref(macd,1),macd,0,2.7,0),color0000bb;
stickline(macd>0andmacd>ref(macd,1),macd,0,2.3,0),color0000cc;
stickline(macd>0andmacd>ref(macd,1),macd,0,2,0),color0000cc;
stickline(macd>0andmacd>ref(macd,1),macd,0,1.6,0),color0000dd;
stickline(macd>0andmacd>ref(macd,1),macd,0,1.2,0),color0000ee;
stickline(macd>0andmacd>ref(macd,1),macd,0,0.8,0),color0000ff;
stickline(macd>0andmacd>ref(macd,1),macd,0,0.5,0),colorred;
{黄柱}
stickline(macd>0andmacd<ref(macd,1),macd,0,3,0),color0090ff;
stickline(macd>0andmacd<ref(macd,1),macd,0,2.7,0),color009fff;
stickline(macd>0andmacd<ref(macd,1),macd,0,2.3,0),color00a6ff;
stickline(macd>0andmacd<ref(macd,1),macd,0,2,0),color00b5ff;
stickline(macd>0andmacd<ref(macd,1),macd,0,1.6,0),color00c4ff;;
stickline(macd>0andmacd<ref(macd,1),macd,0,1.2,0),color00d3ff;
stickline(macd>0andmacd<ref(macd,1),macd,0,0.8,0),color00e2ff;
stickline(macd>0andmacd<ref(macd,1),macd,0,0.5,0),color00ffff;
{蓝柱}
stickline(macd<0andmacd<ref(macd,1),macd,0,3,0),colorff0000;
stickline(macd<0andmacd<ref(macd,1),macd,0,2.7,0),colorff3300;
stickline(macd<0andmacd<ref(macd,1),macd,0,2.3,0),colorff5500;
stickline(macd<0andmacd<ref(macd,1),macd,0,2,0),colorff7700;
stickline(macd<0andmacd<ref(macd,1),macd,0,1.6,0),colorff9900;
stickline(macd<0andmacd<ref(macd,1),macd,0,1.2,0),colorffbb00;
stickline(macd<0andmacd<ref(macd,1),macd,0,0.8,0),colorffdd00;
stickline(macd<0andmacd<ref(macd,1),macd,0,0.5,0),colorffff00;
{粉柱}
stickline(macd<0andmacd>ref(macd,1),macd,0,3,0),colorff00a9;
stickline(macd<0andmacd>ref(macd,1),macd,0,2.7,0),colorff00a1;
stickline(macd<0andmacd>ref(macd,1),macd,0,2.3,0),colorff00aa;
stickline(macd<0andmacd>ref(macd,1),macd,0,2,0),colorff00bb;
stickline(macd<0andmacd>ref(macd,1),macd,0,1.6,0),colorff00cc;
stickline(macd<0andmacd>ref(macd,1),macd,0,1.2,0),colorff00dd;
stickline(macd<0andmacd>ref(macd,1),macd,0,0.8,0),colorff00ee;
stickline(macd<0andmacd>ref(macd,1),macd,0,0.5,0),colorff00ff;
///////////
partline(di>=de or di<de,di),colorbb,linethick2;
partline(di>=de or di<de,de),colorwhite,linethick1;
diff : (ema(close,12) - ema(close,26)),colorbb,linethick0;
dea: ema(diff,9),colorwhite,linethick0;
///////////
rsv1:=(close-llv(low,13))/(hhv(high,13)-llv(low,13))*100;
k:sma(rsv1,3,1),color330700,linethick0;
d:sma(k,3,1),colorcyan,linethick0;
j:3*k-2*d,colormagenta,linethick0;
//////////
typ:=(high+low+close)/3;
cci:(typ-ma(typ,14))/(0.015*avedev(typ,14)),linethick2,colorgreen;
//////////
drawicon(cross(k1,d1),d1,12),align0;
drawicon(cross(d1,k1),d1,11),align0;
200,colorgreen,linedot;
150,colorwhite,pointdot;
100,colorwhite,pointdot;
0,colorgray,linethick2;
-100,colorwhite,pointdot;
-150,colorwhite,pointdot;
-200,colorred,linedot;
上一指标公式:劲系金典公式 飞狐劲系金典指标 源码
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文KDJ+MACD+CCI+RSI组合公式 飞狐MACDKDJ指标 源码仅供学习研究。