rungfolio

The armed window

grid.armed-count

What 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.

Worked example: tonight's orders at a close of 82.05
RungActionOrderRule
2PlaceBuy 6 TNA @ 81.95 → sell @ 84.41 · GTC OTOgrid.armed-count
3PlaceBuy 6 TNA @ 81.75 → sell @ 84.21 · GTC OTOgrid.armed-count
4PlaceBuy 6 TNA @ 81.54 → sell @ 83.99 · GTC OTOgrid.armed-count
5PlaceBuy 6 TNA @ 81.34 → sell @ 83.79 · GTC OTOgrid.armed-count
6PlaceBuy 6 TNA @ 81.14 → sell @ 83.58 · GTC OTOgrid.armed-count
7PlaceBuy 6 TNA @ 80.93 → sell @ 83.36 · GTC OTOgrid.armed-count
8PlaceBuy 6 TNA @ 80.73 → sell @ 83.16 · GTC OTOgrid.armed-count
9PlaceBuy 6 TNA @ 80.53 → sell @ 82.95 · GTC OTOgrid.armed-count
10PlaceBuy 6 TNA @ 80.33 → sell @ 82.74 · GTC OTOgrid.armed-count
11PlaceBuy 6 TNA @ 80.13 → sell @ 82.54 · GTC OTOgrid.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.

Worked example: tonight's orders at a close of 82.40, with 3 armed rungs, with 3 working buys
RungActionOrderRule
3CancelBuy 6 TNA @ 81.75 → sell @ 84.21 · GTC OTOgrid.armed-count
4CancelBuy 6 TNA @ 81.54 → sell @ 83.99 · GTC OTOgrid.armed-count
0PlaceBuy 6 TNA @ 82.37 → sell @ 84.85 · GTC OTOgrid.armed-count
1PlaceBuy 6 TNA @ 82.16 → sell @ 84.63 · GTC OTOgrid.armed-count
2KeepBuy 6 TNA @ 81.95 → sell @ 84.41 · GTC OTOgrid.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.

Educational software, not investment advice.