学习 目标哈佛 老师理念做的选股公式
源码
SETPFFIN(00001);{仅调用历年年报数据}
var1:=(PFFIN(1106,0)-PFFIN(1106,1))-(PFFIN(1054,0)-PFFIN(1054,1))<0;
{负债变化值-应收账款变化值>0}
var2:=PFFIN(1310,0)>0 and PFFIN(1310,1)>0;
{两年经营现金流为正}
var3:=(PFFIN(1310,0)-(PFFIN(1106,0)-PFFIN(1106,1))-(PFFIN(1054,0)-PFFIN(1054,1)))>
(PFFIN(1310,1)-(PFFIN(1106,1)-PFFIN(1106,2))-(PFFIN(1054,1)-PFFIN(1054,2))) ;
{双现金流最近两年呈逐季递增态势}
var4:=(PFFIN(1002,0)+PFFIN(1002,1))/2>16 ;
{过去5年来平均净资产收益率高于14%}{做了修改}
var5:=DYNAINFO(39)<=45 and DYNAINFO(39)>0 ;
{市盈率低于30 并且大于 0}{做了修改}
{根据pb-roe估值法,净资产收益率高的股票,他的市盈率也可以高一点}
(var1 and var2 and var3) and (var4 and var5);