"0 Total Trades" MT4 Optimization

I have an EA that I am developing that I would like to optimize. When I run the EA in the Strategy Tester, for say 2005 - 2006, it has taken the expected amount of trades and gives me all the results. When I try to optimize it, however, all passes are ignored. When I uncheck “skip useless results” I see that for each pass, the number “total trades” is always 0, as if the system ceased to work under optimization mode. I am optimizing 2 inputs (stop loss and trailing stop). I have not been able to find anything about this online. I am using MetaTrader - Alpari with complete M1 as far back as 1999. Like I said, backtesting works fine with 90% quality in all case, it’s just optimization that fails. Anyone have experience with this?