The armed window
grid.armed-countWhat it does
Only the few highest empty rungs below the last close carry buy orders. They make up the armed window. An empty rung has no open lot, meaning no position waiting to sell, and the last close is the most recent closing price. A rung is armed when it has a working buy order.
How it works
Each night, Rungfolio looks down from the last close and takes the highest empty rungs whose buy limit is strictly below the close, up to the armed count.
"Strictly below" compares the rounded buy limit, which is the price the broker sees. A limit at or above the close would fill at the open.
Held rungs are skipped (one lot per rung). Near the ladder's bottom, fewer rungs may be left. The capital cap or the budget can stop the window short.
The window follows the price both ways:
- When the price rises, higher rungs join and the lowest buys are canceled.
- When the price falls, buys fill and become lots, and the window moves down to the next empty rungs.
A rung that sold and sits at or above the close is re-armed outside the window.
Only the rungs nearest the price need orders, since deeper rungs get theirs as the price comes down. Keeping the window small also keeps the planned buys, which count against the cap, to a handful.
Examples
These are tonight's orders for the TNA template, the default ladder settings, with the example inputs. There is one buy for each rung in the window, and every row names this rule.
| 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 |
With an armed count of 3, last night's buys sit on rungs 2 to 4, and tonight the price closes higher. Look for three things: higher rungs join the window, the lowest buys are canceled under this rule, and the buy still inside the window is kept.
| Rung | Action | Order | Rule |
|---|---|---|---|
| 3 | Cancel | Buy 6 TNA @ 81.75 → sell @ 84.21 · GTC OTO | grid.armed-count |
| 4 | Cancel | Buy 6 TNA @ 81.54 → sell @ 83.99 · GTC OTO | grid.armed-count |
| 0 | Place | Buy 6 TNA @ 82.37 → sell @ 84.85 · GTC OTO | grid.armed-count |
| 1 | Place | Buy 6 TNA @ 82.16 → sell @ 84.63 · GTC OTO | grid.armed-count |
| 2 | Keep | Buy 6 TNA @ 81.95 → sell @ 84.41 · GTC OTO | grid.armed-count |
Settings
The armed count is 10 by default, and it can be from 1 to 50. It sets how many rungs the window holds when nothing else limits it.
In the app
Each buy in the window has a "why?" that starts with this rule's sentence, unless it's replacing an order about to expire. While buying is on, you can see it by opening the "why?" on the first order in the new-ladder preview. A buy canceled because the window moved names this rule too.