思路如下:
1.前期MACD死叉后DIF或DEA小于0;
1.MACD金叉后20日以內(nèi),MACD一直大于0;
2.DIE大于0,DEA大于0;
3.回調(diào)不死叉的定義是這么理解的:金叉后MACD紅柱不斷擴大后,回調(diào)時不斷的縮小,直到哪一天紅柱不再縮小大于前一日的紅柱
{主圖}
A:=MACD.DIF;
A1:=MACD.DEA;
A2:=MACD.MACD;
T:=BARSLAST(A<0 AND A1<0 AND CROSS(A,A1));
TJ:=EVERY(A2>0,3) AND A2>REF(A2,1) AND REF(A2,1)0 AND A1>0
and a2>0;
XG:=COUNT(TJ,T)=1 AND TJ;
DRAWICON(XG,L*0.95,1);
STICKLINE(XG,C,O,2,0),COLORYELLOW;
STICKLINE(XG,H,L,0,0),COLORYELLOW;
{幅圖}
A:=MACD.DIF;
A1:=MACD.DEA;
A2:=MACD.MACD;
T:=BARSLAST(A<0 AND A1<0 AND CROSS(A,A1));
TJ:=EVERY(A2>0,3) AND A2>REF(A2,1) AND REF(A2,1)0 AND A1>0
and a2>0;
XG:=COUNT(TJ,T)=1 AND TJ;
DRAWICON(XG,L*0.95,1);
STICKLINE(XG,0,8,2,0),COLORYELLOW;
{選股}
A:=MACD.DIF;
A1:=MACD.DEA;
A2:=MACD.MACD;
T:=BARSLAST(A<0 AND A1<0 AND CROSS(A,A1));
TJ:=EVERY(A2>0,3) AND A2>REF(A2,1) AND REF(A2,1)0 AND A1>0
and a2>0;
XG:COUNT(TJ,T)=1 AND TJ;
|