请各位老师帮帮忙,我想求助均线比较问题,比如:ma5>ma10 and ma10>ma20 and ma20>ma60 and ma60>ma120;但是有些股票是次新股没有120日或者250日均线数据的,只需要ma5>ma10 and ma10>ma20 and ma20>ma60就行,所以按刚才那公式选股的话就选不出这些次新股,但是又想一次性选出来这该怎么办?
MA5:=MA(C,5);
MA10:=MA(C,10);
MA20:=MA(C,20);
MA30:=MA(C,30);
MA60:=MA(C,60);
MA120:=MA(C,120);
MA1:=C>REF(C,1);
XG:(MA5>MA10 AND MA10>MA20 AND MA20>MA60 AND MA60>MA120) OR (MA5>MA10 AND MA10>MA20 AND MA20>MA30) AND MA1;
MA5:=MA(C,5);
MA10:=MA(C,10);
MA20:=MA(C,20);
MA30:=MA(C,30);
MA60:=MA(C,60);
MA120:=MA(C,120);
MA1:=C>REF(C,1);
XG:(MA5>MA10 AND MA10>MA20 AND MA20>MA60 AND MA60>MA120) OR (MA5>MA10 AND MA10>MA20 AND MA20>MA30) AND MA1;