diff:=(ema(close,12)-ema(close,26));
dea:=ema(diff,9);
macd:2*(diff-dea),colorstick;
stickline(macd<ref(macd,1)and macd>0,0,macd,8,0),color00aaff;
stickline(macd<ref(macd,1)and macd>0,0,macd,6.6,0),color00bbff;
stickline(macd<ref(macd,1)and macd>0,0,macd,4.4,0),color00ccff;
stickline(macd<ref(macd,1)and macd>0,0,macd,3.3,0),color00ddff;
stickline(macd<ref(macd,1)and macd>0,0,macd,2.2,0),color00eeff;
stickline(macd<ref(macd,1)and macd>0,0,macd,1.1,0),color00ffff;
stickline(macd>=ref(macd,1)and macd>0,0,macd,8,0),color0000aa;
stickline(macd>=ref(macd,1)and macd>0,0,macd,6.6,0),color0011bb;
stickline(macd>=ref(macd,1)and macd>0,0,macd,4.4,0),color0022cc;
stickline(macd>=ref(macd,1)and macd>0,0,macd,3.3,0),color0033dd;
stickline(macd>=ref(macd,1)and macd>0,0,macd,2.2,0),color0044ee;
stickline(macd>=ref(macd,1)and macd>0,0,macd,1.1,0),color0055ff;
stickline(macd>ref(macd,1)and macd<0,0,macd,8,0),coloraa00bb;
stickline(macd>ref(macd,1)and macd<0,0,macd,6.6,0),colorbb11bb;
stickline(macd>ref(macd,1)and macd<0,0,macd,4.4,0),colorcc22bb;
stickline(macd>ref(macd,1)and macd<0,0,macd,3.3,0),colordd33bb;
stickline(macd>ref(macd,1)and macd<0,0,macd,2.2,0),coloree44bb;
stickline(macd>ref(macd,1)and macd<0,0,macd,1.1,0),colorff55bb;
stickline(macd<=ref(macd,1)and macd<0,0,macd,8,0),colorffaa00;
stickline(macd<=ref(macd,1)and macd<0,0,macd,6.6,0),colorffbb11;
stickline(macd<=ref(macd,1)and macd<0,0,macd,4.4,0),colorffcc22;
stickline(macd<=ref(macd,1)and macd<0,0,macd,3.3,0),colorffdd33;
stickline(macd<=ref(macd,1)and macd<0,0,macd,2.2,0),colorffee44;
stickline(macd<=ref(macd,1)and macd<0,0,macd,1.1,0),colorffff55;
rsv:=(close-llv(low,9))/(hhv(high,9)-llv(low,9))*100;
k:=sma(rsv,3,1);
d:=sma(k,3,1);
j:3*k-2*d,linethick0;
周k:=ma("kdj.k#week"(9,3,3),5);
周d:=ma("kdj.d#week"(9,3,3),5);
周j:=ma("kdj.j#week"(9,3,3),5);
drawicon(k<20 and cross(k,d),macd,8),linethick1,align2,colorbrown;
日金▲: drawtext(cross("kdj.k#day"(9,3,3),"kdj.d#day"(9,3,3)),macd,'▲'),align2,colorgray;
日死▼: drawtext(cross("kdj.d#day"(9,3,3),"kdj.k#day"(9,3,3)),macd*1.5,'▼'),align2,colorwhite;
周金▲: drawtext(cross("kdj.k#week"(9,3,3),"kdj.d#week"(9,3,3)),macd,'▲'),align2,colorred;
周死▼: drawtext(cross("kdj.d#week"(9,3,3),"kdj.k#week"(9,3,3)),macd*1.5,'▼'),,align2,colorgreen;
月金▲: drawtext(cross("kdj.k#month"(9,3,3),"kdj.d#month"(9,3,3)),macd,'▲'),align2,colormagenta;
月死▼: drawtext(cross("kdj.d#month"(9,3,3),"kdj.k#month"(9,3,3)),macd*1.5,'▼'),align2,coloryellow;
diff: (ema(close,12)-ema(close,26)),colorwhite;
dea:ema(diff,9),colorwhite;
partline(c>ma(c,15) and diff>=dea,dea),colormagenta,linethick2;
partline(c>ma(c,15) and diff>=dea,diff),colorred,linethick2;
partline(c<ma(c,15),dea),colorgreen,linethick2;
partline(c<ma(c,15),diff),colorgreen,linethick2;
vertline(diff<70 and cross(diff,dea)),colorred;
vertline(cross(dea,diff)),colorwhite;
上一指标公式:亮剑一招稳赢公式 飞狐一招指标 源码
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文MACD-KDJ金死叉公式 飞狐MACD指标 源码仅供学习研究。