该指标为经过几年实战经验的指标,准确率85%以上。
使用说明:适用于波段操作,不怎么适用横盘整理的时间段。出现绿色卖出线为卖出信号,预示阶段顶部,后势下跌概率较大,到转红为平仓信号;出现红色线为买进信号,预示阶段底部,后势上涨跌概率较大,到转绿时为平仓信号。
diff: =ema(close,12) - ema(close,26);
dea:= ema(diff,9);
macd: =(diff-dea)*2;
aa:=zig(3,n4);
gg:=ema(aa,2);
ss:if(ref(gg,1)<gg,1,0);
xj:if(ref(gg,1)>gg,1,0);
var1:=((close - llv(low,n1))/(hhv(high,n1) - llv(low,n1)))*(100);
var3:=sma(var1,5,1);
k:=sma(var3,3,1);
d:=sma(k,3,1);
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;
mid:=(3*close+low+open+high)/6;
k2:=(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;
k3:=ma(k2,5);
j:=max(ma(c,n2),ma(c,n3));
k1:=min(ma(c,n2),ma(c,n3));
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) and cross(diff,dea),1,0);
顶背离:=if(ref(high,a2+1)<high and ref(diff,a2+1)>diff and cross(dea,diff),1,0);
底背离1:=if(ref(low,a3+1)>low and k>ref(k,a3+1) and cross(k,d),1,0);
顶背离1:=if(ref(high,a4+1)<high and ref(d,a4+1) and cross(d,k),1,0);//www.goodgongshi.com
drawtext(cross(k,d) and c>j and d<76 and ref(macd,1)<macd and (顶背离=0 or 顶背离1=0) and ss=1 and c>k2,k,'买'),colorred;
drawicon(cross(k,d) and c>j and d<76 and ref(macd,1)<macd and (顶背离=0 or 顶背离1=0) and ss=1 and c>k2,k,1);
drawtext(cross(d,k) and (c<k1 or (j>=c and c>=k)) and ref(macd,1)>macd and (底背离=0 or 底背离1=0) and d>18 and xj=1 and c<k3,d,'卖'),colorwhite;
drawicon(cross(d,k) and (c<k1 or (j>=c and c>=k)) and ref(macd,1)>macd and (底背离=0 or 底背离1=0) and d>18 and xj=1 and c<k3,d,2);
drawtext(cross(k,d) and (底背离=1 and 底背离1=1) and 顶背离1=0 and ss=1 ,k,'买'),colorred;
drawicon(cross(k,d) and (底背离=1 and 底背离1=1) and 顶背离1=0 and ss=1 ,k,1);
drawtext(cross(d,k) and 顶背离=1 and 顶背离1=1 and xj=1,d,'卖'),colorwhite;
drawicon(cross(d,k) and 顶背离=1 and 顶背离1=1 and xj=1,d,2),colorwhite;
上一指标公式:殷氏攻防理论指标公式详解 同花顺攻防
下一指标公式:出入MACDMACD新版指标公式详解 同花顺新版MACD
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文期货该为经过几年实战经验的准确率85%以上。指标公式详解 同花顺几年准确率仅供学习研究。