Deciding how much to risk per trade is one of the first questions any automated trader has to answer, and it matters far more than the entry signal itself. A bot can find a promising setup, but if it stakes too much on each position, a normal run of losses can drain the account before the edge ever has a chance to show. This guide walks through how to think about per-trade risk and turn it into a rule your bot can follow every time.
Why per-trade risk comes before everything else
Risk per trade is the amount of capital you are prepared to lose on a single position if it goes against you. It is not the size of the position or the amount of leverage — it is the loss you accept when a stop is hit. Framing it this way keeps the focus on survival, because the trader who is still in the market after a bad stretch is the one who benefits when conditions improve.
The reason this comes first is arithmetic. A string of losing trades is not a rare event; it is a normal feature of any strategy, even a good one. If each loss takes a large bite out of the account, a handful of them in a row can do damage that is hard to recover from, since gains have to work against a shrunken balance. Keeping each individual risk small means no single trade, and no ordinary losing streak, can threaten the whole account.
Sizing as a fraction of capital
The most durable approach is to risk a small, fixed fraction of your account on each trade rather than a fixed dollar amount. When you risk a percentage of the balance, your position sizes scale down automatically during drawdowns and scale up as the account grows. This built-in adjustment is exactly the behavior you want: the bot presses less when it is losing and more when it is winning, without any manual intervention.
Many systematic traders favor keeping the per-trade risk deliberately modest so that the account can absorb consecutive losses without stress. The exact fraction is a personal decision that depends on your tolerance and the strategy's behavior, but the principle is consistent — smaller risk per trade buys you more room to be wrong. It is better to under-risk and stay comfortable than to over-risk and be forced out of a strategy at the worst possible moment.
Turning risk into a position size
Once you have chosen a per-trade risk, the position size follows from where your stop sits. The further away the stop, the smaller the position must be to keep the potential loss at your chosen amount; the tighter the stop, the larger the position can be for the same risk. This is why the stop and the size are inseparable — you cannot set one responsibly without the other.
For a bot, this relationship is a formula it can apply on every trade. You define the fraction of capital at risk and the distance to the stop, and the bot solves for the number of contracts or units that keeps the loss within bounds. Automating the calculation removes the temptation to oversize a trade because it "feels" strong, which is one of the most common ways discretionary risk discipline breaks down. The machine simply follows the rule.


