有未来的好公式
{未来macd}
中diff:(ema(close,12) - ema(close,26)),linethick2,color2a2aa5;
中dea:ema(中diff,9),colorffff00;
drawband(中diff,rgb(155,50,50),中dea,rgb(0,100,50));
macd2:(2 * (中diff -中dea)),linethick0,colorffff00;
stickline((macd2>=0),0,macd2,1,0),colorred;
stickline(((macd2>=0) and (macd2 < ref(macd2,1))),0,macd2,1,1),colorliblue;
stickline((macd2<0),0,macd2,1,1),colorgreen;
stickline(((macd2<0) and (macd2 > ref(macd2,1))),0,macd2,1,0),coloryellow;
du0:=cross(中diff,0);
ud0:=cross(0,中diff);
tdu0:=barslast(du0);
tud0:=barslast(ud0);du3:=ref(du0,1);
ud3:=ref(ud0,1);
tdu3:=barslast(du3);
tud3:=barslast(ud3);
udgline:=if((tdu3 < tud3),ref(hhv(high,2),tdu3),ref(llv(low,2),tud3));
jdu0:=(((ref(close,1) <= ref(udgline,1)) and (close > udgline)) and (tdu0 < tud0));
jud0:=(((ref(close,1) >= ref(udgline,1)) and (close < udgline)) and (tud0 < tdu0));
jdu1:=(jdu0 and (count(jdu0,tdu0) = 1));
jud1:=(jud0 and (count(jud0,tud0) = 1));
jdu2:=(jdu1 and (ref(barslast(jud1),1) < ref(barslast(jdu1),1)));
jud2:=(jud1 and (ref(barslast(jud1),1) > ref(barslast(jdu1),1)));
jdu3:=(jdu1 and (ref(barslast(jud1),1) > ref(barslast(jdu1),1)));
jud3:=(jud1 and (ref(barslast(jud1),1) < ref(barslast(jdu1),1)));
bsline:=if((barslast(jdu2) < barslast(jud2)),if(ref(cross(0,macd2),1),llv(low,2),ref(llv(low,2),barslast(ref(cross(0,macd2),1)))),if(ref(cross(macd2,0),1),hhv(high,2),ref(hhv(high,2),barslast(ref(cross(macd2,0),1)))));
defut:=barslast(cross(macd2,0));
defdt:=barslast(cross(0,macd2));
deful:=if((macd2 >= 0),hhv(macd2,(defut + 1)),ref(hhv(macd2,(defut + 1)),(defdt + 1)));
defdl:=if((macd2 < 0),llv(macd2,(defdt + 1)),ref(llv(macd2,(defdt + 1)),(defut + 1)));
defu2l:=ref(deful,(defut + 1));
defd2l:=ref(defdl,(defdt + 1));
短diff:(ema(c,3)-ema(c,10)),linethick2,colorc0c0c0;
短dea:ema(短diff,9),linethick2,color33ff33;
if(短diff>=短dea,短diff,drawnull),colorred,linethick2;
d1:=ema(c,3)-ema(c,8);
d2:=ema(o,3)-ema(o,8);
d3:=ema(h,3)-ema(h,8);
d4:=ema(l,3)-ema(l,8);
drawicon(((((llv(macd2,4) > 0) and (macd2 < ref(macd2,1))) and (ref(macd2,1) > ref(macd2,2))) and (ref(macd2,2) > ref(macd2,3))),0,12);
drawicon(((((hhv(macd2,4) < 0) and (macd2 > ref(macd2,1))) and (ref(macd2,1) < ref(macd2,2))) and (ref(macd2,2) < ref(macd2,3))),0,23);
drawicon(cross(中diff,d1) and 中diff>0.1 ,0,2);
ee:=cross(中diff,中dea) and macd2>ref(macd2,1) and 短diff>=ref(短diff,1) and 中dea>=ref(中dea,1);
出:=filter(ee,10);
drawicon(出,0,1);
低位金叉:= cross(中diff,中dea) and 中diff<(-0.1);
drawtext(低位金叉,0.21,' 低位金叉'),colorwhite;
a:=cross(中diff,中dea);
两次金叉:=cross(中diff,中dea)and count(a,20)=2 and macd>ref(macd,1);
drawtext(两次金叉,中diff,'20日内2次金叉'),coloryellow;
jccount:=count(cross(中diff,中dea),barslast(中dea>=0));
低位二次金叉:=cross(中diff,中dea) and 中dea<0 and count(jccount=2,21)=1;
drawtext(低位二次金叉,0.25,'低位二次金叉'),coloryellow;
obv:=中diff;
p:=5;
a1:=ref(obv,p)=hhv(obv,2*p+1);
b1:=filter(a1,p);
c1:=backset(b1,p+1);
d11:=filter(c1,p);{高点}
a2:=ref(obv,p)=llv(obv,2*p+1);
b2:=filter(a2,p);
c2:=backset(b2,p+1);
d22:=filter(c2,p);{低点}
r11:=backset(islastbar,barslast(d11)+1);
s11:=r11>ref(r11,1);
drawline(d11,obv,s11,obv,1),colorblue;
t11:=backset(islastbar,barslast(d22)+1);
u11:=t11>ref(t11,1);
drawline(d22,obv,u11,obv,1),color00ff00;
drawicon(d11,obv,14);
drawicon(d22,obv,13);主升 : 中diff>0 and 中diff>中dea,color0000ff,pointdot,nodraw;
stickline(主升,中diff,中dea,0.5,0),color0000ff;var2:=ref(low,1);
var3:=sma(abs(low-var2),3,1)/sma(max(low-var2,0),3,1)*100;
var4:=ema(if(close*1.3,var3*10,var3/10),3);
var5:=llv(low,13);
var6:=hhv(var4,13);
var7:=if(ma(close,34),1,0);
var8:=ema(if(low<=var5,(var4+var6*2)/2,0),3)/618*var7;
var9:=if(var8>100,100,var8);
var10:=if(var9>-120,var9,0);
var11:=var10<ref(var10,1);
drawtext(var11 and ref(not(var11),1),-0.5,'★'),colorblue;
上一指标公式:强弱区间 通达信强弱
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文未来MACD指标详解 通达信未来仅供学习研究。