自己用的指标,最真实的指标,所有股市通用的一个好指标!
MACD,一个最经典的指标,用会了它,你还不赚钱吗?0轴下方,一般第2个停顿点买入,0轴上方停顿就可卖出,如果后续看涨再买回,特别发生背离了,一定果断出手。同时重点关注2次金叉
原公式有导入密码,删除了导入密码,重发
DIF:EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:EMA(DIF,9);
MACD:(DIF-DEA)*2,COLORSTICK;
IF(DIF>=DEA,DIF,DRAWNULL),COLORRED,LINETHICK2;
STICKLINE(MACD>=0
AND MACD>REF(MACD,1),0,MACD,1,0),COLORRED;
STICKLINE(MACD>=0
AND MACD<REF(MACD,1),0,MACD,0,0),COLORMAGENTA;
STICKLINE(MACD<=0
AND MACD>REF(MACD,1),0,MACD,1,0),COLORWHITE;
STICKLINE(MACD<=0
AND MACD<REF(MACD,1),0,MACD,0,0),COLORGREEN;
MACD空中加油:=
MACD>=-10
AND REF(MACD,1)>=0
AND REF(MACD,2)>=0
AND REF(MACD,3)>=0
AND REF(MACD,4)>=0
AND MACD>REF(MACD,1) AND REF(MACD,1)<REF(MACD,2)
AND REF(MACD,2)<REF(MACD,3) AND REF(MACD,3)<REF(MACD,4) ;
STICKLINE(MACD空中加油,0,MACD,2,0),COLORYELLOW;
MACD空中漏油:=
MACD<=10
AND REF(MACD,1)<=0
AND REF(MACD,2)<=0
AND REF(MACD,3)<=0
AND REF(MACD,4)<=0
AND MACD<REF(MACD,1) AND REF(MACD,1)>REF(MACD,2)
AND REF(MACD,2)>REF(MACD,3) AND REF(MACD,3)>REF(MACD,4) ;
STICKLINE(MACD空中漏油,0,MACD,2,0),COLORYELLOW;
DRAWICON(CROSS(DIF,DEA),DIF,1);
DRAWICON(CROSS(DEA,DIF),DIF,2);
AA11:=BARSLAST(REF(CROSS(DIF,DEA),1));
底背离:=REF(CLOSE,AA11+1)>CLOSE AND DIF>REF(DIF,AA11+1) AND CROSS(DIF,DEA);
AA22:=BARSLAST(REF(CROSS(DEA,DIF),1));
顶背离:=REF(CLOSE,AA22+1)<CLOSE AND REF(DIF,AA22+1)>DIF AND CROSS(DEA,DIF);
DRAWTEXT(底背离,DIF*0.5,'底背'),COLOR0055FF;
DRAWTEXT(顶背离,DIF*1.5,'顶背'),COLOR99FF00; |