所有的指标,其实MACD都能反映出来,而MACD综合了均线系统和多空边界,对趋势的把握比均线主图系统更稳定且能提前,简简单单反而清爽。
给MACD变个色更直观,源码如下:
{常规参数}
SHORT:=12;
LONG:=26;
MID:=9;
DIF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG),COLORWHITE,LINETHICK1;
DEA:EMA(DIF,MID),COLORYELLOW,LINETHICK1;
MACD:=(DIF-DEA)*2;
MACD红柱:IF(MACD>REF(MACD,1),MACD,DRAWNULL),STICK,COLORRED,LINETHICK1;
MACD绿柱:IF(MACD
强DIF:IF(DIF>DEA,DIF,DRAWNULL),LINETHICK1,COLORRED;
强DEA:IF(DEA
DRAWICON(CROSS(DEA,DIF),DEA,2);