DIF:=EMA(CLOSE,10)-EMA(CLOSE,20);
DEA:=EMA(DIF,7);
MACD:=(DIF-DEA)*2;
A1:=CROSS(DIF,DEA) AND DIF>=0 AND DEA>=0;
A2:=BARSLAST(A1);
A3:=COUNT(A1,REF(A2,1)+2)>=2 AND EVERY(DIF>0 AND DEA>0,REF(A2,1)+1);
A4:REF(BARSLASTCOUNT(MACD<0)<=3,1) AND A3;
聯(lián)系客服