diff : ema(close,s) - ema(close,p);
dea: ema(diff,m);
macd : 2*(diff-dea), colorstick;
var6:=((close)/(ref(close,3))>=1.05);
var7:=backset(var6,3);
stickline(var7 and (count(var7,5)=1),0.09,0,4,0),color0000ff,linethick3;
drawtext(var7 and (count(var7,5)=1),0.02,'买入 '),colorff00ff;
var10:=hhv(dea,53);
var20:=llv(dea,55);
var30:=dea-(diff-dea);
up:if(diff>var10 and dea=var10,max(llv(var10,10),var30),var10),colorbb0000,linethick1;
dn:if(diff<var20 and dea=var20,min(hhv(var20,10),var30),var20),colorred,linethick1;
uu:=hhv(macd,55);
ll:=llv(macd,55);
stickline(((macd<ref(macd,1)) and (macd>0)),0,macd,1,0),color00cfff,linethick2;
stickline(((macd>ref(macd,1)) and (macd<0)),0,macd,1,0),colorff00ff,linethick2;
partline(diff>ref(diff,1),diff),colorred;
partline(diff<ref(diff,1),diff),colorgreen;
partline(diff>ref(diff,1)and ref(diff,1)>0,diff),colorred;
partline(diff<ref(dea,1),diff),colorgray;
var6:=((close)/(ref(close,3))>=1.05);
var7:=backset(var6,3);
stickline(var7 and (count(var7,5)=1),0.09,0,4,0),color0000ff,linethick3;
drawtext(var7 and (count(var7,5)=1),0.02,'买入 '),colorff00ff;
a1:=barslast(ref(cross(diff,dea),1));
底背离:=ref(close,a1+1)>close and diff>ref(diff,a1+1) and cross(diff,dea);
stickline(底背离,0,0.01,6,0),color00ff00;
底背:=drawline(a1=0,dea,底背离,dea,0),colorred,linethick4;
drawtext(底背离,diff*0.98,'↑\n底背离'),colorff00ff;
a2:=barslast(ref(cross(dea,diff),1));
顶背离:=ref(close,a2+1)<close and ref(diff,a2+1)>diff and cross(dea,diff);
drawtext(顶背离,diff*0.98,'↓顶背离'),colorff00ff;
顶背:=drawline(a2=0,dea,顶背离,dea,0),colorblue,linethick2;
强:=ema((close-ref(close,1))/close*10,2),linethick0;
差a:=3*ema(ema(ema(ema(强,2),2),2),2),linethick0;
净流:=3*ema(ema(ema(ema(差a,1),2),2),2), colorred,linethick0;
drawtext(cross(0,净流),0+0,'空'),colorgreen;
drawtext(cross(ref(净流,1),净流),diff,'注意'),colorffff00;
drawtext(cross(净流,0),0,'关注 资金介入'),color00ffff;
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文发一个自己用的MACD公式让你及时发现介入资金 飞狐MACD指标 源码仅供学习研究。