It happens. A lot of systems depend on things that are not obvious. multi year cycles, economic underpinnings, volatility, seasonality, etc. If it is not systematized, WOW. So many psychological factors can be at work. Even when you are doing good you can always get blindsided by the bane of all successful men... a redhead!
You did good! Go back and review. Did you drift off from your original entry and exit criteria? Trying to optimize your system without carefully backtesting the optimizations can throw you.
Maybe you should take a break for a month to clear your head. Go on a little weekend vacation somewhere.