Advertisement IC Markets

Position Sizing With Variable Stops: Keeping Risk Constant

Master exponential money management, position sizing calculators, strict daily stop-loss limits, and overcoming FOMO on micro-timeframes.
Post Reply
FXS Prop Desk
Posts: 1689
Joined: Wed Oct 07, 2026 9:52 am

Position Sizing With Variable Stops: Keeping Risk Constant

Post by FXS Prop Desk »

Many scalpers use structure-based stops, so the stop distance changes every trade. Keeping money risk constant requires recalculating size each time.

Formula:

Code: Select all

lots = (account × risk%) / (stop_pips × pip_value_per_lot)
Example: 20,000 account, 0.5% risk = 100. Stop 6 pips on EURUSD (pip value ≈ 10 per lot) → 100 / 60 = 1.66 lots. Stop 12 pips → 0.83 lots.

A simple way to measure the effect is to tag each trade with the number of minutes since the previous loss. If trades taken within five minutes of a loss perform clearly worse, the pause rule is supported by your own data.

Things to watch:
  • Pip value changes with the quote currency (e.g. GBPJPY, AUDCAD).
  • Add expected spread and commission to the stop distance, or the real risk is higher than planned.
  • Round lots down, not up.
Do you calculate size manually, with a script, or with a platform tool?
FXS Official Team | The Idea Lab & Strategy
Recommended broker for automated trading & scalping IC Markets
Fairman
Posts: 6955
Joined: Tue Jul 21, 2026 7:11 am
Location: Abuja

Re: Position Sizing With Variable Stops: Keeping Risk Constant

Post by Fairman »

FXS Prop Desk wrote: Add expected spread and commission to the stop distance, or the real risk is higher than planned.
That point matters more the tighter the stop is, so it's worth putting numbers on it. Using your example, a 6 pip stop with 0.2 spread, 0.7 commission and say 0.3 average slippage on stops is really 7.2 pips of risk. 100 / 72 gives about 1.39 lots instead of 1.66, so the uncorrected size would risk roughly 0.6% instead of 0.5%. On the 12 pip stop the same costs only push it to 13.2 pips, a much smaller distortion. So scalpers with the tightest stops are the ones most likely to be quietly over-risking, which is a decent argument for building the cost into whatever calculator or script does the sizing.
It’s Fairman :geek:
Shadow Trader
Posts: 5594
Joined: Wed Sep 09, 2026 5:19 pm

Re: Position Sizing With Variable Stops: Keeping Risk Constant

Post by Shadow Trader »

The weak spot I hit with this formula is the very tight stop. A 2 pip stop on the same 20,000 account gives 5 lots, and with Fairman's cost figures the real distance is 3.2 pips, so the uncorrected size risks about 0.8 percent instead of 0.5.

So my script has two guards besides cost. It refuses stops under 4 pips on EURUSD and caps size at 2 lots.

Lot step is the opposite problem on small accounts. On 2,000 at 0.5 percent with an 18 pip stop the answer is 0.055 lots, rounding down gives 0.05, and the trade risks 9 dollars instead of 10, which I can live with.

For JPY pairs I read the tick value from the symbol specification at the moment of the order. With USDJPY at 150 a GBPJPY pip is about 6.67 dollars per lot, so a fixed 10 in a spreadsheet would undersize every trade by a third.

I think the paragraph about minutes since the previous loss belongs to a different thread. It is a good test, just unrelated to sizing.

Do you size off balance or equity when a trade is already open? I use balance minus open risk, so two trades together never exceed the plan.
Shadow Trader
Posts: 5594
Joined: Wed Sep 09, 2026 5:19 pm

Re: Position Sizing With Variable Stops: Keeping Risk Constant

Post by Shadow Trader »

Entry type is another place the risk quietly drifts. With a buy stop, the stop loss usually sits at a fixed price under structure, so any slippage on the fill adds straight to the distance the formula used.

A 6 pip plan that fills 0.8 pips late is really 6.8 pips, which puts about 13 percent more money on the line than intended. On fast London breaks I have seen a full pip, so for stop entries I size off the planned distance plus my average entry slippage.

The alternative is to attach the stop in pips from the actual fill. That keeps money risk exact, but the stop then sits 0.8 pips nearer the structure it was meant to hide behind, which I like even less.

Account currency matters too if the account is not in dollars. On a euro account a EURUSD pip is 10 dollars per lot, which at 1.17 is about 8.55 euros, so a calculator assuming 10 in account currency undersizes by roughly 15 percent.

Fairman's cost adjustment and this one stack on top of each other. Does anyone keep a per pair slippage figure in the sizing script, or is a flat buffer good enough?
Shadow Trader
Posts: 5594
Joined: Wed Sep 09, 2026 5:19 pm

Re: Position Sizing With Variable Stops: Keeping Risk Constant

Post by Shadow Trader »

The choice between fixed and variable spread assumptions can change the verdict on a strategy. Fixed spread testing is simple and quick, while variable spread testing is closer to reality but demands better data.

A strategy that trades frequently during volatile moments will suffer more under variable spreads, since costs rise exactly when signals appear. Momentum strategies often fall into this category, because breakouts coincide with widening spreads.

Running both versions and comparing the results quantifies the exposure. A large gap between fixed and variable outcomes indicates that the strategy depends on cheap execution at moments when it is least available. Adding a spread filter, which blocks entries above a threshold, can recover some of the lost performance by avoiding the worst costs, though it also removes some trades. Testing several filter levels reveals how sensitive the result is to the choice. The aim is a system whose edge survives realistic cost behavior.
Post Reply