DIF:=(EMA(CLOSE,12)-EMA(CLOSE,26))*100,COLOR0000FF,LINETHICK2;
DEA:=EMA(DIF,9),COLORFFFFFF,LINETHICK2;
macd:=(DIF-DEA)*2,COLORSTICK;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
DIFW:="MacD.DIF#WEEK";
DEAW:="MACD.DEA#WEEK";
FCA:=FILTER(crOSS(DIFW,DEAW),0);
SCA:=FILTER(CROSS(DEAW,DIFW),0);
M周金叉:IF(CROSS("MACD.DIF#WEEK","MACD.DEA#WEEK"),50,0),COLOR0000FF,LINETHICK2;
DIFM:="MACD.DIF#MONTH"; DEAM:="MACD.DEA#MONTH";
FCB:=FILTER(CROSS(DIFM,DEAM),0);
SCB:=FILTER(CROSS(DEAM,DIFM),0);
M月金叉:IF(CROSS("MACD.DIF#MONTH","MACD.DEA#MONTH"),60,0),COLOR00FFFF,LINETHICK2;
M周死叉:IF(CROSS("MACD.DEA#WEEK","MACD.DIF#WEEK"),-50,0),COLOR0000FF,LINETHICK2;
M月死叉:IF(CROSS("MACD.DEA#MONTH","MACD.DIF#MONTH"),-60,0),COLOR00FFFF,LINETHICK2;
通达信MACD周月线金叉死叉指标公式
本文来自网络,不代表公式指标立场,转载请注明出处:https://www.gszb.top/22792.html