今天下载别人的公式受到启发,干脆编了一个新的MACD,一套波浪曲线,有用的柱都变红色,没用的变灰色,其它的自己悟去吧
DIF:EMA(CLOSE,12)-EMA(CLOSE,26),COLORRED,LINETHICK1;
DIF1:EMA(CLOSE,4)-EMA(CLOSE,7);
DIF2:EMA(CLOSE,6)-EMA(CLOSE,13);
DIF3:EMA(CLOSE,8)-EMA(CLOSE,17);
DIF4:EMA(CLOSE,10)-EMA(CLOSE,22);
DEA:EMA(DIF,9),COLORYELLOW,LINETHICK3;
持仓段:=0,COLOR00CFFF;
空仓段:=0,COLORFFCCFF;
STICKLINE(DIF>DEA,-0.5,-0.6,10,1),COLOR00CFFF;
STICKLINE(DIF
STICKLINE(((MACD0)),0,MACD,1,-1),COLORRED,LINETHICK1;
STICKLINE(((MACD
STICKLINE(((MACD>REF(MACD,1))),0,MACD,1,0),COLORRED,LINETHICK1;
IF(DIF1
IF(DIF2>DIF3,DIF2,DRAWNULL),COLORMAGENTA;
IF(DIF3>DIF4,DIF3,DRAWNULL),COLORMAGENTA;
IF(DIF4>DIF,DIF4,DRAWNULL),COLORMAGENTA;
IF(DIF>DEA,DIF,DRAWNULL),COLORMAGENTA;