diff : ema(close,12) - ema(close,26);
dea : ema(diff,9);
gj:=max(c,o);
l4:=llv(gj,4);
jl:=(hhv(diff,55)-llv(diff,55))/5;
gt:=dea>ref(dea,1) and ref(dea,1)<ref(dea,2);
a1:=barslast(ref(gt,1));
底背离:=ref(l4,a1+1)>close and diff>ref(diff,a1+1) and gt;
drawline(a1=0,dea,底背离,ref(dea,a1),0),colorred,linethick2;
drawline(底背离,dea,底背离,ref(dea,a1),0),colorred,linethick2;
h4:=hhv(gj,4);//www.goodgongshi.com
gt2:=dea<ref(dea,1) and ref(dea,1)>ref(dea,2);
a2:=barslast(ref(gt2,1));
顶背离:= ref(h4,a2+1)<h4 and diff<ref(diff,a2+1) and gt2;
drawline(a2=0 ,dea,顶背离,ref(dea,a2),0),colorgreen,linethick2;
drawline(顶背离,dea,顶背离,ref(dea,a2),0),colorgreen,linethick2;
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.03,6,0),color00ff00;
底背:drawline(a1=0,dea,底背离,dea,0),colorred,linethick4;
a2:=barslast(ref(cross(dea,diff),1));
顶背离:=ref(close,a2+1)<close and ref(diff,a2+1)>diff and cross(dea,diff);
顶背:drawline(a2=0,dea,顶背离,dea,0),colorgreen,linethick4;
var1:=(h+l)/2;//www.goodgongshi.com
ao:=sma(var1,5,1)-sma(var1,34,1),linethick0;
ac:sma((ao-sma(ao,5,1)),5,1),color6699cc,dotline,linethick0;
stickline(ac>=ref(ac,1),0,ac,6,1),color000080,linethick5;
stickline(ac<=ref(ac,1),0,ac,6,1),colorgray;
ac,colorgray,linethick5;
b:=zig(3,15/5)*100,colorwhite;
g:=ma(b,2),coloryellow;
d:=cross(b,g)*1000,colorred;
w:=cross(g,b)*1000,colorblue;
drawgbk( w=1000 ),colorblue;
drawgbk( d=1000 ),colorlired;
verline(cross(b,g) ,1),colorlimagenta;//画加仓建仓垂线
verline(cross(g,b),1),colorcyan;//画清仓垂线
k:=sma(macd,2,1);
d:=sma(k,2,1);
j:sma(d,2,1),dotline,colorgray;
stickline(macd>0,0.000001,0.000003,15,0),colorred,,linethick5;
stickline(macd<0,0.000001,0.000003,15,0),colorblue,linethick5;
partline(k,k>ref(k,1),rgb(255,0,0),k<ref(k,1),rgb(0,255,0)),colorblue,linethick2;
partline(d,d>ref(d,1),rgb(255,0,0),d<ref(d,1),rgb(0,255,0)),linethick2;
partline(j,j>ref(j,1),rgb(255,0,0),j<ref(j,1),rgb(0,255,0)),linethick2;
diff :ema(close,12) - ema(close,26),colorwhite;
dea :ema(diff,9),coloryellow;//www.goodgongshi.com
drawicon(cross(diff,dea),dea*1.02,1);
drawicon(cross(dea,diff),dea*0.98,2);
fillrgn(diff,dea,diff>dea and diff>0 and diff>ref(diff,1) and dea>ref(dea,1),colorlired);
fillrgn(diff,dea,diff>dea and diff>0 and diff>ref(diff,1) and dea<ref(dea,1),colorwhite);
fillrgn(diff,dea,diff>dea and diff>0 and diff<=ref(diff,1) and dea>ref(dea,1),colorwhite);
fillrgn(diff,dea,diff>dea and diff>0 and diff<=ref(diff,1) and dea<ref(dea,1),colorwhite);
fillrgn(diff,dea,diff>dea and diff<0 and diff>ref(diff,1) and dea>ref(dea,1),colorred);
fillrgn(diff,dea,diff>dea and diff<0 and diff>ref(diff,1) and dea<ref(dea,1),colorwhite);
fillrgn(diff,dea,diff>dea and diff<0 and diff<=ref(diff,1) and dea>ref(dea,1),colorwhite);
fillrgn(diff,dea,diff>dea and diff<0 and diff<=ref(diff,1) and dea<ref(dea,1),colorwhite);
fillrgn(diff,dea,diff<dea and diff>0 and diff<ref(diff,1) and dea>ref(dea,1),colorwhite);
fillrgn(diff,dea,diff<dea and diff>0 and diff<ref(diff,1) and dea<ref(dea,1),colorgreen);
fillrgn(diff,dea,diff<dea and diff>0 and diff>=ref(diff,1) and dea>ref(dea,1),colorwhite);
fillrgn(diff,dea,diff<dea and diff>0 and diff>=ref(diff,1) and dea<ref(dea,1),colorwhite);
fillrgn(diff,dea,diff<dea and diff<0 and diff<ref(diff,1) and dea>ref(dea,1),colorwhite);
fillrgn(diff,dea,diff<dea and diff<0 and diff<ref(diff,1) and dea<ref(dea,1),colorblue);
fillrgn(diff,dea,diff<dea and diff<0 and diff>=ref(diff,1) and dea>ref(dea,1),colorwhite);
fillrgn(diff,dea,diff<dea and diff<0 and diff>=ref(diff,1) and dea<ref(dea,1),colorwhite);
遵:if(diff>=dea,diff,drawnull),colorred,linethick2;
守:if(dea>=diff,dea,drawnull),colorff9900,linethick2;
纪:if(diff>=dea,dea,drawnull),color00ffff,linethick2;
律:if(dea>=diff,diff,drawnull),color00ff00,linethick2;
上一指标公式:量王指标公式详解 同花顺
下一指标公式:运达青龙指标公式详解 同花顺青龙
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文杨百万MACD指标公式详解 同花顺MACD仅供学习研究。