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.gpxiazai.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; |