Do automated strategies need fractional shares?
Automated strategies do not need fractional shares. A strategy places orders in whole shares just fine, and most of the time the rounding is small. The cost shows up when the share price is large compared with the money assigned to the strategy. A strategy told to put 98% of a $5,000 sleeve into a $700 ETF buys 7 whole shares for $4,900, which is close to the target. The same strategy given a $1,000 sleeve buys 1 share, leaves $300 in cash, and holds about 30% idle money while the backtest assumed almost none.
The arithmetic, the rules that suffer most from rounding and the order types each broker accepts are covered in turn. The sizing glossary entries on fractional shares and position sizing give the definitions. The numbers here come from DeployQuant's backtest runs on minute data from 2021-01-04 to 2026-10-02, with $10,000 of starting cash and no fees in the headline run.
One limit up front. The runs on this site size positions as a fraction of the account, and the site does not publish a side-by-side run of whole-share rounding against exact fractional sizing. No measured gap from rounding is quoted below. What follows is the arithmetic, the strategy trade counts, and the broker order-type facts.
How whole-share rounding works
A sizing instruction usually reads as a fraction of equity: hold 98% of the sleeve. The engine turns that fraction into a dollar target, divides by the share price, and rounds down to a whole number of shares. Rounding down matters, because rounding up would spend money the sleeve does not have.
The leftover is the share price times the fractional part that got dropped. In the worst case it is almost one full share. With a $700 share price, the leftover can be close to $700. On a $5,000 sleeve that is a large amount, but the 98% target only asks for $4,900, and 7 shares cost exactly $4,900, so the rounding happens to land on the target. On a $1,000 sleeve the 98% target is below two shares, one share costs $700, and a second share does not fit. The position is $700 and the cash is $300, so the sleeve is invested well below 98%.
Two things change as the sleeve shrinks relative to the price. The invested fraction becomes lumpy: it can only take values that are multiples of one share. The gap between the intended and actual exposure becomes a large share of the sleeve, so every result in the backtest tables is scaled by an exposure that the live account does not match.
The rule of thumb attached to this question is to size a sleeve at least about 10 times the share price. At 10 times, one share is at most a tenth of the sleeve, so the leftover cash after rounding stays small. In the $1,000 case above, one share is most of the sleeve.
What the headline backtest assumes
Every backtest on this site starts with $10,000 and, for the buy-and-hold comparison, puts 98% of the account into the fund at the first open. The strategy templates do the same when they enter: they ask for 98% of the account, and they hold nothing beyond that. The fills happen on minute bars, with no margin, and the headline run has no fees or slippage. Cost runs at 5 and 10 basis points add friction, but they still size by fraction.
That convention is the right one for comparing strategies with each other, since every strategy gets the same capital and the same entry rule. It also means the published CAGR and drawdown figures describe a position that is invested almost all the time it is signalled in. A live account that rounds down to whole shares can sit below that 98% by anywhere from nothing to most of one share.
On a $10,000 account the rounding is small for a fund priced in the hundreds of dollars. The leftover is at most one share, so it is a few percent of the account. On a $1,000 account it is a large part of the sleeve. The gap between the backtest and the live record on a small account therefore has two parts: the usual fills, fees and timing differences, and the rounding.
Buy-and-hold on SPY shows the scale of what is at stake. The fund returned 125.3% over the window, a 15.2% CAGR, with buy-and-hold ending at $21,820 from $10,000. If a sleeve sits 30% in cash through a run like that, the account captures only the invested part of each daily move, so the end value moves toward the cash balance. The facts for this page do not include a rounded run, so the size of that effect is not measured here.
Sleeves, small accounts and share price
DeployQuant allows several strategies to share one account, each in its own sleeve. That setup makes the question more pressing. An account of $10,000 divided across four strategies gives each one a quarter of the money, and each of those sleeves has to buy whole shares of whatever its rules pick. A sleeve that is small relative to the fund price rounds coarsely, and the cash left over in each sleeve adds up across the account.
The related question how much money you need to start algorithmic trading covers the starting point from the other side. With fractional shares, a few hundred dollars can work. Without them, the floor is roughly the price of a handful of shares of the chosen fund. A first live strategy at $500 to $2,000 is the range that answer mentions, and the share price decides whether that range is enough for whole-share sizing.
Share price differs a lot between funds that track similar things, and the same index can be held through a higher-priced or a lower-priced share class. The short answer on this page says to prefer the cheaper share class of the same index, such as QQQM instead of a higher-priced alternative, or VOO against higher-priced peers. A cheaper share price shrinks the rounding leftover without changing what the strategy holds.
Market examples in the data show how different the funds in this universe are, even apart from price. QQQ had a CAGR of 17.39% with a maximum drawdown of 35%. TLT had a CAGR of -8.64%. TQQQ had a volatility of 67.11% and a drawdown of 81.68%. A sleeve holding a volatile fund has a different problem from one holding a calm fund: when the fund falls, a whole-share position cannot be topped up to the target by a few dollars, and when it rises, the position drifts above the target until the next rebalance.
Which strategies feel rounding most
The cost of whole shares depends on how often the strategy changes its position, because each change is a new rounding. The twelve strategy templates differ widely here. Median round trips across the 59 funds range from 2 for the dip buyer and 3 for the golden cross to 166 for the RSI(2) snapback and 106 for the weekly 7% target.
A rule that trades twice in five years rounds twice. Whatever leftover it carries after entry stays fixed until exit, and then the account is flat, so nothing accumulates. The rounding is a constant haircut on exposure for the whole holding period. For a rule like the golden cross, which holds while the 50-day average is above the 200-day, that haircut applies to long stretches of the window.
A rule that trades often rounds on every entry. The RSI(2) snapback buys extreme 2-day RSI washouts under 10 and exits as soon as RSI(2) recovers above 70. Its median fund saw 166 round trips, each with its own entry size. The rounding on each entry is independent, so some trades are sized close to the target and others fall short. Across many trades the average shortfall is about half a share, but each trade is sized on whatever the sleeve holds at that moment, including the gains and losses from earlier trades. A sleeve that grew after a run of wins buys a different number of shares than one that shrank.
The median CAGR for the RSI(2) snapback was 4.74%, with a median maximum drawdown of 17.47%, and it beat buy-and-hold on 34 of 59 funds. The weekly 7% target had a median CAGR of 6.61% and beat buy-and-hold on 34 of 59. Both had many trades per fund. Those figures are for the fractional-style sizing the engine uses, so they are the numbers a rounding run would be compared against.
Rebalancing and drift
Strategies that hold several positions or adjust a target weight, such as a switcher between funds, quantize at every adjustment. Suppose a sleeve wants to hold exactly half in one fund and half in another. With whole shares, each side can only be a multiple of its share price, so the split lands near half but not on it. After a price move, the weights drift. The next rebalance corrects part of the drift but again only in whole-share steps.
Small trims are the sharpest case. A rebalance that asks to sell a few percent of a position, on a sleeve where one share is a large part of the position, cannot execute at all, because a fractional share cannot be sold and a whole share is too much. The order either rounds to zero or sells more than intended. For a strategy that adjusts a target a little each day, whole shares mean the position moves in steps and then catches up.
Single-asset templates avoid most of this, since they are either in or out. Among the twelve templates, the ones that scale in or out of a position are the ones to read carefully for rounding. The templates on this site enter at a full target, so their main rounding event is the entry and the exit.
The 200-day regime filter is a good example of the simple case. It owns the asset when price closes above its 200-day average and holds cash below it, with a median of 18 round trips and a median CAGR of 1.84%. Each entry rounds once and each exit liquidates fully, so the leftover cash after entry is the whole of the rounding cost.
Order types and fractional support
Fractional trading is not offered on every order type. The fractional shares glossary entry notes that many brokers restrict fractional orders to market orders. That matters for any strategy that rests a limit order, such as a profit target. The weekly 7% target buys at the first open of each week, rests a +7% target, and exits Thursday afternoon if the trade is losing. A resting profit target is a limit order. If the broker only allows fractional shares on market orders, a fractional position cannot carry that resting order, so the position has to be a whole number of shares or the exit has to be a market order sent by the strategy.
The broker facts show how much order-type choice each connection offers:
- Alpaca accepts limit, market, stop, stop-limit and trailing-stop orders, with day, GTC, IOC, FOK, opening and closing time in force. It has a paper environment.
- Webull accepts limit, market, stop and stop-limit orders, with day and GTC time in force. Its notes say live money only, since the Webull US OpenAPI has no working paper environment.
- Charles Schwab accepts limit, limit-on-close, market, market-on-close, stop, stop-limit and trailing-stop orders, with day, FOK and GTC time in force. It is live money only.
The facts here do not say which of these connections allows fractional orders, so the page cannot say which brokers size exactly. The short answer says the platform can size exactly where the broker supports fractional orders. Whether a particular account can do that is a question for the broker.
The momentum breakout and trend with a trailing stop templates use trailing stops, which Alpaca and Schwab list and Webull does not. A trailing stop on a fractional position faces the same restriction as a limit order at brokers that limit fractional trading to market orders. Whole shares sidestep it.
Checks before going live
Several quick checks follow from the arithmetic above. None of them are advice about what to hold. They describe how to tell whether whole shares will distort a given setup.
- Divide the sleeve by the share price. If the answer is below about 10, the rounding leftover is a large part of the sleeve.
- Multiply the share count by the price and compare it with the 98% target. The gap is the idle cash.
- Count how often the strategy trades. The median round trips in the table above give a feel for how often the rounding is redone.
- Check whether the strategy rests limit orders or trailing stops, and whether the broker allows fractional shares on those order types.
- Compare the live position with the backtest position after the first entry. A one-share difference on a small sleeve is a rounding effect and not a signal error.
On the last point, a live account and a backtest can disagree for many reasons. Rounding is one that can be checked in a minute with a calculator, so it is worth ruling out first.
What the test does not cover
The test rests on one window of 5.74 years, 1,444 sessions on the major funds, one set of twelve rules and one starting amount of $10,000. The tables behind it use daily-decision rules evaluated on minute data, with prices adjusted for splits and dividends. The adjusted prices in trade lists are lower than the quotes printed at the time, so a share-price arithmetic example here uses round hypothetical prices such as $700, and not adjusted prices from the data.
The runs do not model whole-share rounding, partial fills, minimum order sizes or broker-specific fractional rules. They do not model taxes. Nothing here predicts how a live account would behave, and nothing here is advice to buy or sell any fund.
Frequently asked questions
Do automated trading strategies need fractional shares?
No. A strategy can trade whole shares, and with a large sleeve relative to the share price the rounding is small. A $5,000 sleeve targeting 98% in a $700 ETF buys 7 shares for $4,900. The problem is small sleeves and expensive funds.
What happens to a $1,000 sleeve buying a $700 ETF?
It buys 1 share for $700 and holds $300 in cash. That is about 30% idle money against a backtest that assumed 98% invested. The result will not match the backtest's exposure.
How large should a sleeve be compared with the share price?
The rule of thumb on this page is at least about 10 times the share price. At that size, one share is a small part of the sleeve and the leftover after rounding is small. The 10 times figure is a guideline from the page's short answer and not a measured threshold.
Which strategies are most affected by whole-share rounding?
Rules that trade often round on every entry, such as the RSI(2) snapback with 166 median round trips and the weekly 7% target with 106. Strategies that rebalance by small amounts also quantize each adjustment. Rules that trade a few times, like the golden cross with a median of 3 round trips, carry one constant rounding haircut while they hold.
Can I use cheaper share classes to avoid the problem?
The short answer suggests it, for example QQQM against a higher-priced alternative, or VOO against higher-priced peers. A lower share price shrinks the leftover cash without changing the index the strategy follows. Check the fund's own costs and tracking before swapping.
Do limit orders and trailing stops work with fractional shares?
That depends on the broker. The glossary entry notes that many brokers restrict fractional trading to market orders, which matters for strategies that rest limit orders such as profit targets. Check the broker's rules for your account.
Did the backtests here include whole-share rounding?
No. The headline runs size by fraction of the account, put 98% in at entry, and carry no fees or slippage. The site does not publish a whole-share comparison, so the effect of rounding is described here and not measured.
Build it from blocks (or type it in English), backtest it on 5.7 years of minute data in seconds, tweak any parameter, then paper trade it on live data. No card, no broker needed to start.
Terms used here
Related questions
Backtests are hypothetical, computed by DeployQuant's engine on minute-resolution consolidated US market data (2021-01-04 to 2026-10-02, $10,000 starting capital, no margin, no fees or slippage in the headline run; buy-and-hold puts 98% of the account in at the first open, as the templates do) and do not guarantee future results. Nothing on this page is investment advice. Live trading involves risk of loss.