通达信量能动力副图指标
2016-05-28 16:00:00来源:本站整理浏览:231
通达信量能动力副图指标
源码
N:=6;
量能:SUM(HSL,N),NODRAW;
涨幅: 100*(CLOSE-REF(CLOSE,N))/REF(CLOSE,N),NODRAW;
STICKLINE(HSL<=1,HSL,0,1,1),COLORBROWN;
STICKLINE(HSL>1 AND HSL<3,HSL,0,1,0),COLORLIBLUE;
STICKLINE(HSL>=3,HSL,0,1,0),COLORMAGENTA;
继续大涨:DRAWTEXT(量能>3*N AND 涨幅>3*N,HSL,'继续大涨'),COLORRED;
继续小涨:DRAWTEXT(量能<0.5*N AND 涨幅<N,HSL,'继续小涨'),COLORMAGENTA;
继续小跌:DRAWTEXT(量能<0.5*N AND 涨幅>-N AND 涨幅>0,HSL,'继续小跌'),COLORLIGREEN;
继续大跌:DRAWTEXT(量能>3*N AND 涨幅<-3*N,HSL,'继续大跌'),COLORCYAN;
注意反转:DRAWTEXT(((量能>3*N AND 涨幅<N) OR (量能<0.5*N AND 涨幅>3*N)
OR (量能>3*N AND 涨幅>-N AND 涨幅<0) OR (量能<0.5*N AND 涨幅<-3*N)),HSL,'注意反转'),COLORBLUE;
- 上一篇公式:通达信量能饱和副图指标
- 下一篇公式:通达信买点优选副图指标