beyond202104 发表于 2023-8-28 16:32:43

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;


确实如此粮 发表于 2023-10-23 08:34:30

不容易啊!好东西!

春风富贵糖 发表于 2024-2-12 08:49:41

帮顶!

力之 发表于 2024-3-10 22:56:39

不容易啊!好东西!

紫家猫牙 发表于 2024-4-1 21:21:10

真是 收益 匪浅

一切的事情切e 发表于 2024-4-7 14:19:15

只为积分!感谢!
页: [1]
查看完整版本: MACD周月线金叉死叉(通达信公式 副图 源码 测试图)