以下是通达信双周期macd指标的改进(指标副图贴图)
经过观察,用DIF>DEA比macd>ref(MacD,1)来标注,信号要准确、连贯,故做改进
DIF周:=EMA(CLOSE,12*5)-EMA(CLOSE,26*5);
DEA周:=EMA(DIF周,9*5);
MACD周:(DIF周-DEA周)*2,COLORMAGENTA,NODRAW;
DIF日:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA日:=EMA(DIF日,9);
MACD日:(DIF日-DEA日)*2,COLORRED,NODRAW;
STICKLINE(MACD周>=0,0,MACD周,2,1),COLOR660066;
STICKLINE(MACD周<0,0,MACD周,2,1),COLOR555555;
(DIF日-DEA日),COLORSTICK;
STICKLINE(DIF日>DEA日 AND DIF周>DEA周,0,0.03,9,0),COLORYELLOW;
STICKLINE(DIF日<DEA日 AND DIF周<DEA周,0,0.03,9,0),COLORBLUE;
持股:DIF日>DEA日 AND DIF周>DEA周,COLORYELLOW,NODRAW;
持币:DIF日<DEA日 AND DIF周<DEA周,COLORBLUE,NODRAW;
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
评论(0)