How a ladder works
The idea
A ladder is a set of buy orders at fixed steps below a starting price. Each buy is paired with a sell a set percentage above it. Each of these price levels is a rung.
When the price falls, the buys fill one at a time. Each filled buy gives you a lot: the shares that one rung bought. When the price rises again, each lot sells at its target, and its rung can buy again.
Rungfolio runs the ladder by fixed rules, and every decision comes with a reason you can read. Each rule has its own article. This page shows how the rules fit together, and links to the main ones.
Rungs below a starting price
The starting price is rung 0 (the starting price). Every other rung is measured from it. Rung 1 is one step below, rung 2 is two steps below, and so on. With the TNA template, Rungfolio's starting settings for the ticker TNA, each rung is 0.25% below the one above (rung spacing).
Rungs continue above the start too, so the ladder follows the price up.
Order prices have to land on a tick, the smallest step a price can take. Rungfolio rounds each one to the tick (rounding).
In this table, look at the Rung price column: each rung sits a little below the one above it. Each rung also has its own buy limit and sell limit, and the table shows how many shares it buys.
| Rung | Rung price | Buy limit | Sell limit | Shares | Cost | Running shares | Running cost |
|---|---|---|---|---|---|---|---|
| 0 | 82.37 | 82.37 | 84.85 | 6 | $494.22 | 6 | $494.22 |
| 1 | 82.1640 | 82.16 | 84.63 | 6 | $492.96 | 12 | $987.18 |
| 2 | 81.9586 | 81.95 | 84.41 | 6 | $491.70 | 18 | $1,478.88 |
| 3 | 81.7537 | 81.75 | 84.21 | 6 | $490.50 | 24 | $1,969.38 |
| 4 | 81.5493 | 81.54 | 83.99 | 6 | $489.24 | 30 | $2,458.62 |
| 5 | 81.3455 | 81.34 | 83.79 | 6 | $488.04 | 36 | $2,946.66 |
A sell for every buy
Each buy is paired with a sell 3% above it (the sell target). The pair is entered as one GTC OTO order (OTO orders), so the sell starts working as soon as the buy fills.
A lot sells only at its target. The one exception is the price floor's exit, and it applies only if you choose it.
A rung holds one lot at a time. After its lot sells, the rung is re-armed: its buy goes in again.
How much each rung buys
Sizing decides how many shares each rung buys. By default, each rung is sized to 1% of the account's value (a share of the account per rung). The other modes are fixed shares, fixed dollars and taper sizing.
The armed window
Rungfolio doesn't put a buy on every rung. Only the 10 highest empty rungs below the last close carry buy orders (the armed window). An empty rung is one with no open lot, and a rung is armed when it has a working buy.
The window moves with the price. When the price rises, the window moves up, and buys left below it are canceled. When the price falls, buys fill and the window moves down to the next empty rungs.
Here is tonight's list of orders for the example inputs. Look at the Rung column: each buy sits on one of the highest empty rungs below the last close.
| Rung | Action | Order | Rule |
|---|---|---|---|
| 2 | Place | Buy 6 TNA @ 81.95 → sell @ 84.41 · GTC OTO | grid.armed-count |
| 3 | Place | Buy 6 TNA @ 81.75 → sell @ 84.21 · GTC OTO | grid.armed-count |
| 4 | Place | Buy 6 TNA @ 81.54 → sell @ 83.99 · GTC OTO | grid.armed-count |
| 5 | Place | Buy 6 TNA @ 81.34 → sell @ 83.79 · GTC OTO | grid.armed-count |
| 6 | Place | Buy 6 TNA @ 81.14 → sell @ 83.58 · GTC OTO | grid.armed-count |
| 7 | Place | Buy 6 TNA @ 80.93 → sell @ 83.36 · GTC OTO | grid.armed-count |
| 8 | Place | Buy 6 TNA @ 80.73 → sell @ 83.16 · GTC OTO | grid.armed-count |
| 9 | Place | Buy 6 TNA @ 80.53 → sell @ 82.95 · GTC OTO | grid.armed-count |
| 10 | Place | Buy 6 TNA @ 80.33 → sell @ 82.74 · GTC OTO | grid.armed-count |
| 11 | Place | Buy 6 TNA @ 80.13 → sell @ 82.54 · GTC OTO | grid.armed-count |
The safety net
The safety net is a set of checks that limit how much the ladder buys.
- Buying pauses while the price closes below its 150-day average (the moving-average pause).
- Capital in use plus planned buys stays within 50% of the account (the capital cap). Capital in use is the cost of the shares you still hold. An account's ladders share its cap, in a priority order you set.
- You can add a ladder budget, a limit on how much capital one ladder can use. You can also add a price floor, a price below which the ladder pauses or sells everything.
While a ladder is paused, its buys are canceled and its sells keep working (what a pause does).
Each row of this table is one check for the same ladder. The last row says whether buying is on.
| Check | Setting | Result | Rule |
|---|---|---|---|
| Moving average | 150-day average of 75.00 | Clear | safety.moving-average |
| Floor | Not set | Not set | safety.floor |
| Capital cap | 50% of $50,000.00: $25,000.00 | $25,000.00 of room before tonight's buys | safety.capital-cap |
| Budget | Not set | Not set | safety.budget |
| Status | Buying on | safety.pause | |
Each evening
After the close, Rungfolio plans again. Rungs that sold are re-armed, the window moves with the price, the caps are checked, and GTC orders are replaced 10 days before they would expire (at 170 days in practice).
You get only the changes: what to place, cancel or keep (tonight's changes).
What you do with the list depends on the account. A practice account counts the orders as placed and simulates the fills. A live account tracks your real brokerage account. You place the orders there yourself, and once they are in, they work at your broker during the day on their own. Practice and live modes explains the difference, and the evening routine walks through the evening.
What the ladder assumes
A ladder never sells a lot below its target, except through the price floor's exit. So it relies on the price coming back up to each lot's target in time.
If the price keeps falling, or never recovers, lots stay open with unrealized losses, and their capital stays tied up. An unrealized loss is a loss on paper: what a lot would lose if it sold at the last close. The safety net limits how much the ladder buys on the way down, but it can't make a price recover.
This is the design's central assumption, not a promise.