Problem with backtest

I use EOD data, but for some days there is intraday data.
Plese see picture below.
How I eliminate this?

Formula:

Buy = Close < EMA(Close, 5);
BuyPrice = Close;
Sell = Close > EMA(Close, 5);
SellPrice = Close;

amibroker