师傅们:大智慧KDJ.RSI.MACD 指标在5天内分别出现金叉的选股公式请帮我编一个。

师傅们:大智慧KDJ.RSI.MACD 指标在5天内分别出现金叉的选股公式请帮我编一个。
(5天内分别出现金叉,是”一个“选股公式)
ma1:=cross("kdj.k","kdj.d");
ma2:=cross("macd.diff","macd.dea");
ma3:=cross("rsi.rsi1","rsi.rsi3");
选股:count(ma1,5)>=1 and count(ma2,5)>=1 and count(ma3,5)>=1;
五天出现金叉的信号太多,你可以精选一下,将选股中的5改成你想的天数即可
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
DIFF :=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA :=EMA(DIFF,9);
LC := REF(CLOSE,1);
RSI1:=SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100;
RSI3:=SMA(MAX(CLOSE-LC,0),24,1)/SMA(ABS(CLOSE-LC),24,1)*100;
var1:=cross(k,d); var2:=cross(diff,dea);var3:=cross(rsi1,rsi3);
count(var1,5)>=1 and count(var2,5)>=1 and count(var3,5)>=1;