macd日周源码下载:
{周macd柱线}
macd周:=macd.macd#week,nodraw;
stickline(macd周>=0,0,macd周,4.2,0),color0080ff;
stickline(macd周>=0 and macd周<ref(macd周,weekday),0,macd周,4.2,0),colorliblue;
stickline(macd周<0,0,macd周,4.2,0),colorliblue;
stickline(macd周<0 and macd周>ref(macd周,weekday),0,macd周,4.2,0),color0080ff;
{日macd的柱线}
macd2:=2*("macd.dif" - "macd.dea");
stickline(macd2>=0,0,macd2,1.4,0),color000096;
stickline(macd2>=0,0,macd2,1.2,0),color0000a5;
stickline(macd2>=0,0,macd2,1.0,0),color0000b4;
stickline(macd2>=0,0,macd2,0.8,0),color0000c3;
stickline(macd2>=0,0,macd2,0.6,0),color0000d2;
stickline(macd2>=0,0,macd2,0.4,0),color0000e1;
stickline(macd2>=0,0,macd2,0.2,0),color0000f0;
stickline(macd2>=0,0,macd2,0.05,0),color0000ff;
stickline(macd2>=0 and macd2<ref(macd2,1),0,macd2,1.4,0),color009600;
stickline(macd2>=0 and macd2<ref(macd2,1),0,macd2,1.2,0),color00a500;
stickline(macd2>=0 and macd2<ref(macd2,1),0,macd2,1.0,0),color00b400;
stickline(macd2>=0 and macd2<ref(macd2,1),0,macd2,0.8,0),color00c300;
stickline(macd2>=0 and macd2<ref(macd2,1),0,macd2,0.6,0),color00d200;
stickline(macd2>=0 and macd2<ref(macd2,1),0,macd2,0.4,0),color00e100;
stickline(macd2>=0 and macd2<ref(macd2,1),0,macd2,0.2,0),color00f000;
stickline(macd2>=0 and macd2<ref(macd2,1),0,macd2,0.05,0),color00ff00;
stickline(macd2<0,0,macd2,1.4,0),color009600;
stickline(macd2<0,0,macd2,1.2,0),color00a500;
stickline(macd2<0,0,macd2,1.0,0),color00b400;
stickline(macd2<0,0,macd2,0.8,0),color00c300;
stickline(macd2<0,0,macd2,0.6,0),color00d200;
stickline(macd2<0,0,macd2,0.4,0),color00e100;
stickline(macd2<0,0,macd2,0.2,0),color00f000;
stickline(macd2<0,0,macd2,0.05,0),color00ff00;
stickline(macd2<0 and macd2>ref(macd2,1),0,macd2,1.4,0),color000096;
stickline(macd2<0 and macd2>ref(macd2,1),0,macd2,1.2,0),color0000a5;
stickline(macd2<0 and macd2>ref(macd2,1),0,macd2,1.0,0),color0000b4;
stickline(macd2<0 and macd2>ref(macd2,1),0,macd2,0.8,0),color0000c3;
stickline(macd2<0 and macd2>ref(macd2,1),0,macd2,0.6,0),color0000d2;
stickline(macd2<0 and macd2>ref(macd2,1),0,macd2,0.4,0),color0000e1;
stickline(macd2<0 and macd2>ref(macd2,1),0,macd2,0.2,0),color0000f0;
stickline(macd2<0 and macd2>ref(macd2,1),0,macd2,0.05,0),color0000ff;
{周dif,周dea}
周dif:macd.dif#week,colorgray,nodraw;
周dea:macd.dea#week,colorgray,nodraw;
周金叉:=周dif>周dea;
周死叉:=周dif<周dea;
stickline(周金叉,周dif,周dea,0,0),color008080;
stickline(周死叉,周dif,周dea,0,0),colorblue;
{macd周线的背离}
za1:=barslast(ref(cross(周dif,周dea),1));
周底背离:=ref(close,za1+1)>close and 周dif>ref(周dif,za1+1) and cross(周dif,周dea);
za2:=barslast(ref(cross(周dea,周dif),1));
周顶背离:=ref(close,za2+1)<close and ref(周dif,za2+1)>周dif and cross(周dea,周dif);
drawtext(周底背离,周dif*1.02,'周底背'),colorwhite;
drawtext(周顶背离,周dif*1.02,'周顶背'),colorgreen;
{日线dif和dea}
dif:ema(close,12)-ema(close,26)colorlimagenta,linethick2;
dea:ema(dif,9)colorff0080;{好公式网-最好的股票公式网站 www.goodgongshi.com}
macd:2*(dif-dea)colorwhite,nodraw;
{macd日线底背离}
a1:=barslast(ref(cross(dif,dea),1));
底背离:=ref(close,a1+1)>close and dif>ref(dif,a1+1) and cross(dif,dea);
drawtext(底背离,dif*1,'日底背'),colorwhite;
{macd日线顶背离}
a2:=barslast(ref(cross(dea,dif),1));
顶背离:=ref(close,a2+1)<close and ref(dif,a2+1)>dif and cross(dea,dif);
drawtext(顶背离,dif*1,'日顶背'),colorgreen;
{macd_kdj的金叉共振}
rsv:=(close-llv(low,9))/(hhv(high,9)-llv(low,9));
k:=sma(rsv,9,3),nodraw;
d:=sma(k,9,3),nodraw;
j:=3*k-2*d,nodraw;
a:=cross(dif,dea) and cross(k,d) and cross(j,d);
drawtext(a,dif*1.5,'macd_kdj金叉共振'),colorwhite;
上一指标公式:追就涨码副图选股公式下载
下一指标公式:柱出即买下载
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文MACD日周下载仅供学习研究。