发布网友 发布时间:2022-04-23 01:23
共2个回答
热心网友 时间:2023-10-10 00:03
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改成你想的天数即可
热心网友 时间:2023-10-10 00:03
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;