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

发布网友 发布时间: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;

声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com