超赢BS买卖系统简化版(大智慧)
<p>源码:<br />a:="LTFunc4@FORLT2";<br />
s1:="LTFunc4@LT_S1";<br />
hs:="LTFunc4@LT_HS";<br />
ls:="LTFunc4@LT_LS";<br />
p1:="LTFunc4@LT_P1";<br />
upp:="LTFunc4@LT_UPP";<br />
udd:="LTFunc4@LT_UDD";<br />
{hs;ls;hhs;lls;us;ds;s1;p1;p0;upp;udd};<br />
d1:=ema(abs("ddx.ddx"),60);<br />
d2:=max("ddx.ddx"/d1+7.5,7.5);<br />
d3:=min("ddx.ddx"/d1,10);<br />
STICKLINE(p1=1 and c>=o and o<>0,c,o,d2,0),color0000ff;<br />
STICKLINE(p1=1 and c>=o and o<>0,c,o,7.5,0),colorblack;<br />
STICKLINE(p1=1 and c>=o and o<>0,c,c,7.5,0),color0000ff;<br />
STICKLINE(p1=1 and c>=o and o<>0,o,o,7.5,0),color0000ff;<br />
STICKLINE(p1=1 and c>=o and o<>0,o,c,7.5,1),color0000ff;<br />
STICKLINE(p1=1 and c<=o,o,c,7.5,0),color0000ff;<br />
STICKLINE(p1=1 and c<=o,l,c,0.5,0),color0000ff;<br />
STICKLINE(p1=1 and c<=o,h,o,0.5,0),color0000ff;<br />
STICKLINE((p1<>1 or barscount(c)<3) and c>=o,c,o,7.5,0),color00ff00;<br />
STICKLINE((p1<>1 or barscount(c)<3) and c>=o,c,h,0.5,0),color00ff00;<br />
STICKLINE((p1<>1 or barscount(c)<3) and c>=o,l,o,0.5,0),color00ff00;<br />
fb:=if(s1=0,hs,ls);<br />
tr0:=ifs(p1=1,'明日收盘价<'+numtostrn(udd,2)+',出现S点\n','若明日收盘价>'+numtostrn(upp,2)+',出现B点\n');<br />
tr1:=ifs(s1=1,'明日收盘价<'+numtostrn(ls,2)+',短线卖出机会','若明日收盘价>'+numtostrn(hs,2)+'短线买入机会');<br />
tr4:='3.能量级别:'+numtostrn(d3,1)+'级';<br />
DRAWTEXTABS(5,10,'□明日收盘价<'+numtostrn(udd,2)+' 出现S点'),color00ffff;<br />
DRAWTEXTABS(5,25,'□明日收盘价>'+numtostrn(upp,2)+' 出现B点'),color00ff00;<br />
DRAWTEXTABS(5,40,'□明日收盘价<'+numtostrn(ls,2)+' 短线卖出机会'),colorffff00;<br />
DRAWTEXTABS(5,55,'□明日收盘价>'+numtostrn(hs,2)+' 短线买入机会'),colorff00ff;<br />
DRAWTEXTABS(5,70,'□能量级别 '+numtostrn(d3,1)+' 级'),color00ffff;<br />
DRAWTEXTABS(5,85,'□紫◆短线买入 B点持股'),color0000ff;<br />
DRAWTEXTABS(5,100,'□兰◆短线卖出 S点持币'),ColorFF0000;<br />
DRAWTEXT(p1=1 and ref(p1,1)=0,l*0.995,'◆'),colorff00ff,align1;<br />
DRAWTEXT(p1=0 and ref(p1,1)=1,h*1.01,'◆'),colorffff00,align1;<br />
DRAWTEXT(s1=1 and ref(s1,1)=0 and (p1+ref(p1,1))<>1,l*0.995,'B'),color00ffff,align1;<br />
DRAWTEXT(s1=0 and ref(s1,1)=1 and (p1+ref(p1,1))<>1,h*1.01,'S'),ColorFF0000,align1;</p>
<p>简化后</p>
<p><br />
</p>
<p> </p>
页:
[1]