文档介绍:【大智慧】简化BS(明日收盘价、能量级别)-指标公式源码
a:="[email=******@FORLT2]******@FORLT2[/email]";
s1:="[email=******@LT_S1]******@LT_S1[/email]";
hs:="[email=******@LT_HS]******@LT_HS[/email]";
ls:="[email=******@LT_LS]******@LT_LS[/email]";
p1:="[email=******@LT_P1]******@LT_P1[/email]";
upp:="[email=******@LT_UPP]******@LT_UPP[/email]";
udd:="[email=******@LT_UDD]******@LT_UDD[/email]";
{hs;ls;hhs;lls;us;ds;s1;p1;p0;upp;udd};
d1:=ema(abs(""),60);
d2:=max(""/d1+,);
d3:=min(""/d1,10);
STICKLINE(p1=1 and c>=o and o<>0,c,o,d2,0),color0000ff;
STICKLINE(p1=1 and c>=o and o<>0,c,o,,0),colorblack;
STICKLINE(p1=1 and c>=o and o<>0,c,c,,0),color0000ff;
STICKLINE(p1=1 and c>=o and o<>0,o,o,,0),color0000ff;
STICKLINE(p1=1 and c>=o and o<>0,o,c,,1),color0000ff;
STICKLINE(p1=1 and c<=o,o,c,,0),color0000ff;
STICKLINE(p1=1 and c<=o,l,c,,0),color0000ff;
STICKLINE(p1=1 and c<=o,h,o,,0),color0000ff;
STICKLINE((p1<>1 or barscount(c)<3) and c>=o,c,o,,0),color00ff00;
STICKLINE((p1<>1 or barscount(c)<3) and c>=o,c,h,,0),color00ff00;
STICKLINE((p1<>1 or barscount(c)<3) and c>=o,l,o,,0),color00ff00;
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)+'短线买入机会');
tr4:=':'+numtostrn(d3,1)+