Losing streaks are not a sign your strategy is broken. They are arithmetic. A strategy that wins half the time will, sooner or later, lose six or seven in a row. Plan for it before it happens.
A drawdown is how far your account falls from its high point. What matters is whether you can recover. Risk 1% per trade and ten straight losses cost about 10%: painful, recoverable. Risk 10% per trade and the same streak takes about 65% of the account, which needs a gain of nearly 190% to repair.
So position size is set by the streak you must survive, not by how confident you feel. Decide the percentage you risk per trade, commonly 1% or less while learning, and work out the share count from the distance to your stop. The Risk management lesson has a planner that does the sum.
Add a circuit breaker. Many traders stop for the day after three losses, or cut their size in half after a 10% drawdown until they have recovered. The urge to 'win it back' with a bigger trade is the most expensive feeling in trading.