大智慧自调MACD指标公式

INPUT:SHORT(12,1,100),LONG(26,2,100),M(9,1,50),T(0,0,2);

DIFF:=EMA(C,SHORT)-EMA(C,LONG);

DEA:=EMA(DIFF,M);macd:=2*(DIFF-DEA);

日DIF:IF(T=0,DIFF,0),PRECIS2,LAYER0,ColorRED;

日DEA:IF(T=0,DEA,0),PRECIS2,LAYER0,ColorA8A818;

MacD:2*(DIFF-DEA),Color283898,LINETHICK0;

ZDIF:="MACD.DIFF#WEEK"(12,26,9); ZDEA:="MACD.DEA#WEEK"(12,26,9);

YDIF:="MACD.DIFF#MONTH"(12,26,9); YDEA:="MACD.DEA#MONTH"(12,26,9);

stICKLINE(MACD>0 AND MACD>REF(MACD,1),0,MACD,0,0),Color282888;

STICKLINE(MACD>0 AND MACD<=REF(MACD,1),0,MACD,0,1),Color505018;

STICKLINE(MACD<0 AND MACD<=REF(MACD,1),0,MACD,0,0),Color083908;

STICKLINE(MACD<0 AND MACD>REF(MACD,1),0,MACD,0,1),Color503350;

{www.zhibiaow.com 指标网_最新股票指标公式}

周DIF:IF(T=1,ZDIF,0),PRECIS2,LAYER0,Color189898;

周DEA:IF(T=1,ZDEA,0),PRECIS2,LAYER0,Color188818;

月DIF:IF(T=2,YDIF,0),PRECIS2,LAYER0,Color983898;

月DEA:IF(T=2,YDEA,0),PRECIS2,LAYER0,Color688868;