通达信量价MACD分时主图指标公式

2023-12-14 17:00发布

{}放量:=SUM(V,3)>REF(SUM(V,7),3)*2;DRAWICON(放量=1 AND FILTER(放量=1,6),C,11);DRAWTEXT(放量=1 AND FILTER(放量=1,6),C-C*0.015,'量'),COLORYELLOW;{价}现价:C,COLORMAGENTA,LINETHICK3;:SUM(V*C,0)/SUM(V,0),COLORGREEN,LINETHICK3;绿跌:IF(均价<=REF(均价,1),均价,DRAWNULL),COLORGREEN,LINETHICK5;蓝涨:IF(均价>=REF(均价,1),均价,DRAWNULL),COLORBLUE,LINETHICK5;{}DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEA:=EMA(DIF,9);MACD:=2*(DIF-DEA);X:=CONST(HHV(A(C-DYNAINFO(3)),FROMOPEN))/CONST(HHV(ABS(DIF),FROMOPEN))*0.6;DI:DIF*X+DYNAINFO(3),COLORGRAY;DE:DEA
 解锁全文需 1  财富值,免费注册即送20财富值!