there is no 1 stack that can garuntee you a victory, even on the defensive
in fact there is no combinations of ships that can give you more than a 90% chance of winning against anybody(rough estimates there)
so that means, you need to learn how to stack, and build ships faster. Stacking is a skill that takes a long time to develop, just get to know ship stats and what they mean, and fight battles and see what works with what, against what enemy ships etc etc.
building ships faster... well, just know what you want to build, or have an idea, build some, but make sure you have turns left over so you can continue building, so you dont sit at one power for a long amount of time. when you do that, the longer you sit increases the liklihood you will be attacked, so keep on the move, and dont spend too many turns at once