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.gUPaNg.com 老K股票学习网_最新股票指标公式}
周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;
Copyright 2018- www.dyjian.com/ 大宇股票知识网 海口美兰韩哲棚百货商行 版权所有 琼ICP备2023001966号
免责声名:本站所发表的内容仅用于学术交流和学习,内容所带来的一切后果均与本站无关。若您发现本站存在您非授权的原创作品,请第一时间联系本站删除!