底部:15,color00bb00;
顶部: 85,color0000e0;
qcz:=abs(ma(close,10)-ma(close,n5))+abs(ma(close,15)-ma(close,n5))+abs(ma(close,20)-ma(close,n5));
趋势值:qcz/close*100+15,colorwhite,linethick1;
diff: =ema(close,12) - ema(close,26);
dea:= ema(diff,9);
macd: =(diff-dea)*2;
var1:=((close - llv(low,n1))/(hhv(high,n1) - llv(low,n1)))*(100);
var2:=((close - llv(low,n2))/(hhv(high,n2) - llv(low,n2)))*(100);
var3:=sma(var1,5,1);
var4:=sma(var2,5,1);
k:=sma(var3,3,1);
k60:sma(var4,3,1);
d:=sma(k,3,1);
d60:sma(k60,3,1);
mj:=d60-k60;
mc:=k60-d60;
//www.goodgongshi.com
kd1:=abs(k-d);
var5:=llv(low,12);
var6:=hhv(high,26);
方向线:ema((close-var5)/(var6-var5)*100,4),colorgray,linethick1;
stickline((k >= d),k,d,8,0),color0000a8;
stickline((k >= d),k,d,6,0),color0000c0;
stickline((k >= d),k,d,4,0),color0000e0;
stickline((k >= d),k,d,3,0),color0000f0;
stickline((k >= d),k,d,2,0),color0000d0;
stickline((k >= d),k,d,1,0),color8080ff;
stickline((k <= d),k,d,8,0),color008800;
stickline((k <= d),k,d,6,0),color009900;
stickline((k <= d),k,d,4,0),color00aa00;
stickline((k <= d),k,d,3,0),color00bb00;
stickline((k <= d),k,d,2,0),color00cc00;
stickline((k <= d),k,d,1,0),color00dd00;
a1:=barslast(ref(cross(diff,dea),1));
a2:=barslast(ref(cross(dea,diff),1));
a3:=barslast(ref(cross(k,d),1));
a4:=barslast(ref(cross(d,k),1));
底背离:=if(ref(low,a1+1)>low and diff>ref(diff,a1+1),1,0);
底背离1:=if(ref(low,a3+1)>low and k>ref(k,a3+1),1,0);
顶背离:=if(ref(high,a2+1)<high and ref(diff,a2+1)>diff,1,0);
顶背离1:=if(ref(high,a4+1)<high and ref(d,a4+1)>d,1,0);
mid:=(3*close+low+open+high)/6;//www.goodgongshi.com
va1:=(20*mid+19*ref(mid,1)+18*ref(mid,2)+17*ref(mid,3)+16*ref(mid,4)+15*ref(mid,5)+14*ref(mid,6)+13*ref(mid,7)+12*ref(mid,8)+11*ref(mid,9)+10*ref(mid,10)+9*ref(mid,11)+8*ref(mid,12)+7*ref(mid,13)+6*ref(mid,14)+5*ref(mid,15)+4*ref(mid,16)+3*ref(mid,17)+2*ref(mid,18)+ref(mid,20))/210,colorgreen;
va3:=max(ma(c,60),ma(c,120));
va5:=max(ma(c,45),ma(c,90));
va7:=max(ma(c,30),ma(c,60));
drawtext(cross(k,d) and mj<1.5 and 方向线<83 and c>=va1 and c>=va3 and c>=va5 and c>=va7,k,'买'),colorred;
drawicon(cross(k,d) and mj<1.5 and 方向线<83 and c>=va1 and c>=va3 and c>=va5 and c>=va7,k-5,1);
drawtext(cross(k,d) and mj<1.5 and (顶背离=1 or 顶背离1=1) and 方向线<83 and c>=va1 and c>=va3 and c>=va5 and c>=va7,d-3,'少量'),color00bb00;
drawtext(cross(d,k) and mc<1.5 and 方向线>14 and c<va1 and c<va3 and c<va5 and c<va7,d,'卖'),colorwhite;
drawicon(cross(d,k) and mc<1.5 and 方向线>14 and c<va1 and c<va3 and c<va5 and c<va7,d+5,2);
drawtext(cross(d,k) and mc<1.5 and (底背离=1 or 底背离1=1) and 方向线>14 and c<va1 and c<va3 and c<va5 and c<va7,k+8,'少量'),colorred;
drawtext(cross(k,d) and c>ma(c,15) and (底背离=1 or 底背离1=1) and 顶背离1=0 and mj<1.5,k,'背买'),colorred;
drawicon(cross(k,d) and c>ma(c,15) and (底背离=1 or 底背离1=1) and 顶背离1=0 and mj<1.5,k-5,1);
drawtext(cross(d,k) and c<ma(c,15) and (顶背离=1 or 顶背离1=1) and 底背离1=0 and mc<1.5,d,'背卖'),colorwhite;
drawicon(cross(d,k) and c<ma(c,15) and (顶背离=1 or 顶背离1=1) and 底背离1=0 and mc<1.5,d+5,2),colorwhite;
pp:=(k-d)*10;
pp1:=(ref(k,1)-ref(d,1))*10;
pp2:=(ref(k,2)-ref(d,2))*10;
pp3:=pp-pp1;
kk:=(d-k)*10;
kk1:=(ref(d,1)-ref(k,1))*10;
kk2:=(ref(d,2)-ref(k,2))*10;
kk3:=kk-kk1;//www.goodgongshi.com
drawtext(d>k and kk>kk1 and kk2>kk1 and low<ma(c,n4) and kk2>1 and kk1>0 and 方向线>30,d,'加仓'),colorwhite;
drawicon(d>k and kk>kk1 and kk2>kk1 and low<ma(c,n4) and kk2>1 and kk1>0 and 方向线>30,d,2),colorwhite;
drawicon(d<k and pp>pp1 and pp2>pp1 and high>ma(c,n4) and pp3>6 and pp2>1 and pp1>0 and 方向线<70,d,1),colorred;
drawtext(d<k and pp>pp1 and pp2>pp1 and high>ma(c,n4) and pp3>6 and pp2>1 and pp1>0 and 方向线<70,d,'加仓'),colorred;
drawtext(abs(mj)<1.5 and kd1<2 and (方向线<10 or 方向线>90),方向线,'平'),colorred;
上一指标公式:发现主力强度指标公式详解 同花顺主力发现
下一指标公式:背离顶底成形指标公式详解 同花顺背离
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文背离方向不进指标公式详解 同花顺不进方向仅供学习研究。