XG:BARSLAST(CROSS(MA(C,20),MA(C,5)))<=6 AND BARSLAST(CROSS(MA(C,20),MA(C,5)))>=4 AND CROSS(MA(C,5),MA(C,20));
{上面是你要求的选股,我把周期设为4-6天,但我个人认为应该把周期设得长一些效果比较好,下面是将周期设为60-20天的选股,个人观点供参考:
XG:BARSLAST(CROSS(MA(C,20),MA(C,5)))<=60 AND BARSLAST(CROSS(MA(C,20),MA(C,5)))>=20 AND CROSS(MA(C,5),MA(C,20)); }
刚刚看到,这个公式可以满足你的条件。
FILTER(BARSLAST(CROSS(MA(C,20),MA(C,5)))=5 AND COUNT(CROSS(MA(C,5),MA(C,20)),2)=1,2);
选出:600988 000909 002686 300006 300032.
BARSLAST(CROSS(MA(C,20),MA(C,5)))>3 AND BARSLAST(CROSS(MA(C,20),MA(C,5)))<7 AND CROSS(MA(C,5),MA(C,20));
BARSLAST(CROSS(MA(C,5),MA(C,20)))>=4 AND BARSLAST(CROSS(MA(C,5),MA(C,20)))<=6 AND CROSS(MA(C,5),MA(C,20))