Many professionals risk a small, fixed slice of their account on any single trade, often 1% to 2%. That way a string of losses does not knock them out.
Decide your exit before you enter: the price where your idea is wrong. The distance to that exit, times your size, is your real risk.
For options buyers, the premium is often the full risk, so size the number of contracts so that losing it all stays within your rule.