相关简介:通达信布林线突破上轨选股指标公式源码分享
通达信指标公式源码概况:
指标类别:通达信指标公式
授权方式:免费版
指标评级:★★★★★
指标分类:策略
画线方法:副图
1.股价高于平均线,视为强势;股价低于平均线,视为弱势
2.平均线向上涨升,具有助涨力道;平均线向下跌降,具有助跌力道;
3.二条以上平均线向上交叉时,买进;
4.二条以上平均线向下交叉时,卖出;
5.移动平均线的信号经常落后股价,若以EXPMA、VMA辅助,可以改善。
通达信指标公式源码:
input:M(20,1,100),N(21,1,300);
趋势:MA(CLOSE,M),COLOR0080FF,LAYER0;
上轨:趋势+STD(CLOSE,M),colorFFFF00,LAYER0;
下轨:趋势-STD(CLOSE,M),colorFFFF00,LAYER0;
上极:趋势+2*STD(CLOSE,M),colorGREEN,LAYER0;
下极:趋势-2*STD(CLOSE,M),colorGREEN,LAYER0;
STICKLINE(CLOSE>OPEN,H,LOW,0.3,0),COLOR9933FF;
STICKLINE(OPEN>=CLOSE,L,HIGH,0.3,0),COLOR66CC33;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,8,0),COLOR009900;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,2,0),COLOR00CC00;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,1.5,0),COLOR33FF00;
STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,1,0),COLOR66FF00;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,8,0),COLOR000099;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0),COLOR0000CC;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1.5,0),COLOR0000FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0),COLOR0033FF;
AA:=CLOSE/REF(CLOSE,1)>=1.09;
STICKLINE(AA,OPEN,CLOSE,8,0),COLORYELLOW;
STICKLINE(AA,LOW,HIGH,0.5,0),COLORYELLOW;
TTJ:=BARSLAST((vol=HHV(VOL,N)));
VAR1:=(CLOSE+HIGH+LOW)/3;
VAR2:=EMA(VAR1,10);
VAR3:=REF(VAR2,1);
上升:STICKLINE(VAR2>VAR3,VAR2,VAR3,5,0),COLOR00FFFF;
下跌:STICKLINE(VAR2<VAR3,VAR2,VAR3,5,0),COLORFF0000;
bias0:=(C-ma(C,2))/MA(C,2)*100;
HXL:=V/CAPITAL*100;
D1:=INDEXC;
D2:=MA(D1,13);
DR2:=D2>1.040*D1;
E1:=(C-HHV(C,12))/HHV(C,12)*10;
E2:=(C-REF(C,26))/REF(C,26)*10;
E3:=MA(C,3);
SJ1:=DR2;
SJ2:=E2<-2.30;
SJ3:=BIAS0<-2.7;
SJ5:=SJ1ANDSJ2ANDSJ3;
一:=crOSS(0.5,SJ5);
C1X:=((MA(C,30)-L)/MA(C,60))*200;
M1X:=REF(CLOSE,1);
M2X:=SMA(MAX(CLOSE-M1X,0),7,1)/SMA(Abs(CLOSE-M1X),7,1)*100;
G1X:=FILTER(REF(M2X,1)<20ANDM2X>REF(M2X,1),5);
TUX:=C/MA(C,40)<0.74;
TDJX:=(H-L)/REF(C,1)>0.05;
YULX:=COUNT(TDJX,5)>1;
启动X:=TUXANDTDJXANDYULX;
波:=FILTER((G1XANDC1X>20ORC>REF(C,1))ANDREF(启动X,1),10);
ETG1:=CLOSE/MA(CLOSE,30)*100<75;
ETG2:=CLOSE/MA(CLOSE,50)*100<78;
ETG3:=HIGH>LOW*1.053;
ETG4:=ETG3ANDCOUNT(ETG3,5)>2;
ETG5:=ETG4AND(ETG1ORETG2);
ETG6:=DMA(EMA(CLOSE,5),SUM(vol,8)/2.8/CAPITAL);
ETG7:=(CLOSE-ETG6)/ETG6*100;
赢:=REF(ETG7,1)<-34ANDETG7>REF(ETG7,1)ANDREF(ETG7,1)<REF(ETG7,2)
ANDETG7-REF(ETG7,1)>1.76ORETG5;
XG:赢AND一AND波;
[源码注释]通达信公式动态翻译结果
输出XG:开盘价/1日前的收盘价>1.001 并且 开盘价/1日前的收盘价<1.05
评论(0)