说明:
简单如图所示,自己写的。macd的变化个diff以及dea的变化,一目了然。主力潜伏源码:
DIFF :EMA(CLOSE,12) - EMA(CLOSE,26);
DEA :EMA(DIFF,9),COLORFF00FF;
MACD :2*(diff-DEA);
0;
STICKLINE(MACD0,0,MACD,2,0),colorwhite;
STICKLINE(MACD
STICKLINE(MACD>ref(MACD,1)and MACD<0,0,MACD,2,0),COLORFF00FF;
STICKLINE(MACD>ref(MACD,1)and MACD>0,0,MACD,2,0),COLORRED;
PARTLINE(DIFF,DIFF
PARTLINE(macd,macd
PARTLINE(dea,dea