说明:
简单如图所示,自己写的。macd的变化个diff以及dea的变化,一目了然。没有理想币了,觉得给您带来方便的朋友送点吧。
主力潜伏源码:
DIFF :EMA(CLOSE,12) - EMA(CLOSE,26);
DEA :EMA(DIFF,9),COLORFF00FF;
MACD :2*(diff-DEA);
0;
STICKLINE(MACD<ref(MACD,1)and MACD>0,0,MACD,2,0),colorwhite;
STICKLINE(MACD<ref(MACD,1)and MACD<0,0,MACD,2,0),colorgreen;
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<REF(DIFF ,1), RGB(1,255,0),1,rgb(255,1,0)), linethick1;
PARTLINE(macd,macd<REF(macd ,1), RGB(0,255,0),1,rgb(255,0,0)), linethick1;
PARTLINE(dea,dea<REF(dea ,1), RGB(0,255,0),1,rgb(255,0,1)), linethick2;