M1:=5; M2:=10; M3:=20; M4:=60; MA1:MA(CLOSE,M1); MA2:MA(CLOSE,M2); MA3:MA(CLOSE,M3); MA4:MA(CLOSE,M4); {破N日前高} N:=10;{N表示天数,可任意设为:N>1的自然数} LTW:=LLVBARS(L,N); LTTW:=BARSLAST(CURRBARSCOUNT=CONST(LTW)+1); HTW:=FINDHIGHBARS(H,LTW+1,N,1); N任意设:DRAWLINE(CURRBARSCOUNT=CONST(HTW)+1,H,ISLASTBAR,REF(H,HTW),0),COLORLIRED,LINETHICK2;
{ 选股公式:
N:=10; M:=1.2; YY:=(H-MAX(C,O))>ABS(C-O); TT:=BARSLAST( H>=HHV(H,N) AND V>=HHV(V,N)); 放量:=VOL/REF(VOL,1)>M; XG:REF(YY,TT) AND TT>0 AND CROSS(C,REF(H,TT)) AND C>=REF(HHV(H,N),1) AND 放量; }
![通达信破N日前高主图及选股指标公式](http://image96.360doc.com/DownloadImg/2016/04/0615/69261615_1.jpg)
|