【股票知识干货】【通达信】经典MACD金叉死叉指标公式
SHORT:=12;LONG:=26;MID:=9; DIF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG); DEA:EMA(DIF,MID); MACD:(DIF-DEA)*2,COLORSTICK; A1:=CROSS(DEA,DIF); A2:=BARSLAST(CROSS(DIF,DEA)); 死叉:IF(A1,INTPART((C/REF(C,A2)-1)*10...
SHORT:=12;LONG:=26;MID:=9; DIF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG); DEA:EMA(DIF,MID); MACD:(DIF-DEA)*2,COLORSTICK; A1:=CROSS(DEA,DIF); A2:=BARSLAST(CROSS(DIF,DEA)); 死叉:IF(A1,INTPART((C/REF(C,A2)-1)*10...