macd多空互转决策线源码下载:
m:=9;
底部:10;
顶部:95;
diff:ema(dclose,12)-ema(dclose,26);
dea:ema(diff,9),colorffff00;
macd:(diff-dea)*2;
var1n:=(close-llv(low,9))/(hhv(high,9)-llv(low,9))*100;
var2n:=ema(var1n,30);
stickline(macd>0 and macd>=ref(macd,1),0,macd,5,0),color0000ff;
stickline(macd>0 and macd<ref(macd,1),0,macd,5,0),colorffff00;
stickline(macd<0 and macd>=ref(macd,1),0,macd,5,0),colorff00ff;
stickline(macd<0 and macd<ref(macd,1),0,macd,5,0),color00ff00;
var3n:=ema(var2n,30);
var4n:=3*var2n-2*var3n;
drawicon(cross(diff,dea),dea,1);
drawicon(cross(dea,diff),dea,2);
势:ema(var4n,5),colorblue,linethick3;
gj:=max(c,o);
l4:=llv(gj,4);
var5:=llv(low,10);
var6:=hhv(high,25);
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));
决策线:ema((close-var5)/(var6-var5)*100,4),colorred,linethick2;
drawtext(cross(80,决策线),100,''),color00ff00;
drawicon(cross(80,决策线),110,2);
底背离:=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;
drawtext(底背离,ref(dea,a1)*1.18,' 底背'),colorff00ff;
stickline(势>80,势,80,1,0),colorgreen;
stickline(势<10,势,10,1,0),color00ffff;
h4:=hhv(gj,4);
gt2:=dea<ref(dea,1) and ref(dea,1)>ref(dea,2);
drawtext(cross(10,势),-2.25,''),color000fff;
jj:=(c*2+h+l)/4;
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;
skk:(ema(jj,13)-ema(jj,22))*180,colorwhite;
sdd:ema(skk,10),coloryellow;
drawtext(顶背离,ref(dea,a2)*1.18,' 顶背'),colorgreen;
a0:=diff<0 and dea<0;
a11:=a0>ref(a0,1);
多方:(skk-sdd)*0.000000001,colorblack,linethick0;
空方:-1*(skk-sdd)*0.000000001,colorblack,linethick0;
a3:=barslast(a11);//www.goodgongshi.com
a4:=count(dea>0 and diff>0,a3)=0;
a5:=cross(diff,dea);
rc:=dynainfo(3);
rc,colorwhite;
a6:=barslast(a5);
a7:=ref(a6,a6+1)+a6;
sk:=(slope(ema(jj,2),7)*15+jj)*0.8*0.0001,colorred;
sd:=ema(sk,2),colorgreen;
a8:=(diff+dea)/2;
a9:=(high+low)/2;
sj:=2.8*sk-1.8*sd,colorred;
s2:=sma(c,3,1);
s6:=sma(c,5,1);
a10:=a5 and a7<a3 and a4 and a8>ref(a8,a7) and a9<ref(a9,a7) and macd>0;
drawtext(a10,diff*0.95,'★金叉'),coloryellow;
dk:=2*(s2-s6)*15*4*1.5;
var1:=sma(amount/10,10,1)/10000;
var2:=ref(var1,1);
stickline(sk>sd and dk<rc or dk=rc,rc,rc+dk,2,1),colorred;
stickline(dk>0 and sk>sd ,rc,rc+dk,2,0),colorred;
stickline(dk>0 and sk<sd ,rc,rc+dk,2,0),colorcyan;
var1=hhv(var1,20);
多转空:=((((llv(macd,4)>0) and (macd<ref(macd,1))) and (ref(macd,
1)>ref(macd,2))) and (ref(macd,2)>ref(macd,3)));
空转多:=((((hhv(macd,4)<0) and (macd>ref(macd,1))) and (ref(macd,
1)<ref(macd,2))) and (ref(macd,2)<ref(macd,3)));
stickline(dk>0 and 多方<空方,rc,rc+dk,2,0),colormagenta;
stickline(cross(多方,空方),rc,rc+dk,2,0),coloryellow;
drawicon(多转空,macd,2);
drawicon(空转多,macd,1);
stickline(cross(空方,多方),rc,rc+dk,2,0),colorcyan;
stickline(dk<0 and 多方<空方 and sk<sd,rc,rc+dk,2,1),colorcyan;
上一指标公式:趋势买点出击预测主图下载
下一指标公式:牛窝起步大胆搏主图下载
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文MACD多空互转决策线下载仅供学习研究。