本帖最后由 Run 于 2023-11-18 16:21 编辑
说明:布林带极限主图,用法和布林一样,提供了下跌极限选股。
<p>以下是通达信布林轨道下跌极限主图/选股预警源码(无源码的请下载附件导入)</p>
<div class="con" id="rjsmad1"></div>
<p>通达信布林轨道下跌极限主图/选股预警源码</p>
<p>DRAWKLINE(HIGH,OPEN,LOW,CLOSE);<br>
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>
UPPER:MID*(100+10)/100,COLORLICYAN;<br>
LOWER:MID*(100-10)/100,,COLORA68064,LINETHICK1;<br>
LOWER下OWER*(100-2)/100,COLORGREEN{,DOTLINE};<br>
LOWER上:UPPER*(100+2)/100,COLORLIMAGENTA,DOTLINE;<br>
XG:=CROSS(LOWER下,C);<br>
XG2:=L<=LOWER+0.01;<br>
下极限:=L<=LOWER下;<br>
{DRAWTEXT(下极限,L*0.98,'下极限'),COLOR00FF00;}<br>
DRAWICON(下极限,LOW*0.98,1); <br>
M5L+REF(C,1)+REF(C,2)+REF(C,3)+REF(C,4))/5,COLORLIGRAY,DOTLINE;<br>
SGD:=M5*(100+10)/100,COLORLICYAN;<br>
XGD:M5*(100-10)/100,,COLORA68064,,DOTLINE;<br>
XGD下:XGD*(100-2)/100,COLORLIGRAY,DOTLINE;<br>
SGD上:=SGD*(100+2)/100,COLORLIGRAY,DOTLINE;</p>
<p>极限:=L<=XGD下*1.001;<br>
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(角度>=45,MID,DRAWNULL),COLORRED,LINETHICK1;<br>
IF(角度<=-45,MID,DRAWNULL),COLORBLUE,LINETHICK1;<br>
{IF(角度>=50,UPPER,DRAWNULL),COLORRED,LINETHICK1;<br>
IF(角度>=28,LOWER,DRAWNULL),COLORRED,LINETHICK3;}<br>
IF(平均角度>=45,LOWER,DRAWNULL),COLORYELLOW,LINETHICK1;<br>
IF(平均角度1>=45,LOWER,DRAWNULL),COLORYELLOW,LINETHICK1;<br>
IF(平均角度2>=45,LOWER,DRAWNULL),COLORYELLOW,LINETHICK1;<br>
IF(平均角度3>=45,LOWER,DRAWNULL),COLORYELLOW,LINETHICK1;<br>
IF(平均角度4>=45,LOWER,DRAWNULL),COLORYELLOW,LINETHICK1;</p>
<p>IF(平均角度<=-45,LOWER,DRAWNULL),COLORBLUE,LINETHICK1;<br>
IF(平均角度1<=-45,LOWER,DRAWNULL),COLORBLUE,LINETHICK1;<br>
IF(平均角度2<=-45,LOWER,DRAWNULL),COLORBLUE,LINETHICK1;<br>
IF(平均角度3<=-45,LOWER,DRAWNULL),COLORBLUE,LINETHICK1;<br>
IF(平均角度4<=-45,LOWER,DRAWNULL),COLORBLUE,LINETHICK1;</p>
<p><br>
选股公式源码:<br>
MID:=MA(CLOSE,5),COLORGRAY;<br>
LOWER:=MID*(100-10)/100,,COLORA68064,LINETHICK1;<br>
LOWER下:=LOWER*(100-2)/100,COLORGREEN;<br>
下极限<=LOWER下;</p>
<p><br>
1351344125.jpg
</p> |