强弱跟踪

通用源码:飞狐软件,大智慧,通达信测试过,通过

VAR1:=IF(DATE<1990601 AND DATE>931208,1,0);

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;

金浪:=(K+D+J)/3,COLORYELLOW;

平均:=MA(金浪,4),COLORRED;

压力:=HHV(MA(金浪,3),8),COLORGREEN;

N3:=BARSLAST(CROSS(金浪,平均));

N4:=BARSLAST(CROSS(平均,金浪));

跟踪:IF(N3<N4,N3+1,0),COLORRED;

涨幅统计:(C-REF(C,跟踪))/REF(C,跟踪)*100,COLORRED;

STICKLINE(金浪>=压力,70000,0,8,0),COLOR000040;

STICKLINE(金浪<压力,0,70000,8,0),COLOR400000;

MA10:MA(C,10),COLORYELLOW;

MA13:MA(C,13),COLORFF00FF;

X2:=金浪;

X3:=平均;

STICKLINE(X2>=X3,LOW,HIGH,0.1,0),COLORRED;

STICKLINE(X2>=X3,CLOSE,OPEN,4.5,0),COLOR0000AA;

STICKLINE(X2>=X3,CLOSE,OPEN,3,0),COLOR0000CC;

STICKLINE(X2>=X3,CLOSE,OPEN,2,0),COLOR0000DD;

STICKLINE(X2>=X3,CLOSE,OPEN,1,0),COLOR0000FF;

STICKLINE(X2<X3,CLOSE,OPEN,1,0),COLOREEEE00;

STICKLINE(X2<X3,CLOSE,OPEN,2,0),COLORDDDD00;

STICKLINE(X2<X3,CLOSE,OPEN,3,0),COLORCCCC00;

STICKLINE(X2<X3,CLOSE,OPEN,4.5,0),COLORAAAA00;

STICKLINE(X2<X3,LOW,HIGH,0.1,0),COLORFFFF00;

posted on 2010-01-13 14:07  chuncn  阅读(662)  评论(0编辑  收藏  举报

导航