优化后的bs决策
{bs决策优化}
a:="ltfunc4@forlt2";
s1:="ltfunc4@lt_s1";
hs:="ltfunc4@lt_hs";
ls:="ltfunc4@lt_ls";
p1:="ltfunc4@lt_p1";
upp:="ltfunc4@lt_upp";
udd:="ltfunc4@lt_udd";
{hs;ls;hhs;lls;us;ds;s1;p1;p0;upp;udd};
today:=dynainfo(7)=close and dynainfo(10)=amount and time0<55800;
aoday:=bigorder(1,1)=0 and bigorder(2,1)=0;
var0:=min(count(order(2),0),p1);
zddr:=selfdata('大单买入');
zddc:=selfdata('大单卖出');
zdtr:=selfdata('特大买入');
zdtc:=selfdata('特大卖出');
sstr:=if(aoday,"dde@bigorder"(1,3),bigorder(1,3));
sstc:=if(aoday,"dde@bigorder"(2,3),bigorder(2,3));
ssdr:=if(aoday,("dde@bigorder"(1,2)-"dde@bigorder"(1,3)),(bigorder(1,2)-bigorder(1,3)));
ssdc:=if(aoday,("dde@bigorder"(2,2)-"dde@bigorder"(2,3)),(bigorder(2,2)-bigorder(2,3)));
szdr:=if(aoday,zddr,(bigorder(1,2)-bigorder(1,3)));
szdc:=if(aoday,zddc,(bigorder(2,2)-bigorder(2,3)));
sztr:=if(aoday,zdtr,bigorder(1,3));
sztc:=if(aoday,zdtc,bigorder(2,3));
ddlr:=if(today,if(ssdr=0,szdr,ssdr),szdr);
ddlc:=if(today,if(ssdc=0,szdc,ssdc),szdc);
tdlr:=if(today,if(sstr=0,sztr,sstr),sztr);
tdlc:=if(today,if(sstc=0,sztc,sstc),sztc);
zllr:=tdlr+ddlr;
zllc:=tdlc+ddlc;
zljl:=(zllr-zllc);
ddx:=zljl*vol/capital*100;
d1:=ema(abs(ddx),60);
d2:=max(ddx/d1+7.5,7.5);
d3:=min(ddx/d1,10);
fb:=if(s1=0,hs,ls);
tr0:=ifs(p1=1,'明日收盘价<'+numtostrn(udd,2)+',出现s点\n','若明日收盘价>'+numtostrn(upp,2)+',出现b点\n');
tr1:=ifs(s1=1,'明日收盘价<'+numtostrn(ls,2)+',短线卖出机会','若明日收盘价>'+numtostrn(hs,2)+'短线买入机会');
tr2:=ifs(p1=1,ifs(cross(p1,0),'b点','持股'),ifs(cross(1,p1),'s点','持币'));
tr3:=ifs(s1=0,'向下,','向上,');
tr4:='3.能量级别:'+numtostrn(d3,1)+'级';
bs:=''+datestr(date)+'买卖点决策系统提示\n'+'1.bs点:'+tr2+','+tr0+'2.短线:'+tr3+tr1+'\n'+tr4;
drawflagtext(1,fb,bs);
stickline(p1=1 and c>=o and o<>0,c,o,d2,0),color5454ff;
stickline(p1=1 and c>=o and o<>0,c,o,7.5,0),colorblack;
stickline(p1=1 and c>=o and o<>0,c,c,7.5,0),color5454ff;
stickline(p1=1 and c>=o and o<>0,o,o,7.5,0),color5454ff;
stickline(p1=1 and c>=o and o<>0,o,c,7.5,1),color5454ff;
stickline(p1=1 and c<=o,o,c,7.5,1),color5454ff;
stickline(p1=1 and c<=o,l,c,0.5,1),color5454ff;
stickline(p1=1 and c<=o,h,o,0.5,1),color5454ff;
stickline((p1<>1 or barscount(c)<3) and c>=o,c,o,7.5,1),colorffff54;
stickline((p1<>1 or barscount(c)<3) and c>=o,c,h,0.5,1),colorffff54;
stickline((p1<>1 or barscount(c)<3) and c>=o,l,o,0.5,1),colorffff54;
drawbmp(p1=1 and ref(p1,1)=0,l,'buy1.bmp'),align1,valign0;
drawbmp(p1=0 and ref(p1,1)=1,h,'sell1.bmp'),align1,valign2;
drawbmp(s1=1 and ref(s1,1)=0 and (p1+ref(p1,1))<>1,l,'bs.bmp'),align1,valign0;
drawbmp(s1=0 and ref(s1,1)=1 and (p1+ref(p1,1))<>1,h,'ss.bmp'),align1,valign2;
zz:=(o+h+l)/3;
hjmd:ema(zz,4),coloryellow,linethick1;
xxb:=close*vol;
xxbym:ema((ema(xxb,3)/ema(vol,3)+ema(xxb,6)/ema(vol,6)+ema(xxb,12)/ema(vol,12)+ema(xxb,24)/ema(vol,24))/4,13),colorff00ff,linethick0;
爱心:=ema(close,13)-ema(close,55);
无价:=ema(爱心,3);
partline(xxbym,爱心>=无价,rgb(255,0,0),1,rgb(0,255,0)),linethick3;
☉ 好公式网发布的指标公式主要用于软件技术面分析,仅供参考,勿用于实际操作,据此操作风险自负!
☉ 解压密码:www.goodgongshi.com 就是好公式网域名,希望大家看清楚,切勿输错。
☉ tnc和tni格式指标公式,仅可以用通达信软件引入使用,例如可以用通达信软件引入使用指标公式;
☉ tne格式指标公式,仅可以用通达信软件公式编辑器5.0版导入,高版本兼容低版本;
☉ fnc格式指标公式,可以用大智慧软件新一代高速行情分析系统股票软件使用,少部分可以用分析家软件引入使用;
☉ alg格式指标公式,仅仅可以用飞狐交易师软件引入使用;exp格式指标公式,仅可以用大智慧经典版软件引入使用;
☉ hxf格式指标公式,仅可以用同花顺软件引入使用。
☉ 如果您发现下载软件链接错误,请联系管理员报告错误。
☉ 好公式网欢迎各位网友帮忙宣传转发本站网址,有您的支持,我们会做得更好!
☉ 本文优化后的BS决策公式下载 大智慧优化决策仅供学习研究。