//#@fname=必进清仓
//#@comment=必进清仓指标:该指标综合了1.必进清仓指标2.威廉指标3.kqy买卖指标4.均线指标5.鬼谷神算指标.
//#@control=
//#@functype=
//#@style=close_1:line0,,1,0,1,5,16777215;ma5:line0,,1,0,1,5,65535;m5:line0,,1,0,1,5,65535;close1:line0,,1,0,1,5,16777215;low144:line0,,1,0,1,5,65535;low144_1:line0,,1,0,1,5,65535;
//#@availperiod=2147430400
//#@param=m1=10.0000000001,0.0000000001,10.0000000001,1;m2=80.0000000001,0.0000000001,80.0000000001,1;m3=0.0000000001,0.0000000001,20.0000000001,1;m=5.0000000001,0.0000000001,5.0000000001,1;
//#@isdrawcurve=1
//#@fdesc=综合指标
//#@defaultperiod=16384
//#@coord=d
//#@ordinate=0,0.000000;0,0.000000;0,0.000000;0,0.000000;0,0.000000;0;0,0.000000
//#@@funcspec@=source
//必进清仓
ema1:=ema(close,13);
ema2:=ema(close,34),colorred;
ema3:=ema(close,55),colorcyan;
var11:=zig(3,6)>ref(zig(3,6),1) and ref(zig(3,6),1)<=ref(zig(3,6),2) and ref(zig(3,6),2)<=ref(zig(3,6),3);
var12:=zig(3,6)<ref(zig(3,6),1) and ref(zig(3,6),1)>=ref(zig(3,6),2) and ref(zig(3,6),2)>=ref(zig(3,6),3);
var13:=zig(3,22)>ref(zig(3,22),1) and ref(zig(3,22),1)<=ref(zig(3,22),2) and ref(zig(3,22),2)<=ref(zig(3,22),3);
var14:=zig(3,22)<ref(zig(3,22),1) and ref(zig(3,22),1)>=ref(zig(3,22),2) and ref(zig(3,22),2)>=ref(zig(3,22),3);
var15:=zig(3,51)>ref(zig(3,51),1) and ref(zig(3,51),1)<=ref(zig(3,51),2) and ref(zig(3,51),2)<=ref(zig(3,51),3);
var16:=zig(3,51)<ref(zig(3,51),1) and ref(zig(3,51),1)>=ref(zig(3,51),2) and ref(zig(3,51),2)>=ref(zig(3,51),3);
var17:=zig(3,72)>ref(zig(3,72),1) and ref(zig(3,72),1)<=ref(zig(3,72),2) and ref(zig(3,72),2)<=ref(zig(3,72),3);
var18:=zig(3,72)<ref(zig(3,72),1) and ref(zig(3,72),1)>=ref(zig(3,72),2) and ref(zig(3,72),2)>=ref(zig(3,72),3);
买:=(var11+var13+var15+var17);
卖:=(var12+var14+var16+var18);
//威廉指标
wr:=100*(hhv(high,m1)-close)/(hhv(high,m1)-llv(low,m1));
b:=cross(m2,wr);
s:=(cross(wr,m2)) or (cross(wr,m3));
bm:=barslast(b);
sm:=barslast(s);
bm1:=if(bm[1]=-1 and b,1,if(bm[1]!=-1 and sm[1]!=-1 and bm[1]>sm[1] and b and b[1]=0,1,0));
sm1:=if(sm[1]=-1 and bm[1]!=-1 and s,1,if( sm[1]!=-1 and bm[1]!=-1 and sm[1]>bm[1] and s and s[1]=0,1,0));
//大盘金叉
d1:=cross(indexc,ma(indexc,5));
//kqy指标
v1:=ma(c,3)=hhv(ma(c,3),7);
v2:=ma(c,3)>ma(c,5);
v3:=ma(v,5)>ma(v,10)*1.01;
v4:=count(ma(c,1)>ref(c,1),2)=2;
lc20:=ref(close,1);
rsi20:=sma(max(close-lc20,0),4.1,1)/sma(abs(close-lc20),4.1,1)*100;
var3a:=3;
var2a:=3*sma((close-llv(low,27))/(hhv(high,27)-llv(low,27))*100,5,1)-2*sma(sma((close-llv(low,27))/(hhv(high,27)-llv(low,27))*100,5,1),3,1);
mtm:=c-ref(c,1);
dx:=100*ema(ema(mtm,6),6)/ema(ema(abs(mtm),6),6);
yxf:=if(llv(dx,2)=llv(dx,7) and count(dx<0,2) and cross(dx,ma(dx,2)),1,0);
加仓:=if(filter(yxf=1,5),5,0),colorliblue,linethick1;
a51:=3*sma((c-llv(l,55))/(hhv(h,55)-llv(l,55))*100,5,1)-2*sma((c-llv(l,55))/(hhv(h,55)-llv(l,55))*100,5,1);
fy:=ema(a51,5);
a54:=((c-llv(l,21))/(hhv(h,21)-llv(l,21)))*100;
var1:=(close-llv(low,9))/(hhv(high,9)-llv(low,9))*50;
kqy1:=(ema(var1,3))*2;
kqy2:=ma(kqy1,3);
买2:=zig(3,10)>ref(zig(3,10),1) and ref(zig(3,10),1)<ref(zig(3,10),2),colorred,linethick2;
卖2:=zig(3,10)<ref(zig(3,10),1) and ref(zig(3,10),1)>ref(zig(3,10),2),colorwhite,linethick1;
//股票均线金叉
jc:=cross(close,ma(close,ma(close,5)));
close_1:close,colorwhite;
ma5:ma(close,5),coloryellow;
m5:ma(close,m),coloryellow;//
m10:=ma(close,10),colormagenta;//
close1:close,colorwhite;
low1:=low,colorwhite;
low144:llv(low,144),coloryellow;
low144_1:low144*0.95,coloryellow;
stickline(indexc>indexo,low144_1,low144,1,0),colorred;//柱线
stickline(indexc<indexo,low144_1,low144,1,0),colorgreen;//柱线
stickline(cross(indexc,ma(indexc,5)),low144_1,low144,8,0),colorred;//柱线
stickline(cross(ma(indexc,5),indexc),low144_1,low144,8,0),colorgreen;//柱线
stickline(close>=m5,c,m5,2,0),colorred;//柱线
stickline(close<m5,c,m5,2,0),colorcyan;//柱线
drawicon(买>0,c,5);
drawicon((bm1>0 and 买>0) or (d1 and 买>0) or (买2=1 and 买>0) or (jc and 买>0),ma5,1);
drawnumber((bm1>0 and 买>0) or (d1 and 买>0) or (买2=1 and 买>0) or (jc and 买>0),low144_1*0.95,tostring(l,2));
drawicon(卖>0,c,6);
drawicon(卖>0,c*0.95,2);
drawnumber(卖>0,c*1.05,tostring(h,2));
//鬼谷神算简化的公式:
bb:=zig(3,50/5)*100,coloryellow;
gg:=ma(bb,2),colorred;
dd:=cross(bb,gg)*1000,colorred;
ww:=cross(gg,bb)*1000,colorblue;
drawtext(dd=1000,low144_1*0.9,'建仓'),colorred;
drawtext(ww=1000,high*1.07,'清仓' ),colorgreen;
上一指标公式:超级无敌指标详解 同花顺超级无敌
下一指标公式:PYB专用指标详解 同花顺专用PYB
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文必进清仓指标详解 同花顺清仓仅供学习研究。