通达信MACD上主图指标公式

2024-06-04 03:00发布

{0. 将指标搬上显示}DDIF:EMA(CLOSE,12)-EMA(CLOSE,26),NODRAW;A:EMA(DDIF,9),NODRAW;DMACD:(DDIF-DDEA)*2,NODRAW;上市天数:=BARSCOUNT(C); N:=IF(上市天数<90 XCX:=CC比*基+基点;DIF: NOTEXTDDIF:DIF,COLORWHITE;DEA:=EMA(DIF,9); NOTEXTDDEA:DEA,COLORYELLOW;基准零线:=(0-分)/百*基+基点; NOTEXT基准零线:基准零线,POINTDOT,COLORLIRED;MACD:=(DIF-DEA)*2;STICKLINE(MACD>=0,基准零线,基准零线+MACD,0,0),COLORLIRED;STICKLINE(MACD<0 MACD结构指标:}A1:=BARSLAST(REF(OSS(DIF,DEA),1));结构:>C AND DIF>REF(DIF,A1+1) AND CROSS(DIF,DEA);DRAWLINE(A1=0,REF(DEA,1),底部结构,REF(DEA,A1+1),0)
 解锁全文需 1  财富值,免费注册即送20财富值!