{参数表:
RJ:(0,3,3);RJF:(0,10,5);DL:(0,3,3);DLF:(0,200,10);
JG:(0,3,3);JGF:(0,100,20);SMF:(0,100,2)
参数精灵:
股东人数减:PARAM#0(0-3)期
股东人数减:PARAM#1(0-10)%
大股东增仓:PARAM#2(0-3)期
大股东增仓:PARAM#3(0-200)%
机构增仓 :PARAM#4(0-3)期
机构增仓 :PARAM#5(0-100)%
私募增仓 :PARAM#6(0-100)%
}
RJ:=3;
RJF:=5;
DL:=1;
DLF:=4;
JG:=1;
JGF:=2;
SMF:=1;
{股东增减连续期数,GDZJLXQS}
GDRS0:=FINONE(242,0,0);GDRS1:=FINONE(242,0,1);
GDRS2:=FINONE(242,0,2);GDRS3:=FINONE(242,0,3);
GDZJLXQS:=IF(GDRS0>GDRS1,IF(GDRS1>GDRS2,IF(GDRS2>GDRS3,3,2),1),IF(GDRS0<GDRS1,IF(GDRS1<GDRS2,IF(GDRS2<GDRS3,-3,-2),-1),0));
股东增幅:=(GDRS0/GDRS1-1)*100;
RJ0:=GDZJLXQS<=-RJ AND 股东增幅<=-RJF;
{大流股东连续增仓期数,DLGDLXZCQS}
DGD0:=FINONE(264,0,0);DGD1:=FINONE(264,0,1);
DGD2:=FINONE(264,0,2);DGD3:=FINONE(264,0,3);
DLGDLXZCQS:=IF(DGD0>DGD1,IF(DGD1>DGD2,IF(DGD2>DGD3,3,2),1),IF(DGD0<DGD1,IF(DGD1<DGD2,IF(DGD2<DGD3,-3,-2),-1),0));
大流股东增仓:=(DGD0/DGD1-1)*100;
DL0:=DLGDLXZCQS>=DL AND 大流股东增仓>=DLF;
{机构连续增仓期数,JGLXZCQS}
JGCW0:=FINONE(247,0,0);JGCW1:=FINONE(247,0,1);
JGCW2:=FINONE(247,0,2);JGCW3:=FINONE(247,0,3);
JGLXZCQS:=IF(JGCW0>JGCW1,IF(JGCW1>JGCW2,IF(JGCW2>JGCW3,3,2),1),IF(JGCW0<JGCW1,IF(JGCW1<JGCW2,IF(JGCW2<JGCW3,-3,-2),-1),0));
机构增仓:=(JGCW0/JGCW1-1)*100;
JG0:=JGLXZCQS>=JG AND 机构增仓>=JGF;
私募占流通比:=FINVALUE(259)/FINVALUE(239)*100>=SMF;
XG:IF(RJ>0,IF(DL>0,IF(JG>0,RJ0 AND DL0 AND JG0 AND 私募占流通比,RJ0 AND DL0 AND 私募占流通比),
IF(JG>0,RJ0 AND JG0 AND 私募占流通比,RJ0 AND 私募占流通比)),
IF(DL>0,IF(JG>0,DL0 AND JG0 AND 私募占流通比,DL0 AND 私募占流通比),
IF(JG>0,JG0 AND 私募占流通比,私募占流通比)));