《通达信自用MACD指标公式.docx》由会员分享,可在线阅读,更多相关《通达信自用MACD指标公式.docx(5页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、通达信自用MACD指标公式_正点财经DIF:(EMA(CLOSE,12)-EMA(CLOSE,26),COLORRED,NODRAW;DEA:EMA(DIF,9),COLOR00FFFF,NODRAW;MACD:2*(DIF-DEA),NODRAW;DIFK:=EMA(DIF,3);DIFD:=EMA(DIFK,3);DKK:4*DIF-3*DEA,COLORFF00FF,NODRAW;DDD:EMA(DKK,5),COLOR2588FF,NODRAW;TRLSX1:=MAX(MAX(HHV(DIF,13)-LLV(DIF,13),ABS(REF(DIF,1)-HHV(DIF,13),ABS(
2、REF(DIF,1)-LLV(DIF,13);TRLSX2:=EMA(TRLSX1,13);TRLSX3:=REF(DIF,1)-REF(TRLSX2,1);支撑:HHV(TRLSX3,13),COLORFFFFFF,NODRAW;RSV14:=(CLOSE-LLV(LOW,14)/(HHV(HIGH,14)-LLV(LOW,14)-0.5;K14:=EMA(RSV14,3),COLORFF00FF,NODRAW;D14:=EMA(K14,3),COLORGREEN,NODRAW;J14:=3*K14-2*D14;DRAWBAND(DIF,RGB(200,50,55),DEA,RGB(50,1
3、00,10);MACDXG2:=REF(COUNT(DIF0ANDMACD0ANDMACDREF(MACD,1);STICKLINE(MACDXG2,MACD*1.2,0,2.8,0),COLORRED;STICKLINE(MACDREF(MACD,1)ANDMACD0,0,MACD,1.8,0),COLOR000055;STICKLINE(MACDREF(MACD,1)ANDMACD0,0,MACD,1.1,0),COLOR000099;STICKLINE(MACDREF(MACD,1)ANDMACD0,0,MACD,0.6,0),COLOR0000BB;STICKLINE(MACD=REF
4、(MACD,1)ANDMACD0,0,MACD,1.8,0),COLOR888888;STICKLINE(MACD=REF(MACD,1)ANDMACD0,0,MACD,1.1,0),COLORBBBBBB;STICKLINE(MACD=REF(MACD,1)ANDMACD0,0,MACD,0.6,0),COLORDDDDDD;STICKLINE(MACDREF(MACD,1)ANDMACD0,0,MACD,1.8,0),COLOR3377AA;STICKLINE(MACDREF(MACD,1)ANDMACD0,0,MACD,1.1,0),COLOR3388BB;STICKLINE(MACDR
5、EF(MACD,1)ANDMACD0,0,MACD,0.6,0),COLOR4499CC;STICKLINE(MACD=REF(MACD,1)ANDMACD0,0,MACD,1.8,0),COLORFF3300;STICKLINE(MACD=REF(MACD,1)ANDMACD0,0,MACD,1.1,0),COLORFF5500;STICKLINE(MACD=REF(MACD,1)ANDMACD0,0,MACD,0.6,0),COLORFF7700;STICKLINE(J14-0.5,0,0.15,1.8,0),COLORFF00FF;支撑,COLORFFFFFF;IF(C0,DIF,DRAWNULL),COLORRED,LINETHICK1;IF(C0,DEA,DRAWNULL),COLOR00FFFF,LINETHICK1;IF(DEA=3,1)ANDREF(J14,1)-0.4ANDJ14REF(J14,1);DRAWICON(FILTER(KDJXG,3),MACD*1.2,11),COLORFF00EE;准备介入点:=REF(CROSS(0,MACD),3)ANDCOUNT(DIF0ANDMACDDRAWICON(准备介入点,0.05,9);通达信自用MACD指标公式实例图解:通达信自用MACD指标公式
限制150内