通达信双周期MACD指标的改进(指标副图贴图)
2017-01-13 21:58:00来源:本站整理浏览:198
经过观察,用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;
- 上一篇公式:通达信【江恩8线】分享一个指标 自己去体会(指标副图 贴图)
- 下一篇公式:通达信双胜阴指标公式