变味定量结构macd源码下载:
m:=6;
dif:100*(ema(close,12)-ema(close,26));
dea:ema(dif,9);
var3:=(close-ma(close,6))/ma(close,6)*100;
var4:=(close-ma(close,24))/ma(close,24)*100;
macd:(dif-dea)*2,colorstick;
死叉:=cross(dea,dif);
var5:=(close-ma(close,32))/ma(close,32)*100;
var6:=(var3+var4+var5)/3;
n1:=barslast(死叉);
n2:=ref(barslast(死叉),n1+1);
n3:=ref(barslast(死叉),n2+n1+2);
var7:=ema(var6,5);
var8:=if(var6<=-20,10,0);
var9:=hhv(var8,10);
cl1:=llv(c,n1+1);
difl1:=llv(dif,n1+1);
stickline(var8=10,20,10,5,0),color6666ff;
cl2:=ref(cl1,n1+1);
difl2:=ref(difl1,n1+1);
vara:=if(var9 and cross(ma(close,3),ma(close,5)),20,0);
k:ema(var7,5)*2,coloryellow;
d:ema(k,5),colorliblue;
j:k*3-d*2,colorff00ff;
cl3:=ref(cl2,n1+1);
difl3:=ref(difl2,n1+1);
varb:=between(close,ma(close,3),ma(close,5)) and j>10;
换手:=vol/capital*100;
成交〖万手〗:=vol/10000;
pdifl2:=if(difl2>0,intpart(log(difl2))-1,intpart(log(-difl2))-1);
mdifl2:=intpart(difl2/pow(10,pdifl2));
drawtext(var8=10 and filter(var8=10,5),-10,'近底'),linethick1,coloryellow;
stickline(var8=10 and filter(var8=10,8),-1.6,-10,8,0),coloryellow;
pdifl3:=if(difl3>0,intpart(log(difl3))-1,intpart(log(-difl3))-1);
mdifl3:=intpart(difl3/pow(10,pdifl3));
drawtext(vara=20,15,'底'),linethick1,colorwhite;
stickline((vara=20),0,10,8,0),colorwhite;
mdifb2:=intpart(dif/pow(10,pdifl2));
mdifb3:=intpart(dif/pow(10,pdifl3));//www.goodgongshi.com
varc:=(zig(3,5)>ref(zig(3,5),1)) and (ref(zig(3,5),
1)<=ref(zig(3,5),2)) and (ref(zig (3,5),2)<=ref(zig(3,5),3));
vard:=(zig(3,5)<ref(zig(3,5),1)) and (ref(zig(3,5),
1)>=ref(zig(3,5),2)) and (ref(zig (3,5),2)>=ref(zig(3,5),3));
直接底背离:=(cl1<cl2) and (mdifb2>mdifl2) and
(macd<0 and ref(macd,1)<0) and mdifb2<=ref(mdifb2,1);
隔峰底背离:=(cl1<cl3 and cl3<cl2 ) and (mdifb3>mdifl3)
and (macd<0 and ref(macd,1)<0) and mdifb3<=ref(mdifb3,1);
stickline((varc=1),-14,0,8,0),color0000ff;
drawtext((varc=1),-14,'买'),color0000ff;
b:=(直接底背离 or 隔峰底背离);
bg:=((mdifb2>ref(mdifb2,1))*ref(直接底背离,
1)) or ((mdifb3>ref(mdifb3,1))*ref(隔峰底背离,1));
stickline((vard=1),14,0,8,0),color00ff00;
drawtext((vard=1),18,'卖'),color00ff00;
底背离消失:=(ref(直接底背离,1) and difl1<=difl2)
or (ref(隔峰底背离,1) and difl1<=difl3);
vare:=ma(100*(close-llv(close,34))/(hhv(high,34)-llv(low,34)),5)-20;
stickline(b or bg,dif,dea,8,0),colorred;
drawtext((b and count(b,2)=1),(dif*1.5),'钝化'),coloryellow;
varf:=100-3*sma((close-llv(low,75))/(hhv(high,
75)-llv(low,75))*100,20,1)+2*sma(sma ((close-llv(low,
75))/(hhv(high,75)-llv(low,75))*100,20,1),15,1);
var10:=100-3*sma((open-llv(low,75))/(hhv(high,
75)-llv(low,75))*100,20,1)+2*sma(sma ((open-llv(low,
75))/(hhv(high,75)-llv(low,75))*100,20,1),15,1);
drawtext(filter(bg,10),(dif*1.5),'结构形成'),colormagenta;
var11:=varf<ref(var10,1) and vol>ref(vol,1) and close>ref(close,1);
drawtext(var11 and count(var11,30)=1,12,'大资金活动'),linethick1,colorff00ff;
drawtext(filter(底背离消失,10),(dif+macd),'消失'),colorgreen;
stickline(bg,0,(dif+dea),5,0),colorred;
上一指标公式:底部精准二次金叉狠买下载
下一指标公式:大胆全仓主升买进下载
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文变味定量结构MACD下载仅供学习研究。