波段操盘副图通达信公式

N:=21;

VR1:=33;

VR2:=33;

0,COLORWHITE;

CS1:=(2*CLOSE+HIGH+LOW)/4*(VR1+0.001);

CS2:=EMA(CS1,4)*(VR2);

CS3:=EMA(CS2,4);

CS4:=EMA(CS3,4);

JS0:=(CS4-REF(CS4,1))/REF(CS4,1)*100*(VR2);

短波0:JS0;

JS1:=MA(JS0,2);

短波1:JS1;

JS2:=MA(JS0,1);

短波2:JS2;

{中波:MA(JS1,N),COLORRED;}

红实波:JS0>=0 AND JS0>REF(JS0,1),COLORRED,NODRAW;

红空波:JS0>=0 AND JS0<=REF(JS0,1),COLORLIRED,NODRAW;

绿波:JS0<0 AND JS1>=JS2,COLORGREEN,NODRAW;

蓝波:JS0<0 AND JS1<=JS2,COLORBLUE,NODRAW;

STICKLINE(红实波 ,JS0,0,2,0),COLORRED;

STICKLINE(红空波,JS0,0,2,1),COLORRED;

STICKLINE(绿波,JS0,0,2,0),COLORGREEN;

STICKLINE(蓝波,JS0,0,2,0),COLORBLUE;

量比:=VOL/EMA(VOL,21);

{放量阳线}STICKLINE(量比>1.5 AND C/REF(C,1)>1.03 AND JS0>0,JS0 ,JS0+0.5*VR2 ,2 ,0 ),COLORMAGENTA;

DRAWTEXT(量比>1.5 AND C/REF(C,1)>1.03 AND JS0>0,JS0+0.7,'加仓'),COLORBLUE;

{放量阳线}STICKLINE(量比>1.5 AND C/REF(C,1)>1.03 AND JS0<0,0,0.5 ,2 ,0 ),COLORMAGENTA;

DRAWTEXT(量比>1.5 AND C/REF(C,1)>1.03 AND JS0<0,0.7,'加仓'),COLORMAGENTA;

{放量阴线}STICKLINE(量比>1.5 AND C/REF(C,1)<0.98 AND JS0>0,0,MIN(-0.3,-JS0) ,2 ,0 ),COLORCYAN;

{放量阴线}STICKLINE(量比>1.5 AND C/REF(C,1)<0.98 AND JS0<0,JS0,-0.3*VR2+JS0 ,2 ,0 ),COLORCYAN;

DRAWTEXT(量比>1.5 AND C/REF(C,1)<0.98 AND JS0>0,JS0+0.1 ,'出货'),COLORGREEN;

(0)

相关推荐