Here's my setup, that hasn't been raided in over a week. I have changed a few things recently, but this "spread out" setup has been getting raided rarely.
On offense, I've really been liking having at least two carriers with 5 zookas each. They bring up the rear while my heavies and hammer warriors keep defenses busy. And I always have one carrier full of basic troops to use as sniper fodder.
Upgrade your flares. They can decide a battle and they have for me many times.