我用飞狐软件编了两个公式:
{1、卦象情况}
sg:=(zqdmsum+NUMBERSUM(CLOSE,0))/8;
{上卦}shanggu:(sg-INTPART(sg))*8;
xg:=(zqdmsum+NUMBERSUM(CLOSE,2)-NUMBERSUM(CLOSE,0))/8;
{下卦}xiagua:(xg-INTPART(xg))*8;
dy:=(zqdmsum+NUMBERSUM(CLOSE,2))/6;
{动爻}dongyao:(dy-INTPART(dy))*6;
{2、卦象情况选股}
m1 1 0 8
m2 1 0 8
m3 1 0 6
sg:=(zqdmsum+NUMBERSUM(CLOSE,0))/8;
shanggua:=(sg-INTPART(sg))*8;
xg:=(zqdmsum+NUMBERSUM(CLOSE,2)-NUMBERSUM(CLOSE,0))/8;
xiagua:=(xg-INTPART(xg))*8;
dy:=(zqdmsum+NUMBERSUM(CLOSE,2))/6;
dongyao:=(dy-INTPART(dy))*6;
shanggua=m1 and xiagua=m2 and dongyao=m3
周一600898涨停,其上周五的m1=0 m2=3 m3=2
选出上周五与之相同的股票,得到600030、600898、600887、000605、000711,这几个股票周一表现:600898涨停、600887微涨,其余均下跌。