MACD周月线金叉死叉(通达信公式 副图 源码 测试图)
MACD周月线金叉死叉
自用的通达信MACD周线指标
{MACD月周}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;