阳春量价一(MACD)
DIFF0:=EMA(CLOSE,1)-EMA(CLOSE,6);
DEA0:=EMA(DIFF0,8);
MACD0:=2*(DIFF0-DEA0);
STICKLINE(MACD0>0,0,MACD0,7,0),colorFFFFFF;
DIFF1:=EMA(CLOSE,2)-EMA(CLOSE,8);
DEA1:=EMA(DIFF1,8);
MACD1:=2*(DIFF1-DEA1);
STICKLINE(MACD1>0,0,MACD1,7,0),colorFFE500;
STICKLINE(MACD1<0,0,MACD1,7,0),colorE20000;
DIFF2:=EMA(CLOSE,5)-EMA(CLOSE,13);
DEA2:=EMA(DIFF2,8);
MACD2:=2*(DIFF2-DEA2);
STICKLINE(MACD2>0,0,MACD2,7,0),colorFFFF;
STICKLINE(MACD2<0,0,MACD2,7,0),colorFF8500;
DIFF3:=EMA(CLOSE,10)-EMA(CLOSE,21);
DEA3:=EMA(DIFF3,8);
MACD3:=2*(DIFF3-DEA3);
STICKLINE(MACD3>0,0,MACD3,7,0),colorBBFF;
STICKLINE(MACD3<0,0,MACD3,7,0),colorFFC300;
DIFF4:=EMA(CLOSE,20)-EMA(CLOSE,34);
DEA4:=EMA(DIFF4,8);
MACD4:=2*(DIFF4-DEA4);
STICKLINE(MACD4>0,0,MACD4,7,0),colorFF;
STICKLINE(MACD4<0,0,MACD4,7,0),colorFFFF80;
DIFF5:EMA(CLOSE,10)-EMA(CLOSE,21);
DEA5:EMA(DIFF5,9);
EXPLAIN(MACD0>0 AND MACD0>MACD2,'量价配合良好,可以关注了'),colorFFFF00;
EXPLAIN(MACD1>0 AND MACD1>MACD2,'量价配合较好,可以买入了'),colorFF00FF;
EXPLAIN(MACD2>0,'量价配合很好,可以安全买入'),colorFFFF;
EXPLAIN(MACD0<MACD1 AND MACD1<MACD2 AND MACD4>0,'阳春!已经获利了,请安全退出!'),colorFF;
- 上一篇公式:相位雷达(副图 源码 研判原理)
- 下一篇公式:只许成功不许失败