通达信波段主图指标
N:=IF(BARSCOUNT(C)>=10,10,BARSCOUNT(C));
STICKLINE(C>=MA(C,N),MA(C,N),MA(C,N*0.7),2,0),COLORYELLOW;
STICKLINE(C<MA(C,N),MA(C,N),MA(C,N*0.7),2,0),COLORBLUE;
DRAWKLINE(H,O,L,C);
短波段A: IF(C>=MA(C,N),MA(C,N),MA(C,N*0.7));
短波段B: IF(C<MA(C,N),MA(C,N),MA(C,N*0.7));
NOTEXT1:IF(CLOSE>短波段A AND CLOSE!=短波段A,短波段A,DRAWNULL),COLORYELLOW;
NOTEXT2:IF(CLOSE<短波段A AND CLOSE!=短波段A,短波段A,DRAWNULL),COLORBLUE;
NOTEXT3:IF(CLOSE>短波段B AND CLOSE!=短波段B,短波段B,DRAWNULL),COLORYELLOW;
NOTEXT4:IF(CLOSE<短波段B AND CLOSE!=短波段B,短波段B,DRAWNULL),COLORBLUE;
R:=IF(BARSCOUNT(C)>=45,45,BARSCOUNT(C));
STICKLINE(C>=MA(C,R),MA(C,R),MA(C,R*0.78),2,0),COLORMAGENTA;
STICKLINE(C<MA(C,R),MA(C,R),MA(C,R*0.78),2,0),COLORLIGREEN;
DRAWKLINE(H,O,L,C);
长波段A:IF(C>=MA(C,R),MA(C,R),MA(C,R*0.78));
长波段B:IF(C<MA(C,R),MA(C,R),MA(C,R*0.78));
NOTEXT5:IF(CLOSE>长波段A AND CLOSE!=长波段A,长波段A,DRAWNULL),COLORMAGENTA;
NOTEXT6:IF(CLOSE<长波段A AND CLOSE!=长波段A,长波段A,DRAWNULL),COLORLIGREEN;
NOTEXT7:IF(CLOSE>长波段B AND CLOSE!=长波段B,长波段B,DRAWNULL),COLORMAGENTA;
NOTEXT8:IF(CLOSE<长波段B AND CLOSE!=长波段B,长波段B,DRAWNULL),COLORLIGREEN;
VR1:=(REF(C,2)-REF(C,1))/REF(C,2)>0.05;
VR2:=(REF(C,3)-REF(C,2))/REF(C,3)>0.05;
VR3:=REF(H,2)-REF(H,1);
VR4:=REF(H,1)-VR3;
VR5:=V/CAPITAL*100;
VR6:=1-(VR5<15 AND (H-L)/C>0.045 AND C>VR4 AND VR1 AND VR2 AND C>O AND MA(C,60)-MA(C,9)/2.68>C);
VR7:=VR6;
- 上一篇:通达信绝对买点副图/ 选股指标 2016/10/17
- 下一篇:通达信熊转牛买点之决战20线主图源码 2016/10/17