Stock splits
split.adjustWhat it does
When a stock splits, your broker changes two things: the number of shares you hold and the price of each share. Rungfolio makes the same change to its own records, so your ladder, its lots (the shares each rung has bought) and its orders keep matching the broker.
How it works
A split has a ratio, written as new shares for old shares. In a 2-for-1 split, each share becomes two.
Rungfolio applies the ratio like this:
- Every open lot's share count is multiplied by the ratio, and rounded down to whole shares.
- Every open lot's buy price is divided by the ratio, to 4 decimal places. Its sell target is divided by the ratio and rounded up to the tick, the smallest step a price can take: a cent at $1 and above, $0.0001 below.
- The ladder's starting price and its floor are divided by the ratio, to the tick: to the cent at $1 and above, and to 4 decimal places below.
- Sizing by a number of shares, fixed shares or a taper's start and step, is multiplied by the ratio and rounded down, so a rung costs about the same, or less. A taper's step can go to 0.
- Fixed shares and a taper's start never go below 1 share, so a large reverse split can make a rung cost more. In a 1-for-10 split, 6 fixed shares become 1 share, which costs as much as 10 old shares did, more than the 6 a rung bought before.
- Sizing in dollars or as a share of the account doesn't change.
- The grid of rungs, the ladder's price levels, scales with the starting price, so every lot stays on the same rung.
- Working orders are adjusted as your broker adjusts them, in place. Each order's shares are multiplied by the ratio and rounded down. A buy's limit is divided by the ratio and rounded down to the tick, and a sell's is rounded up. An order left with less than one share is canceled.
A reverse split can leave a fraction of a share. In a 1-for-5 split, 7 shares become 1.4. You keep the 1 whole share, and the 0.4 is paid out in cash at the ex-date's opening price. That fraction's share of what the lot cost goes with it, so the share you keep costs what it did, and the payout's profit or loss is realized.
You don't need to do anything. A practice ladder adjusts automatically on the split's ex-date, the day the split takes effect, before that night's fills, so the session runs in the new terms. Settings you saved after the ticker's prices already showed the split are in the new terms already, so then only the lots and orders change. A split adjusts a ladder once. A live ladder never adjusts by itself: the evening form shows you the adjustment, and asks what your broker did with your orders (splits, expiry and stopped tickers).
By itself, a split doesn't trip the moving-average pause. The average is computed from split-adjusted closing prices, which restate past prices as if the split had always been in place, so the price and the average stay comparable.
Afterward, the share-count check compares the adjusted count with the count your broker reports.
Rungfolio also adjusts past prices for each ticker's splits, in the chart, the moving average, the six-month high and the ticker stats.
In a backtest
A backtest applies each split on its ex-date, before that session, as a practice ladder does. It has no one to review a split, so when the adjustment would take a price or a share count outside what Rungfolio can use, the backtest stops before that session, and says which split and why. Its results cover the sessions before it.
A split reported late
A split is normally known before its ex-date. Sometimes it's reported after its ex-date has already been simulated. That night's fills used prices in the new terms against orders in the old ones, so they can't be redone safely, and a running ladder, one that's active or that Rungfolio paused, waits for your review instead:
- It places no buys, and while it waits, none of its orders fill.
- Its page offers "Adjust for the split", which shows the lots, prices and settings before and after.
- Once you approve it, the next night applies the adjustment, and the ladder is active again.
You can stop the ladder instead. A ladder's statuses explains waiting for a review, and the other statuses.
A ladder that isn't running doesn't wait. One you paused, or one winding down or closing, is adjusted automatically. One that has never had an order holds nothing in the old terms but its settings, so Rungfolio pauses it for its settings, until you apply settings in the new prices.
In the app
On the night a split adjusts a ladder, Home shows a note, such as "TQQQ split 2-for-1 on Thu Oct 15: your lots, prices and start price were adjusted." Its "why?" lists each change in this rule's words.