通达信波段副图源码

2015-10-20 08:30:00来源:本站整理浏览:142

红色做多,买1;双红色,买2,全仓做多;
 绿色做空,卖1;双绿色,卖2,全仓做空;
 简单明了,无需多想。

n  100     m   10

 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);

VAR11:=((CLOSE - LLV(LOW,15))/(HHV(HIGH,15) - LLV(LOW,15)))*(100);
VAR22:=REVERSE(VAR11);
VAR33:=SMA(VAR11,5,1);
KK:=SMA(VAR33,3,1);
DD:=SMA(KK,3,1);
DRAWTEXT(CROSS(KK,DD) AND MA(CLOSE,5)<CLOSE,DD,'做多阶段'),COLORRED;
DRAWTEXT(CROSS(DD,KK) AND MA(CLOSE,5),DD,'做空阶段'),COLORGREEN;
STICKLINE((KK >= DD),KK,DD,6,0),COLOR0000A8;
STICKLINE((KK >= DD),KK,DD,5,0),COLOR0000C0;
STICKLINE((KK >= DD),KK,DD,4,0),COLOR0000E0;
STICKLINE((KK >= DD),KK,DD,3,0),COLOR0000F0;
STICKLINE((KK >= DD),KK,DD,2,0),COLOR0000D0;
STICKLINE((KK >= DD),KK,DD,1,0),COLOR8080FF;
STICKLINE((KK <= DD),KK,DD,6,0),COLOR008800;
STICKLINE((KK <= DD),KK,DD,5,0),COLOR009900;
STICKLINE((KK <= DD),KK,DD,4,0),COLOR00AA00;
STICKLINE((KK <= DD),KK,DD,3,0),COLOR00BB00;
STICKLINE((KK <= DD),KK,DD,2,0),COLOR00CC00;
STICKLINE((KK <= DD),KK,DD,1,0),COLOR00DD00;
极端底部线:10;
极端顶部线:90;


点击下载通达信波段副图


 



股票公式栏目导航

精品指标推荐

最新热门

本类随机推荐

相关公式