MACD顶背离,KDJ高位死叉 求此选股公式
发布网友
发布时间:2022-04-23 04:58
我来回答
共2个回答
热心网友
时间:2023-10-15 13:09
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIF,9);MACD:=(DIF-DEA)*2;
天数:=BARSLAST(REF(CROSS(DEA,DIF) AND DIF>0,1));
MACD背离:=CROSS(DEA,DIF) AND DIF<REF(DIF,天数+1);
XG:CROSS(KDJ.K,KDJ.J) AND DIF>0 AND MACD背离;
(已测试)
热心网友
时间:2023-10-15 13:09
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIF,9);MACD:=(DIF-DEA)*2;
天数:=BARSLAST(REF(CROSS(DEA,DIF) AND DIF>0,1));
MACD背离:=CROSS(DEA,DIF) AND DIF<REF(DIF,天数+1);
XG:CROSS(KDJ.K,KDJ.J) AND DIF>0 AND MACD背离;