Losing everything in a single losing trade should never happen under normal circumstances.
Surely before placing a trade, the maximum loss permitted per trade and stop placement will determine the trade size.
I always use a % daily loss limit which is obviously larger than a trade % loss...