目前我所看到的最好macd主图指标(含通用原码)
这是我所看到的最好的macd主图,由理想论坛的闻昕老师创作,自己修改了一下,fh的加了macd柱子通达信用
{input:n(18),s(26),p(12),m(9);}
a:=ema(close,s);
t:=ema(close,p);
b:=ema(a,m);
t1:=ema(t,m);
dea:ema(t-(t1-t),2),colorff8866,linethick2;
diff:dea-ema(((a-b)-(t-t1)),1)*6,colorffff66,linethick2;
macd_:stickline(diff>dea,diff,dea,0,0),colorccccff;
stickline(diff<dea,diff,dea,0,0),coloreeaa88;
if(a-b<t-t1,dea,drawnull),colorred,linethick2;
if(a>t and a-b>t-t1,dea,drawnull),color00ff00,linethick2;
if(a>t and a-b<t-t1,dea,drawnull),colorff00bb,linethick2;
drawkline(high,open,low,close);
大量:=hhv(v,n)=v;
小量:=llv(v,n)=v;
大量高价线:if(barslast(大量)>0,ref(h,大量),drawnull),colorff00ff;
小量低价线:if(barslast(小量)>0,ref(h,小量),drawnull),color00ffff;
dzhl2用
input:n(18),s(26),p(12),m(9);
a:=ema(close,s);
t:=ema(close,p);
b:=ema(a,m);
t1:=ema(t,m);
dea:ema(t-(t1-t),2),colorff8866,linethick2;
diff:dea-ema(((a-b)-(t-t1)),1)*6,colorffff66,linethick2;
macd_:stickline(diff>dea,diff,dea,0,0),colorccccff;
stickline(diff<dea,diff,dea,0,0),coloreeaa88;
partline(dea,a-b<t-t1,rgb(255,0,0),a>t and a-b>t-t1,rgb(0,255,0),a>t and a-b<t-t1,rgb(200,0,255) ),linethick2;
我修改的fh的,加了macd柱子
drawgbk(close=close,colorrgb(30,30,60),colorrgb(30,30,60),1);
em26:=ema(close,26);
em12:=ema(close,12);
em269:=ema(em26,9);
em129:=ema(em12,9);
dez:ema(em12-(em129-em12),2),color4d569f,linethick,precision2;//蓝,macd>0,dea<0
diz:dez-ema(((em26-em269)-(em12-em129)),1)*6,colord87484,linethick,precision2;
fillrgn(diz>dez,diz,dez),colord87484;
fillrgn(diz<=dez,diz,dez),color6c7480;
n1:=sysparam(3);
nn:=n1-sysparam(2)+1;
hh:=hhv(c,nn);
ll:=llv(c,nn);
最高:=hh[n1];
最低:=ll[n1];
中:=最低+(最高-最低)*0.5;
stickline(c,中,中,8,0),colorgray,linedot;
macdz:=(diz-dez)*1;
stickline(diz<dez and diz<=ref(diz,1),中,中+macdz,0.1,0),color008080;
stickline(diz<=dez and diz>ref(diz,1),中,中+macdz,0.1,0),colorc080ff;
stickline(diz>dez and diz>ref(diz,1),中,中+macdz,0.1,0),color400080;
stickline(diz>dez and diz<=ref(diz,1),中,中+macdz,0.1,0),color0080ff;
m13:ma(c,13),colorbrown,linethick,precision2;
partline(m13<ref(m13,1),m13),colorwhite,linethick2;
partline(m13>=ref(m13,1),m13),colorbrown,linethick2;
partline(dez>ref(dez,1),dez),color4d569f,linethick2;
{k线}
stickline(c>o,c,o,9,1 ),color0033cc;
stickline(c<o,c,o,9,1 ),colorcyan;
多空:=open;
stickline(close>多空,high,low,2,0),colorff;
stickline(close>多空 and close>open,open,close,6.5,0),color102088;
stickline(close>多空 and close>open,open,close,6,0),color102099;
stickline(close>多空 and close>open,open,close,5.5,0),color1020aa;
stickline(close>多空 and close>open,open,close,5,0),color1020bb;
stickline(close>多空 and close>open,open,close,4,0),color1020cc;
stickline(close>多空 and close>open,open,close,3,0),color1020dd;
stickline(close>多空 and close>open,open,close,2,0),color1020ee;
stickline(close>多空 and close>open,open,close,1,0),color1020ff;
stickline(close>多空 and close<open,open,open,6.5,0),color102088;
stickline(close>多空 and close<open,open,open,6,0),color102099;
stickline(close>多空 and close<open,open,open,5.5,0),color1020aa;
stickline(close>多空 and close<open,open,open,5,0),color1020bb;
stickline(close>多空 and close<open,open,open,4,0),color1020cc;
stickline(close>多空 and close<open,open,open,3,0),color1020dd;
stickline(close>多空 and close<open,open,open,2,0),color1020ee;
stickline(close>多空 and close<open,open,open,1,0),color1020ff;
stickline(close<多空,high,low,2,0),colorff8800;
stickline(close<多空 and close<open,open,close,6.5,0),colorff7700;
stickline(close<多空 and close<open,open,close,6,0),colorff8800;
stickline(close<多空 and close<open,open,close,5.5,0),colorff9900;
stickline(close<多空 and close<open,open,close,5,0),colorffaa00;
stickline(close<多空 and close<open,open,close,4,0),colorffbb00;
stickline(close<多空 and close<open,open,close,3,0),colorffcc00;
stickline(close<多空 and close<open,open,close,2,0),colorffdd00;
stickline(close<多空 and close<open,open,close,1,0),colorffee00;
stickline(close<多空 and close>open,open,open,6.5,0),colorff7700;
stickline(close<多空 and close>open,open,open,6,0),colorff8800;
stickline(close<多空 and close>open,open,open,5.5,0),colorff9900;
stickline(close<多空 and close>open,open,open,5,0),colorffaa00;
stickline(close<多空 and close>open,open,open,4,0),colorffbb00;
stickline(close<多空 and close>open,open,open,3,0),colorffcc00;
stickline(close<多空 and close>open,open,open,2,0),colorffdd00;
stickline(close<多空 and close>open,open,open,1,0),colorffee00;
stickline(close=多空,open,close,6.5,0),colorffff00;
stickline(close=多空,high,low,2,0),colorffff00;
{直线板k}
stickline(high=low and close=openand (close/ref(close,1))>1.048,high,low,9,0) ,colorred;
stickline(high=low and close=openand (ref(close,1)/close)>1.048,high,low,9,0) ,color00ff00;
持股线:ma(c,8);
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文[通达信大智慧L2解密]MACD量价平台公式 飞狐解密大智慧指标 源码仅供学习研究。