ihzx 发表于 2021-8-21 14:05:09

超赢BS买卖系统简化版(大智慧)

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