M:=4;
N:=3;
1,COLORBLacK;
二缩:0.7*(BArslAST(C/REF(C,1) =1.09)=(M-1)
AND COUNT(V =REF(V,1),(N-1))=(N-1)),COLORWHITE;
三缩:0.7*(BARSLAST(C/REF(C,1) =1.09)=M
AND COUNT(V =REF(V,1),N)=N),COLORYELLOW;
四缩:0.7*(BARSLAST(C/REF(C,1) =1.09)=(M+1)
AND COUNT(V =REF(V,1),(N+1))=(N+1)),COLORCYAN;
五缩:0.7*(BARSLAST(C/REF(C,1) =1.09)=(M+2)
AND COUNT(V =REF(V,1),(N+2))=(N+2)),COLORMAGENTA;
六缩:0.7*(BARSLAST(C/REF(C,1) =1.09)=(M+3)
AND COUNT(V =REF(V,1),(N+3))=(N+3)),COLORGREEN;
首选:BARSLAST(C/REF(C,1) =1.09)=M AND COUNT(V =REF(V,1),N)=N,COLORRED;
次选:BARSLAST(C/REF(C,1) =1.09)=(M+1)
AND COUNT(V =REF(V,1),(N+1))=(N+1);
{真正选股时使用下面一个式子选出 首选 与 次选 股}
{XG: 首选 OR 次选;};