通达信量能动力副图指标 源码 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 涨幅继续小跌:DRAWTEXT(量能<0.5*N AND 涨幅>-N AND 涨幅>0,HSL,'继续小跌'),COLORLIGREEN; 继续大跌:DRAWTEXT(量能>3*N AND 涨幅<-3*N,HSL,'继续大跌'),COLORCYAN; 注意反转:DRAWTEXT(((量能>3*N AND 涨幅3*N) OR (量能>3*N AND 涨幅>-N AND 涨幅<0) OR (量能<0.5*N AND 涨幅<-3*N)),HSL,'注意反转'),COLORBLUE;
|