通达信布林轨道下跌极限主图/选股预警源码

[复制链接]
查看185 | 回复0 | 2021-8-28 00:48:29 | 显示全部楼层 |阅读模式
本帖最后由 Run 于 2023-11-18 16:21 编辑

     说明:布林带极限主图,用法和布林一样,提供了下跌极限选股。
<p>以下是通达信布林轨道下跌极限主图/选股预警源码(无源码的请下载附件导入)</p>
<div class="con" id="rjsmad1"></div>
<p>通达信布林轨道下跌极限主图/选股预警源码</p>
<p>DRAWKLINE(HIGH,OPEN,LOW,CLOSE);<br>
&nbsp;BOLL:=MA(CLOSE,20),COLORLIGRAY,LINETHICK1;<br>
上一轨:=BOLL+2*STD(CLOSE,20),COLORRED,LINETHICK1;<br>
上二轨:=BOLL+STD(CLOSE,20),COLORMAGENTA;<br>
下二轨:=BOLL-STD(CLOSE,20),COLORCYAN;<br>
下一轨:=BOLL-2*STD(CLOSE,20),COLORGREEN,LINETHICK1;</p>
<p>MID:MA(CLOSE,5),COLORGRAY;<br>
&nbsp;UPPER:MID*(100+10)/100,COLORLICYAN;<br>
&nbsp;LOWER:MID*(100-10)/100,,COLORA68064,LINETHICK1;<br>
&nbsp;LOWER下OWER*(100-2)/100,COLORGREEN{,DOTLINE};<br>
&nbsp;LOWER上:UPPER*(100+2)/100,COLORLIMAGENTA,DOTLINE;<br>
&nbsp;XG:=CROSS(LOWER下,C);<br>
&nbsp;XG2:=L&lt;=LOWER+0.01;<br>
下极限:=L&lt;=LOWER下;<br>
&nbsp;{DRAWTEXT(下极限,L*0.98,'下极限'),COLOR00FF00;}<br>
&nbsp;DRAWICON(下极限,LOW*0.98,1); <br>
&nbsp;M5L+REF(C,1)+REF(C,2)+REF(C,3)+REF(C,4))/5,COLORLIGRAY,DOTLINE;<br>
&nbsp;SGD:=M5*(100+10)/100,COLORLICYAN;<br>
&nbsp;XGD:M5*(100-10)/100,,COLORA68064,,DOTLINE;<br>
&nbsp;XGD下:XGD*(100-2)/100,COLORLIGRAY,DOTLINE;<br>
&nbsp;SGD上:=SGD*(100+2)/100,COLORLIGRAY,DOTLINE;</p>
<p>极限:=L&lt;=XGD下*1.001;<br>
&nbsp;STICKLINE(极限,XGD下,XGD下,4,1),COLORYELLOW;</p>
<p>角度:ATAN((MID/REF(MID,1)-1)*100)*180/3.1416,COLOR008888,NODRAW;<br>
五日平均角度:SUM(角度,5)/5,COLOR008888,NODRAW;</p>
<p>平均角度:=SUM(角度,5)/5;<br>
平均角度1:=SUM(角度,1)/1;<br>
平均角度2:=SUM(角度,2)/2;<br>
平均角度3:=SUM(角度,3)/3;<br>
平均角度4:=SUM(角度,4)/4;</p>
<p>IF(角度&gt;=45,MID,DRAWNULL),COLORRED,LINETHICK1;<br>
&nbsp;IF(角度&lt;=-45,MID,DRAWNULL),COLORBLUE,LINETHICK1;<br>
&nbsp;{IF(角度&gt;=50,UPPER,DRAWNULL),COLORRED,LINETHICK1;<br>
&nbsp;IF(角度&gt;=28,LOWER,DRAWNULL),COLORRED,LINETHICK3;}<br>
&nbsp;IF(平均角度&gt;=45,LOWER,DRAWNULL),COLORYELLOW,LINETHICK1;<br>
&nbsp;IF(平均角度1&gt;=45,LOWER,DRAWNULL),COLORYELLOW,LINETHICK1;<br>
&nbsp;IF(平均角度2&gt;=45,LOWER,DRAWNULL),COLORYELLOW,LINETHICK1;<br>
&nbsp;IF(平均角度3&gt;=45,LOWER,DRAWNULL),COLORYELLOW,LINETHICK1;<br>
&nbsp;IF(平均角度4&gt;=45,LOWER,DRAWNULL),COLORYELLOW,LINETHICK1;</p>
<p>IF(平均角度&lt;=-45,LOWER,DRAWNULL),COLORBLUE,LINETHICK1;<br>
&nbsp;IF(平均角度1&lt;=-45,LOWER,DRAWNULL),COLORBLUE,LINETHICK1;<br>
&nbsp;IF(平均角度2&lt;=-45,LOWER,DRAWNULL),COLORBLUE,LINETHICK1;<br>
&nbsp;IF(平均角度3&lt;=-45,LOWER,DRAWNULL),COLORBLUE,LINETHICK1;<br>
&nbsp;IF(平均角度4&lt;=-45,LOWER,DRAWNULL),COLORBLUE,LINETHICK1;</p>
<p><br>
选股公式源码:<br>
MID:=MA(CLOSE,5),COLORGRAY;<br>
&nbsp;LOWER:=MID*(100-10)/100,,COLORA68064,LINETHICK1;<br>
&nbsp;LOWER下:=LOWER*(100-2)/100,COLORGREEN;<br>
下极限&lt;=LOWER下;</p>
<p><br>

1351344125.jpg

1351344125.jpg
</p>
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则