What's wrong with this EA ?

 

I built the attached EA using an "easy" EA builder. Whenever I backtest it in MT4 it opens and closes trades virtually every minute and I can't see why.

It runs on a 15min chart. The entry is when the price is 20pips above/below an EMA100. The exit is a 20pip trailing stop.

Can anyone see what's happening ?

Files:
 

Here's a better version ... same problem though

Files:
Reason: