通达信《N字买点》副图/选股源码

2017-02-04 15:10:00来源:本站整理浏览:413

ZT:=(C>=ZTPRICE(REF(CLOSE,1),0.1)) OR (C/REF(C,1)>1.095 && C=H);
 ELZ:=EVERY(ZT,2);
 ZTS:=BARSLAST(ZT=1);
 TK:=L-REF(H,1)>=0.01;
 TS1:=BARSLAST(CROSS(COUNT(TK,30),0.5));
 XG1:=EVERY(L-REF(H,TS1+1)>=0.01,TS1) AND L<REF(L,TS1) AND C>O;
 TS2:=BARSLAST(CROSS(COUNT(TK,30),1.5));
 XG2:=EVERY(L-REF(H,TS2+1)>=0.01,TS2) AND L<REF(L,TS2) AND C>O;
 TS3:=BARSLAST(CROSS(COUNT(TK,30),2.5));
 XG3:=EVERY(L-REF(H,TS3+1)>=0.01,TS3) AND L<REF(L,TS3) AND C>O;
 TS4:=BARSLAST(CROSS(COUNT(TK,30),3.5));
 XG4:=EVERY(L-REF(H,TS4+1)>=0.01,TS4) AND L<REF(L,TS4) AND C>O;
 TS5:=BARSLAST(CROSS(COUNT(TK,30),4.5));
 XG5:=EVERY(L-REF(H,TS5+1)>=0.01,TS5) AND L<REF(L,TS5)AND C>O;
 TS6:=BARSLAST(CROSS(COUNT(TK,30),5.5));
 XG6:=EVERY(L-REF(H,TS6+1)>=0.01,TS6) AND L<REF(L,TS6)AND C>O;
 TS7:=BARSLAST(CROSS(COUNT(TK,30),6.5));
 XG7:=EVERY(L-REF(H,TS7+1)>=0.01,TS7) AND L<REF(L,TS7)AND C>O;
 TS8:=BARSLAST(CROSS(COUNT(TK,30),7.5));
 XG8:=EVERY(L-REF(H,TS8+1)>=0.01,TS8) AND L<REF(L,TS7)AND C>O AND REF(ZTS,1)>=2;
 XG9:(XG1 OR XG2 OR XG3 OR XG4 OR XG5 OR XG6 OR XG7 OR XG8 ) AND REF(ZTS,1)<=20;

股票公式栏目导航

本类热门

相关公式