源码如下:
macd大牛---(转帖,优化)有图有用法说明!
macd大牛---(转帖,优化)有图有用法说明!
{macd大牛}
DIFF:(EMA(CLOSE,8) - EMA(CLOSE,13)),colorred,linethick3;
DEA:EMA(DIFF,9),colorff00ff;
MACD:2*(DIFF-DEA), COLORSTICK;
MACD1:2*(DIFF-DEA), COLORffffff;
stickline(macd>0 and macd>ref(macd,1),macd,0,5,0),colorff99ff,stick;
stickline(macd<0 and macd>ref(macd,1),macd,0,5,0),colorffffff,stick;
v1:if(diff<0,diff,0),coloryellow,linethick2;
v2:if(diff<0,0,diff),colorred,linethick2;
v3:if(diff<dea,diff,dea),color00ff00,linethick2;
v4:if(diff>dea,dea,dea),colorff00ff,linethick2;
aa:=cross(diff,dea);
DRAWICON(aa,-0.02,1)
{用法:
1。只做diff红线段;
2。只做macd白柱段及粉柱段;
3。笑脸告诉你机会将近!}
|
|
|
|
|