以下是通达信双周期(日线周线同图)MACD指标的改进,并且有持股还是持股简明决策参考。
图中细红柱为MACD日线,洋红色空心柱为周线MACD金叉后区域。
绿色细柱为MACD日线死叉后区域,灰色空心柱为周线MACD死叉后区域。
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;
201711620292860944.png
|