N:=5;XG7:BARSLAST(REF("MACD.DIF#DAY",1)<REF("macd.DEA#DAY",1) AND "MACD.DIF#DAY">="MACD.DEA#DAY")<=2 AND BARSLAST(CROSS("MACD.DIF#WEEK","MACD.DEA#WEEK"))<=2;