Introduction to Quant Finance · Lesson 20
Rules as risk limits
Daily loss caps, drawdown caps and prop-firm rules: what a limit that stops trading does to an account, and what it can't do.
Know the basics? Read the lesson notesA limit that stops trading
A risk limit, also called a cap, is set before trading starts: when losses reach a set line, trading stops. Reaching the line is a breach.
A simulated account starts with €10,000 and takes five trades a day. Its trading rule, the way it picks its trades, is made up. Every trade risks a fixed €100: a win adds €100, a loss takes €100. It wins 55 trades in 100, so 100 trades make 55 × €100 − 45 × €100 = €1,000: +€10 a trade on average, its edge.
Its risk limit is a maximum loss of €1,000: at €9,000 or below, the account stops for good. Play its 60 days.
One account with a maximum loss of €1,000 (simulated)
Orange: the account. Grey: trades it never took. Dark: the €9,000 line. Dashed: the €10,000 start.
On the third trade of day 8 the account reached €9,000 and stopped: ten more losses than wins.
The trades it never took would have carried it down to €8,700, then back up to €9,800 by day 60. The limit can't know what comes next.
Of 1,000 such accounts, the limit stopped 134.
A limit for one day
Swap the maximum loss for a daily loss limit of €300: once a day's loss, measured from the account's value when the day began, reaches €300, the account takes no more trades until the next day.
Does such a limit improve results? Test it on a trading rule with no edge: a coin flip that wins 50 trades in 100. 1,000 simulated coin-flip accounts traded for 60 days under it.
Of the trades they took, about how many in 100 won?
Static or trailing
A limit chooses which trades are taken, not how a trade ends. For trading rules like these, where a trade's chance never depends on earlier trades, that adds no edge: the coin-flip accounts won 49.9 trades in 100 with the daily limit and 49.9 without it. It caps a day's loss at €300; without it, five losses in a day lose €500.
The maximum loss so far was measured from the start: a static limit, whose line never moves. A trailing limit is measured from the account's peak, its highest value so far: its line sits €1,000 below the peak, follows the account up and never moves back down.
Another of the 1,000 accounts: switch its limit to trailing.
One account, two kinds of maximum loss (simulated)
Orange: the account. Grey: trades never taken. Dark: its line. Dotted: the static line.
With the static limit this account ended day 60 at €12,600.
With the trailing limit it stopped on day 28. It had peaked at €12,000, so its line stood at 12,000 − 1,000 = €11,000. It fell back to that line while still €1,000 above its start.
The peak is never below the start, so the trailing line is never below the static one. It stops every account the static line stops, and more: in this simulation, at €100 a trade, 701 of the 1,000 within 60 days, against 134.
A made-up evaluation
A prop firm (here: a company that sells trading evaluations to individual traders, often called "funded trader" programmes; not the same as the proprietary trading firms that employ traders) sells an evaluation, often called a challenge. The trader pays a fee and trades an account the firm provides, often a simulated one, under fixed rules. Traders who meet them may be paid a share of the profit they make, on the firm's terms. Fees, refunds, rules and payouts differ between firms and change.
- Profit target: reach €10,900, a gain of €900 (9%).
- Maximum loss: €1,200 (12%), static, where the accounts so far had €1,000. At €8,800 or below the account is closed.
- Daily loss limit: €500 (5%). A day that loses €500 or more closes the account for good. The earlier €300 limit only paused trading for the day.
- Minimum trading days: 4. The account must trade on at least 4 days: the target can't count before day 4. Until then it keeps trading and can fall back.
1,000 accounts with the 55-in-100 edge take it, each trading five times a day at €100 a trade until it reaches the target or breaches a limit; the simulation stops at day 250. How many reach the target first?
1,000 accounts, four evaluation rules
Each square is one account, coloured by what happened first. Change one of the evaluation's rules at a time.
1,000 accounts with an edge in the made-up evaluation (simulated)
€100 a trade.
Under all four rules, 735 of the 1,000 accounts reached the target first. 235 breached the daily limit first and 30 the maximum loss.
In this simulation, at €100 a trade, the daily limit closed the most accounts: five losses in one day lose €500. Without it, 927 reached the target.
Without the minimum days: 736, barely a change. With the maximum loss trailing, €1,200 below the peak: 715. The trading rule won 55 in 100 throughout.
These counts belong to this invented evaluation, this simulated trading rule and this trade size, not to any real evaluation, whose rules, costs and traders' edges differ.
The same evaluation with no edge
Now 1,000 coin-flip accounts, with no edge, take the same evaluation at €100 a trade. How many reach the target first?
Luck, and the risk per trade
Look at the coin flip, then at a third made-up trading rule that wins 45 trades in 100: the edge is against it. Try each at €50 and €200 a trade.
1,000 accounts in the made-up evaluation, all four rules (simulated)
With no edge, 419 of the 1,000 accounts reached the target first at €100 a trade, by luck alone: about 400 was the closest guess. Like every count here, that holds for this invented evaluation, this coin and this trade size, not for any real evaluation.
The risk per trade moved the counts, and which way depends on the edge. Accounts that reached the target first, at €50, €100 and €200:
- edge for the trading rule: 994, 735, 439
- no edge: 547, 419, 258
- edge against: 36, 114, 141
With the edge we gave the trading rule, the smallest risk reached the target most often; with the edge against, the largest did. A smaller trade needs more trades to cover €900, so the edge, for or against, acts over more trades.
With only the target and the maximum loss, size barely moved the no-edge count: 547, 577 and 529. Here the daily limit closes more accounts as the trade grows: five losses in a day reach it at €100, three at €200, and none can at €50 (five trades lose €250 at most).
This counts only how often the target was reached first, not what an account keeps afterwards. And the simulation knows each edge because we set it: the edge of a real trading rule is not known, only estimated (lesson A10). So this lesson names no size.
Where each line sits
A drawdown is how far an account has fallen from its peak (lesson A17). Some firms' rule lists call the two kinds of maximum loss static drawdown and trailing drawdown, though only the trailing one is measured from the peak.
- V0
- the account's starting value
- M
- the maximum loss, in money
- peak
- the account's highest value so far, its starting value included; it never moves down
- B
- the account's value when the day began
- D
- the daily loss limit, in money
- line
- breached when the account, valued after every finished trade, is at or below it
M = 1,000. At the start the peak was 10,000, so both lines sat at 10,000 − 1,000 = €9,000. At its peak of 12,000 the trailing line stood at 12,000 − 1,000 = €11,000. In the evaluation, a day that begins at €10,300 has its daily line at 10,300 − 500 = €9,800.
- no money is added or taken out;
- the trailing line keeps following the peak (some firms stop it rising once it reaches the starting value).
A firm may measure another way: on equity (trades still running counted) or on balance (finished trades only), all day or only at the day's end. The same trades can then breach under one definition and not another.
An account starts at €50,000 with a trailing maximum loss of €3,000. It climbs to €54,200, falls to €52,000 and climbs back to €53,500. Where is its line now?
No edge: which line comes first?
Take a trading rule with no edge and only two ways to stop: a target above the start, or a static maximum loss below it. Which comes first is the classic gambler's ruin problem. Write P for the share of accounts that reach the target first; the rest, 1 − P, reach the maximum loss first. No edge means each trade makes nothing on average, and stopping at a line set in advance can't change that. So all the accounts together still average zero when they stop: what the winners gain equals what the losers lose: P × T = (1 − P) × M. Move P × M to the left, P × (T + M) = M, and divide by T + M:
- P
- the share of accounts that reach the target first, as a decimal (0.75 is 75 in 100), for a trading rule with no edge and no other way to stop
- T
- the gain that reaches the target, in money
- M
- the loss that reaches the maximum loss, in money
Keep only the target and the maximum loss: T = 900, M = 1,200. P = 1,200 ÷ (900 + 1,200) = 1,200 ÷ 2,100 = 0.571: about 571 accounts in 1,000. Run that way, the simulation counted 577 coin-flip accounts at the target: 6 more, an ordinary chance difference between runs.
- the trading rule has no edge and no costs;
- every trade risks the same amount, one that divides the gain and the loss, so accounts stop exactly on a line;
- the target and a static maximum loss are the only ways to stop.
The trading rule has an edge, pays trading costs (lesson A16, Costs), or faces more limits.
A trading rule with no edge risks a fixed amount per trade. Its account stops at a gain of €500 or a loss of €2,000. About how many accounts in 100 stop at the gain?
What this means for your backtest
A backtest runs a trading rule over past prices to see what it would have made. Two points.
- A limit is checked on the path (the account's value day by day), not on the summary.
A final gain and a maximum drawdown can't show whether a daily limit was breached on the way.
- In this made-up evaluation, reaching the target was weak evidence of an edge.
419 of 1,000 accounts with no edge reached it first, against 735 with the edge, so an account at the target could be either kind. That shows a target and an edge are different things, not how often either turns up in a real evaluation.
"I have €2,600 of room"
How many euros is the account above its line?
Hint: trailing line = peak − M.
"78 accounts in 100"
With no edge at all, about how many accounts in 100 would stop at the gain?
Hint: P = M ÷ (T + M).
Two numbers, two limits
Did it stay inside a static maximum loss of €1,000 and a daily loss limit of €500?
Lesson done
A risk limit sets how much a day or an account can lose. In this lesson's simulation it did not change the share of trades won. In its made-up evaluation at €100 a trade, 735 of 1,000 accounts with a 55-in-100 edge reached the target first; so did 419 of 1,000 with no edge.
Key ideas
- Risk limit (cap)
- a line set before trading starts: when losses reach it, trading stops; reaching it is a breach
- Maximum loss
- a risk limit on the whole account: at its line the account stops for good
- Static limit
- a maximum loss measured from the starting value; its line never moves
- Trailing limit
- a maximum loss measured from the peak; its line follows the account up, never down
- Daily loss limit
- a risk limit on one day's loss, measured from the value when the day began
- Evaluation (challenge)
- a paid test sold by a prop firm (a company selling trading evaluations to individual traders): an account the firm provides, often simulated, traded under fixed rules
- Gambler's ruin problem
- which an account reaches first, a set gain or a set loss
Formulas
static line = V0 − M · trailing line = peak − M · daily line = B − D
P = M ÷ (T + M)
Lines: M and D in money, the account valued after every finished trade. P: the share of accounts that reach a gain T before a loss M, for a trading rule with no edge or costs, the same risk on every trade and no other way to stop.