通达信布林bs主图源码 使用说明:B买入S卖出,中轨红线持股!
三日最低:=Ema((REF(L,4)+REF(L,3)+REF(L,2))/3,3);
三日最高:=ema((REF(H,4)+REF(H,3)+REF(H,2))/3,3),COLORRED;
S:=crOSS(CROSS(三日最高,C),0.6);
B:=CROSS(CROSS(C,三日最低),0.5);
DRAWICON(B,LOW*0.98,7);
DRAWICON(S,H*1.01,8);
底线:=IF(C>三日最低,三日最低,DRAWNULL),COLOR8000FF;
高线:=IF(C<三日最高,三日最低,DRAWNULL),COLORRED;
STICKLINE(CURRBARSCOUNT=1,三日最高,三日最高,100,-1),COLORLICYAN;
STICKLINE(CURRBARSCOUNT=1,三日最低,三日最低,100,-1),COLORCYAN;
{逃顶}{公式在线提供:www.xg51.cn}
LC:=REF(CLOSE,1);
rsi5:=SMA(MAX(CLOSE-LC,0),5,1)/SMA(ABS(CLOSE-LC),5,1)*100;
逃命:=CROSS(80,RSI5);
DRAWICON(逃命,H*1.005,15);
TJ1:=REF("cci.CCI",1)>90 AND "CCI.CCI"<REF("CCI.CCI",1);
TJ2:=REF("KDJ.J"(9,3,3),1)>90 AND "KDJ.J"(9,3,3)<REF( "KDJ.J"(9,3,3),1);
TJ3:=REF("RSI.RSI1",1)>70 AND "RSI.RSI1"<REF("RSI.RSI1",1);
TJ4:=COUNT(TJ1,5) AND COUNT(TJ2,5) AND COUNT(TJ3,5);
大顶:=CROSS(TJ4,0.5);
DRAWICON(大顶,H*1.005,2);
TJ5:=REF("CCI.CCI",1)<-100 AND "CCI.CCI">REF("CCI.CCI",1);
TJ6:=REF("KDJ.J"(9,3,3),1)<20 AND "KDJ.J"(9,3,3)>REF( "KDJ.J"(9,3,3),1);
TJ7:=REF("RSI.RSI1",1)<20 AND "RSI.RSI1">REF("RSI.RSI1",1);
TJ8:=COUNT(TJ5,5) AND COUNT(TJ6,5) AND COUNT(TJ7,5);
大底:=CROSS(TJ8,0.5);
DRAWICON(大底,L*0.991,9);
中:(MA(C,3)+MA(C,6)+MA(C,12)+MA(C,24))/4,COLORFF951F,LINETHICK2;
上: bbi+3*STD(BBI,10),COLORRED;
下: BBI-3*STD(BBI,10),COLORBLUE;
YJ:=中;
IF(YJ>REF(YJ,1),YJ,DRAWNULL),COLORWHITE,LINETHICK2;