通达信正斜率选股主图公式暨选股预警公式

QA:=REF(H,10)=HHV(H,2*10+1);
 QB:=BACKSET(QA,10+1);
 QC:=FILTER(QB,10) AND H=HHV(H,10+1);
 QD:=BARSLAST(QC);
 QE:=IF(QC,CURRBARSCOUNT,0);
 QF:=IF(QD,REF(QE,QD),QE);
 QG:=CONST(QF);
 QH:=REF(QF,QD+1);
 QW:=CONST(QH);

 DRAWLINE(CURRBARSCOUNT=QW,H,CURRBARSCOUNT=QG,H,1),COLORYELLOW;