网友求助:

股价跌幅20%以上,同时日线MACD准备金叉或第一日金叉的选股公式

 

解答如下:

跌幅:=-(C-REF(C,10))/REF(C,10)*100>20;
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
跌幅 AND REF(DIFF,2)>REF(DIFF,1) AND DIFF>REF(DIFF,1) OR CROSS(DIFF,DEA);