请高手把下面的源码改成零轴之上资金动能A金叉资金动能B的同花顺选股公式

2024-11-29 15:15:50
推荐回答(1个)
回答1:

DIFF:=EMA(CLOSE,3)-EMA(CLOSE,8);
X1:=EMA(DIFF,5)*5;
X2:=((EMA(CLOSE,3)-EMA(CLOSE,8)))*5;
资金动能A:=X2;
资金动能B:=X1;
XG:CROSS(资金动能A,资金动能B) AND 资金动能A>=0 AND 资金动能B>=0;