通达信骗线MACD指标公式

2023-11-18 00:58发布

SHORT:=12;LONG:=26;MID:=9;R:="MACD.MACD";H3:=REF(RMACD,3);H2:=REF(RMACD,2);H1:=REF(RMACD,1);H0:=RMACD;买:H2<0>H2 AND H2>H1 AND H0>H1;DIF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);DEA:EMA(DIF,MID);MACD:(DIF-DEA)*2,COLORSTICK;IF(DIFREF(DIF,1),DIF,DRAWNULL),COLORRED;IF(DEAREF(DEA,1),DEA,DRAWNULL),LINETHICK2,COLORRED;A:STICKLINE(MACDREF(MACD,1) AND REF(MACD,1)0)),0),LINETHICK0,COLOR00FF00,NODRAW;红面:10*IF (MACD>0,SUM(MACD,BARSLAST(MACD<0)),0),LINETHICK0,COLORRED,NODRAW;
 解锁全文需 1  财富值,免费注册即送20财富值!