Risk management in trading: limits set before a trade
By Oalgo · Last reviewed
Risk management is the set of limits that apply before a trade opens and while it runs. It decides how much one trade can lose, how many trades a day can open and how far a bad run can go. The entry rule decides when to trade. The limits decide how much the trading can cost, and those limits are yours to set.
Which limits sit in the builder?
#- A cap on new trades per day. Trades already open are left alone.
- A daily loss limit, a percentage of the balance at the start of the UTC day. Once closed trades reach it, no new trades open that day. An open trade still closes by its own rules.
- A cooldown, a set number of candles to wait after a trade closes before the next one opens.
- A stop loss on each trade. Its size depends on the distance to the stop and the size you set, which is the idea of position sizing.
What does a worked example look like?
#All numbers are made up, in simulated funds. The starting balance is 10,000, the daily loss limit is 2 percent, which is 200, and the cap is 4 trades a day. Each trade risks 50 if its stop is hit. On a made-up day the first three trades close at a loss of 50 each, so closed losses stand at 150. A fourth trade is allowed and closes at a loss of 50, so closed losses reach 200. No new trades open for the rest of that day, and a trade still open at that moment closes by its own rules.
| Limit | How it is set | Made-up value |
|---|---|---|
| Trades per day | a count | 4 |
| Daily loss | percentage of the starting balance | 2 percent, which is 200 |
| Risk per trade | distance to the stop, times the size | 50 |
| Cooldown | candles after a close | 3 |
Why set the limits before the test?
#A limit picked after reading the trade list is a fit to that list. The test then shows the limit working, which it could not have done live. Write the limits down first, keep them fixed across the backtest and the forward test, and change them only in a new test with a new name.
What can a risk limit not show?
#A simulation fills at prices the rule sets. A candle can open beyond a stop, and a real fill can land further away than the stop. Slippage is the gap between the planned price and the filled one. The terms list slippage and gap risk among the factors a simulation does not fully account for. A limit in a test is a limit on paper.
Oalgo keeps these limits in the builder's settings, next to your rule. You check them, the backtest and forward test run with them, and Go Live stays a separate step that you may choose.
Read next
- What is position sizing? How to size a tradePosition sizing decides how much to put into each trade. Learn the fixed-risk method, a worked example, and how the position size calculator does the sum.
- What is drawdown? Maximum drawdown explainedDrawdown is the fall from your account's high point to a later low. See how it is measured, why recovering takes a bigger gain, and how to read it.
- What is a stop loss? How to set oneA stop loss closes a trade when price moves a set distance against it. Learn how a stop is set, what it cannot promise, and what a Live Strategy needs.