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;
{剔除:=NOT(JGDX3.趋势线>10 AND JGDX3.趋势线
{上升趋势中的上涨段、板后M日中连缩N日为"首选"}
首选:BARSLAST(C/REF(C,1)>=1.09)=M
AND COUNT(V<=REF(V,1),N)=N
AND (JGDX3.趋势线>=REF(JGDX3.趋势线,1) OR JGDX3.趋势线>=55)
AND JGDX3.上行>50,COLORRED;
{下降趋势中的上涨段、板后M+1日中连缩N+1日为"次选"}
次选:BARSLAST(C/REF(C,1)>=1.09)=(M+1)
AND COUNT(V<=REF(V,1),(N+1))=(N+1)
AND (JGDX3.趋势线>=REF(JGDX3.趋势线,1) OR JGDX3.趋势线<=10)
AND JGDX3.上行<50,COLOR0099EE;
{真正选股时使用下面一个式子选出"首选"与"次选"股}
{XG: 首选 OR 次选;};