通达信量价MACD指标公式
2020/1/23 19:16:45
{使用说明:MACD的原理其实就是乖离,量MACD比价MACD先行.量价背离一般出现在强势行情中比较可靠,股价在高价位时,通常只要出现一次背离的形态即可确认位股价即将反转,而股价在低位时,一般要反复出现几次背离后才能确认。}
N1:=16; N2:=26; N3:=9;
价DIF:EMA(C,N1)-EMA(C,N2);
价DEA:EMA(价DIF,N3);
价MACD:(价DIF-价DEA)*2,COLORSTICK;
AAA:=V/CAPITAL*100;
量DIF:EMA(AAA,N1)-EMA(AAA,N2);
{投股票网-股票公式网站 www.tou18.cn}
量DEA:EMA(量DIF,N3),COLORB336C9;
量MACD:(量DIF-量DEA)*2,NODRAW;
STICKLINE(量MACD>0,0,量MACD,0.3,-1),COLORMAGENTA;
STICKLINE(量MACD<=0,0,量MACD,0.3,-1),COLORGREEN;
STICKLINE(价DIF>价DEA,价DIF,价DEA,0.5,-1),COLORF580F5;
STICKLINE(价DIF<=价DEA,价DIF,价DEA,0.5,-1),COLORCCDD33;
STICKLINE(量DIF>量DEA,量DIF,量DEA,0.5,-1),COLORYELLOW;
STICKLINE(量DIF<=量DEA,量DIF,量DEA,0.5,-1),COLORGRAY;
投股票 网 w ww.tou18.cn
股市公式下载推荐