【股票指标公式下载】-【大智慧】BS决策(收盘价、能量级别、决策、买卖点决策)

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

【大智慧】BS决策(收盘价、能量级别、决策、买卖点决策)-指标公式源码

INPUT:Q1(5,0,1000),Q2(10,0,1000),Q3(20,0,1000),Q4(30,0,1000),Q5(60,0, 1000),Q6(120,0,1000);

MA1:MA(C,Q1);

MA2:MA(C,Q2);

MA3:MA(C,Q3);

MA4:MA(C,Q4);

MA5:MA(C,Q5);

MA6:MA(C,Q6);

a:="[email=LTFunc4@FORLT2]LTFunc4@FORLT2[/email]";

s1:="[email=LTFunc4@LT_S1]LTFunc4@LT_S1[/email]";

hs:="[email=LTFunc4@LT_HS]LTFunc4@LT_HS[/email]";

ls:="[email=LTFunc4@LT_LS]LTFunc4@LT_LS[/email]";

p1:="[email=LTFunc4@LT_P1]LTFunc4@LT_P1[/email]";

upp:="[email=LTFunc4@LT_UPP]LTFunc4@LT_UPP[/email]";

udd:="[email=LTFunc4@LT_UDD]LTFunc4@LT_UDD[/email]";

{hs;ls;hhs;lls;us;ds;s1;p1;p0;upp;udd};

d1:=ema(abs("日线-DDX.ddx"),60);

d2:=max("日线-DDX.ddx"/d1+7.5,7.5);

d3:=min("日线-DDX.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);

DRAWICON(d3>1,LOW,6),align1;

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;

BS决策:=if((p1=1 and ref(p1,1)=0),1,if((p1=0 and ref(p1,1)=1),2,0)); BS短线:=if((s1=1 and ref(s1,1)=0 and (p1+ref(p1,1))<>1),1,if((s1=0 and ref(s1,1)=1 and (p1+ref(p1,1))<>1),2,0));

BS能量:=d3;

IF(BS决策<1 and BS短线<1 and BS能量<1) THEN BEGIN

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; END;

{金色}

STICKLINE(BS能量>1,C,O,8.3,0),COLOR005555;

STICKLINE(BS能量>1,C,O,6.4,0),COLOR007777;

STICKLINE(BS能量>1,C,O,4.9,0),COLOR009999;

STICKLINE(BS能量>1,C,O,3.4,0),COLOR00BBBB;

STICKLINE(BS能量>1,C,O,1.9,0),COLOR00DDDD;

STICKLINE(BS能量>1,C,O,0.4,0),COLOR00FFFF;

{红色}

STICKLINE(BS决策=1,C,O,8.3,0),COLOR000088;

STICKLINE(BS决策=1,C,O,6.4,0),COLOR0000AA;

STICKLINE(BS决策=1,C,O,4.9,0),COLOR0000CC;

STICKLINE(BS决策=1,C,O,3.4,0),COLOR0000EE;

相关文档
最新文档