W0:=5;
W1:=COUNT(crOSS(MA(C,5),MA(C,10)),W0) AND COUNT(CROSS(MA(C,5),MA(C,20)),W0);
W2:=(COUNT(CROSS(MA(C,5),MA(C,30)),W0) OR COUNT(CROSS(MA(C,3),MA(C,5)),W0),2);
W3:=C>REF(C,1);
{ _通达信股票指标公式}
W4:=NOT(COUNT(REF(C<O,1),2)=2) AND REF(C>O,1);
W5:=NOT((H-MAX(C,O))/(H-L)>0.35 AND C/REF(C,7)>1.1);
去除ST股:=IF(NAMELIKE('S'),0,1);
去除星股:=IF(NAMELIKE('*'),0,1);
去除停牌:=vol>0;{量比不为0}
得福:=IF(FILTER(W1 AND W2,W0) AND W3 AND W4 AND W5,0.9,0);
稳得福:CROSS(得福>0,0.85) AND 去除ST股 AND 去除星股 AND 去除停牌;