MA20:=MA(C,20);
MA5:=MA(C,5);
MA10:=MA(C,10);
连续3天上涨:=COUNT(C>REF(C,1),3)=3;
回调:=COUNT(连续3天上涨,5)>=1 AND COUNT(C<REF(C,1),5)>=1 AND C/MA5>=1 AND C/MA5<1.015;
收阳:=C>O;
上穿均线:=(O<MA20 AND C>MA20) OR (O<MA5 AND C>MA5) OR (O<MA10 AND C>MA10);
均线朝上:=MA20>REF(MA20,1);
XG:回调 AND 收阳 AND 上穿均线 AND 均线朝上;
通达信公式 顺势而为选股
MA20:=MA(C,20);
MA5:=MA(C,5);
MA10:=MA(C,10);
连续3天上涨:=COUNT(C>REF(C,1),3)=3;
回调:=COUNT(连续3天上涨,5)>=1 AND COUNT(C<REF(C,1),5)>=1 AND C/MA5>=1 AND C/MA5<1.015;
收阳:=C>O;
上穿均线:=(O<MA20 AND C>MA20) OR (O<MA5 AND C>MA5) OR (O<MA10 AND C>MA10);
均线朝上:=MA20>REF(MA20,1);
XG:回调 AND 收阳 AND 上穿均线 AND 均线朝上;