发现了这个主图,将macd柱子趋势加到了主图显示中,还有很不错的买卖提示
原作者主图叫感谢,我也叫感谢吧
源码:高1:=ref(hhv(h,150),3);
低1:=ref(llv(l,150),3);
h3:=高1-(高1-低1)*0.5;
中轴:refdate(h3,date),pointdot,colorligray,linethick3;
b1:=ema(c,12);
b2:=ema(c,26);
b3:=b1-b2;
wdif:=ema(ema(ema(c,3),3),3)+b3;
wdea:=ema(wdif,9);
macd:=2*(wdif-wdea);
stickline(macd>0,中轴,中轴+macd,0,1),colorred;
stickline(macd<0,中轴,中轴+macd,0,1),colorliblue;
stickline(macd<ref(macd,1)and macd>0,中轴,中轴+macd,0,0 ),color00bbff;
stickline(macd>=ref(macd,1)and macd>0,中轴,中轴+macd,0,0 ),color0011bb;
stickline(macd>ref(macd,1)and macd<0,中轴,中轴+macd,0,0),colorbb11bb;
stickline(macd<=ref(macd,1)and macd<0,中轴,中轴+macd,0,0),colorffbb11;
乾线: ma(c,3),colorred,linethick2;
坤线:xma(ref(llv(c,3),2),2),color00ff00,linethick2;
stickline(close> ref(close,1) ,high,low,0,1 ),colorred;
stickline(close> ref(close,1) ,open,close,3,0 ),color000055;
stickline(close> ref(close,1) ,open,close,2.7,0 ),color000077;
stickline(close> ref(close,1) ,open,close,2.1,0 ),color000099;
stickline(close> ref(close,1) ,open,close,1.5,0 ),color0000bb;
stickline(close> ref(close,1) ,open,close,0.9,0 ),color0000dd;
stickline(close> ref(close,1) ,open,close,0.3,0 ),color0000ff;
stickline(close= ref(close,1) ,high,low,0,1 ),colorwhite;
stickline(close= ref(close,1) ,open,close,3,0 ),color555555;
stickline(close= ref(close,1) ,open,close,2.7,0 ),color777777;
stickline(close= ref(close,1) ,open,close,2.1,0 ),color999999;
stickline(close= ref(close,1) ,open,close,1.5,0 ),colorbbbbbb;
stickline(close= ref(close,1) ,open,close,0.9,0 ),colordddddd;
stickline(close= ref(close,1) ,open,close,0.3,0 ),colorffffff;
stickline(close< ref(close,1) ,high,low,0,1 ),colorcyan;
stickline(close< ref(close,1) ,open,close,3,0 ),color990000;
stickline(close< ref(close,1) ,open,close,2.7,0 ),colorcc0000;
stickline(close< ref(close,1) ,open,close,2.1,0 ),colorff4400;
stickline(close< ref(close,1) ,open,close,1.5,0 ),colorff8800;
stickline(close< ref(close,1) ,open,close,0.9,0 ),colorffcc00;
stickline(close< ref(close,1) ,open,close,0.3,0 ),colorcyan;
drawicon(cross(zig(3,10) ,ref(zig(3 ,10),1)) ,low*0.98,1);
drawicon(cross(ref(zig(3,10),1),zig(3,10)) ,high*1.02,2);
drawtext(ref(close,2)/ref(open,2)<0.95 and
ref(c,2)<ref(c,3) and ref(open,1)<ref(close,2) and
ref(close,1)>ref(close,2) and
ref(close,1)>(ref(close,2)+ref(open,2))/2 and
close>ref(close,1) and
llv(low,13)=ref(low,1),low*0.96,'上升'), coloryellow;
drawtext(ref(close,2)/ref(open,2) < 0.95 and
ref(open,1) < ref(close,2) and
abs(ref(open,1)-ref(close,1))/ref(close,1)<0.03 and
close/open>1.05 and close>ref(close,2),low*0.96 ,'进场' ) ,coloryellow;
drawicon(ref(close,2)/ref(open,2) < 0.95 and
ref(open,1) < ref(close,2) and
abs(ref(open,1)-ref(close,1))/ref(close,1)<0.03 and
close/open>1.05 and close>ref(close,2),c,1);
qc:=ref(close,1);
{ma10:ma(close,10);}
rsv:=(((close-llv(low,9))/(hhv(high,9)-llv(low,9)))*100);
k:=sma(rsv,3,1);
d:=sma(k,3,1);
yx:=((close>qc) and c>o);
kk:=hhv(k,5);
hh:=hhv(d,5);
d1:=ref(d,1);
k1:=ref(k,1);
drawtext((((d1<30) and cross(k,d)) and yx),(low * 0.96),'←短买!'),coloryellow;
{drawtext(((hh>70) and cross(d,k)),(low * 1.13),'←减仓!'),colorff00cc;};
var31:=((((hhv((((ema(dclose,12)-ema(dclose,26))-(ema((ema(dclose,12)-ema(dclose,26)),9)))*2),4)<0) and ((((ema(dclose,12)-ema(dclose,26))-(ema((ema(dclose,12)-ema(dclose,26)),9)))*2)>ref((((ema(dclose,12)-ema(dclose,26))-(ema((ema(dclose,12)-ema(dclose,26)),9)))*2),1))) and (ref((((ema(dclose,12)-ema(dclose,26))-(ema((ema(dclose,12)-ema(dclose,26)),9)))*2),1)<ref((((ema(dclose,12)-ema(dclose,26))-(ema((ema(dclose,12)-ema(dclose,26)),9)))*2),2))) and (ref((((ema(dclose,12)-ema(dclose,26))-(ema((ema(dclose,12)-ema(dclose,26)),9)))*2),2)<ref((((ema(dclose,12)-ema(dclose,26))-(ema((ema(dclose,12)-ema(dclose,26)),9)))*2),3)));
drawtext(cross(ma(c,3),ma(c,9)) and c>=ref(c,1) and c>o,l*1.00,'←加仓!'),colormagenta;
aa1:=amount/v;
bb1:=l<aa1*0.9;
cc1:=(c-ref(c,1))/ref(c,1)*100>1.2;
dd1:=l<ma(c,5)*0.921;
ee1:=v<ma(v,5)*1.5;
ff1:=bb1 and cc1 and dd1 and ee1;
drawtext(ff1,(low* 0.97),'老鼠仓'),color4080ff;
获利:winner(close)*100,nodraw,colorred;
kdj_k:="kdj.k"(9,3,3);kdj_d:="kdj.d"(9,3,3);kdj_j:="kdj.j"(9,3,3);
买1:=cross(kdj_j,0) or (cross(kdj_j,kdj_k) and kdj_d<26);
买2:=cross("rsi.rsi1"(6,2,2),20) or cross("rsi.rsi1"(6,12,24),"rsi.rsi2"(6,12,24));
买3:=cross("macd.dif","macd.dea") or cross("macd.macd",0);
买0:=买1+买2+买3;
买9:=if(买0>1,买0,0);
底:if(买9,l*0.9978-0.03,drawnull),pointdot,color00ffff,linethick5;
选股:=filter(cross("kdj.k","kdj.d")&&cross("macd.dif","macd.dea"),50);
吸:if(选股,l*0.988-0.01,drawnull),pointdot,colorff00ff,linethick7;
drawicon(买9>0,l/1.0,9);
ma05:=ma(c,3);
ma10:=ma(c,10);
ma20:=ma(c,20);
ma30:=ma(c,30);
五日乖离率:=(c-ma05)/ma05*100;
bb05:=atan((ma05/ref(ma05,1)-1)*100)*180/3.1416;
速度5:=sma(ema((ma05-ref(ma05,1))/ref(ma05,1),3)*100,3,1);
加速度5:=ema((速度5-ref(速度5,1)),3),nodraw;
if(bb05>30 and ma05>ref(ma05,1), ma05,drawnull),linethick2,colorred;
bb10:=atan((ma10/ref(ma10,1)-1)*100)*180/3.1416;
if(bb05<0 and ma05<ref(ma05,1), ma05,drawnull),linethick2,colorgreen;
三拾日乖离率:=(c-ma30)/ma30*100,nodraw;
var1:=(ma20-ma30)>ref((ma20-ma30),1) and ma20>ref(ma20,1) and ma30>ref(ma30,1);
var2:=(ma30-ma20)<ref((ma30-ma20),1) and ma20<ref(ma20,1) and ma30<ref(ma30,1);
bb30:=atan((ma30/ref(ma30,1)-1)*100)*180/3.1416;
强势狙击:=filter(bb30>30 and bb10>45 and cross(bb05,60),10);
加仓:=filter(count(cross(bb05,30),5)>=1 and ma05>ref(ma05,1)and 三拾日乖离率>ref(三拾日乖离率,1) and ma10>ref(ma10,1)
and 加速度5>ref(加速度5,1) and 速度5>ref(速度5,1),10) ;
清仓:=filter(count(cross(30,bb05),5)>=1 and (c>ma30 or o>ma30) and ma05<ref(ma05,1)and 三拾日乖离率<ref(三拾日乖离率,1) and ma10<ref(ma10,1),10);
drawtext(加仓 ,low*0.98,'◆加二'),coloryellow;
jc:=cross(0,五日乖离率) and 三拾日乖离率<ref(三拾日乖离率,1) and ma10>ref(ma10,1) ;
减仓:=filter(jc,10);
mr:=count(cross(五日乖离率,0),3)>=1 and 三拾日乖离率>ref(三拾日乖离率,1) and ma05>ref(ma05,1) and (c/ref(c,1)-1)*100>5 and ref(c,1)<ma30;
买入:=filter(mr,10);
drawtext(减仓,high*1.02,'◆风险'),colorcyan;
drawtext(买入,low*0.96,'◆买二'),coloryellow;
drawtext(清仓 ,high*1.00,'◆清仓'),colorgreen;
a1:=barslast(ref(cross("macd.dif","macd.dea"),1));
b11:=ref(c,a1+1)>c and ref("macd.dif",a1+1)<"macd.dif" and cross("macd.dif","macd.dea");
drawtext(b11>0,l-0.02,'★m'),color00ffff;{macd底背离}
a2:=barslast(ref(cross("kdj.k","kdj.d"),1));
b22:=ref(c,a2+1)>c and ref("kdj.k",a2+1)<"kdj.k" and cross("kdj.k","kdj.d");
drawtext(b22,l-0.10,'◎k'),colorff00ff;{kdj底背离};
【本网提示:本文仅仅提供源码,并无公式提供下载,需要公式的,请参考下面的公式编辑录像自己编辑一下】
上一指标公式:波段买点AWRSI-BOOLI-非常好的波段买点指标详解 通达信买点AWRSI
下一指标公式:hjz红金柱指标详解 通达信金柱
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文乾坤双线优化主图指标详解 通达信源码优化仅供学习研究。