通达信波段操作 波段密码源码附图

2016-02-13 13:19:00来源:本站整理浏览:361

提供的大盘主副图配合使用能准确的抄底和逃顶,比那个百分百逃顶的还要好,大家看图

波段密码

买线:=EMA(C,2);

 卖线:=EMA(SLOPE(C,21)*20+C,60);

 BU:=CROSS(买线,卖线);

 SEL:=CROSS(卖线,买线);

 DRAWICON(BU,L-0.1,1);

 DRAWICON(SEL,H+0.1,2);

 STICKLINE(买线>=卖线,LOW,HIGH,0.0,1),COLORRED;

 STICKLINE(买线>=卖线,CLOSE,OPEN,2,1),COLORRED;

 STICKLINE(买线<卖线,LOW,HIGH,0.0,1),COLORCYAN;

 STICKLINE(买线<卖线,CLOSE,OPEN,2,1),COLORCYAN;

 操盘线:MA(CLOSE,9),COLORYELLOW;

 界点线:MA(CLOSE,20),COLORMAGENTA;

MA15:=EMA(CLOSE,21);

界:STICKLINE((MA15 > REF(MA15,1)),MA15,MA15,9,6),LINETHICK2,COLOR0000FF;

STICKLINE((MA15 < REF(MA15,1)),MA15,MA15,9,6),LINETHICK2,COLORFF0000;


波段操作指标源码:

RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;

K:=SMA(RSV,3,1);

D:=SMA(K,3,1);

J:=3*K-2*D;

VAR1:=(CLOSE-LLV(LOW,45))/(HHV(HIGH,45)-LLV(LOW,45))*100;

VAR2:=SMA(VAR1,3,1);

VAR3:=SMA(VAR2,3,1);

VAR4:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);

VAR5:=CROSS(VAR4,10) AND VAR3<N;

危机线: 80,COLORRED,POINTDOT,LINETHICK2;

中间线: 50,COLORFFCCCC,POINTDOT,LINETHICK2;

安全线: 10,COLORFF00FF,POINTDOT,LINETHICK2;

VAR6:=(2*CLOSE+HIGH+LOW)/4;

VAR7:=LLV(LOW,M);

VAR8:=HHV(HIGH,M);

VAR9:=EMA((VAR6-VAR7)/(VAR8-VAR7)*100,13);

VARA:=EMA(0.667*REF(VAR9,1)+0.333*VAR9,2);

战术线: VAR9,COLORYELLOW,LINETHICK2;

战略线: EMA(0.382*REF(VAR9,2)+0.618*VAR9,12),COLORBLUE,LINETHICK2;

STICKLINE(VAR9>VARA,VAR9,VARA,6,0),COLORRED;

STICKLINE(VAR9<=VARA,VAR9,VARA,6,0),COLOR00FF00;

VARB:=SUM(IF(CLOSE>REF(CLOSE,7),VOL,IF(CLOSE<REF(CLOSE,7),0-VOL,0)),0);

VARC:=SUMBARS(VOL,CAPITAL);

VARD:=IF(CLOSE>LLV(CLOSE,VARC),1,-1);

VARE:=IF(VARB>LLV(VARB,VARC),1,-1);

VARF:=VARD*VARE;

VAR10:=IF(VARF=-1,1,0);

股票公式栏目导航

精品指标推荐

最新热门

本类随机推荐

相关公式