aa:cross(ma(close,5),ma(close,20));//表示5日均线与20日均线交金**b:cross(ma(close,10),ma(close,20));//表示10日均线与20日均线交金叉选股:aa and bb;或者直接选股:cross(ma(close,5),ma(close,20)) and cross(ma(close,10),ma(close,20));
condtion_a:=cross(ma(c,5),ma(c,10));condtion_b:=barslast(condtion_a)>0;condtion_c:=count(ccondtion:condtion_b and condtion_c and not(cross(ma(c,10),ma(c,5)));