1、简单的,和系统macd一样的如下:
DIF:EMA(CLOSE,12)-EMA(CLOSE,26),COLORBLUE;
DEA:EMA(DIF,9),COLORGREEN;
MACD:(DIF-DEA)*2,COLORSTICK;
红柱:IF(MACD>REF(MACD,1),MACD,DRAWNULL),STICK,COLORRED;
绿柱:IF(MACD2、 和系统macd参数一样的,加了其他条件的如下:
DIF:EMA(CLOSE,12)-EMA(CLOSE,26),COLORBLUE;
DEA:EMA(DIF,9),COLORGREEN;
MACD:(DIF-DEA)*2,COLORSTICK;
红柱:IF(MACD>REF(MACD,1),MACD,DRAWNULL),STICK,COLORRED;
绿柱:IF(MACD抄底:ABS((CROSS(DIF,DEA)&&DEA<=-0.07)*DIF)*1.50,COLORLIMAGENTA;
强度1:IF(DIF>DEA,DIF,DRAWNULL),COLORRED,LINETHICK1;
强度2:IF(DEA
DRAWICON(ABS(抄底)>0,抄底*1.02,4);
DRAWICON(CROSS(DIF,DEA),DEA,1);
DRAWICON(CROSS(DEA,DIF) ,DEA,2);
DRAWICON(CROSS(DIF,0) AND DIF>DEA,0,1);
DRAWICON(CROSS(0,DIF) AND DIF
A2:=BARSLAST(REF(CROSS(DEA,DIF),1));
底背离:=REF(C,A1+1)>C AND DIF>REF(DIF,A1+1) AND CROSS(DIF,DEA);
顶背离:=REF(C,A2+1)
DRAWTEXT(底背离=1 AND A2<=10,DIF,'底背'),COLORRED;
DRAWTEXT(顶背离=1 AND A1<=10,DIF,'顶背'),COLORGREEN;
XG:底背离=1 AND A2<=10,NODRAW;