rungfolio

Tonight's changes

orders.diff

What it does

Each night's list shows only what to place, cancel or keep. You never have to work out for yourself what changed since last night.

How it works

The plan works out the orders the ladder should have tonight, and compares them with the ones already working. Each order lands in one of three groups.

Keep is a working order that is identical to one the plan wants. For a buy, identical means the same rung, shares, buy limit and paired sell (the sell of its OTO order). For a sell, it means the same lot, with the lot's shares and target. For a floor exit, it means an exit already placed tonight for the same lot and shares. A sell is matched by its lot, so moving the starting price never disturbs it. Keep means you do nothing at the broker.

Cancel is a working order the plan no longer wants. Its rung may now hold a lot (one lot per rung). It may have fallen outside the armed window, a cap may have stopped it, or the ladder may have paused. Or it may no longer match its rung's price or size, for example because the account value changed the share count.

Place is an order the plan wants that isn't working yet.

A changed order is always a cancel plus a place, never an edit. An order due for replacement is never a keep either (replacing orders).

Every open lot (the shares a rung has bought and not yet sold) ends the night with exactly one working sell, or exactly one exit when the price floor has tripped with its exit action. If a lot's sell is missing, the plan places one at the lot's target. If a lot's sell or exit is for a different number of shares than the lot holds, for example after a buy filled only in part, the plan cancels it and places one for the lot's shares. Those are the only repairs the plan makes. It never rewrites your records. Records that don't add up, such as two lots on one rung or a sell at a price other than its lot's target, are refused with a message instead.

The list runs cancels first, then places, then keeps. Within each group, sells come before buys, market orders before limits, and higher prices before lower ones. The same records always give the same list. The evening routine shows how to work down it.

Example

Here, the account value has grown a little since last night's buys, and one lot has no sell. Look at the Action column for the three kinds of change: the buy whose share count changed is canceled and placed again with more shares, the missing sell is placed, and the unchanged buys are kept.

Worked example: tonight's orders at a close of 82.05, with 3 armed rungs, with a $57,200 account, with 1 lot held and 3 working buys
RungActionOrderRule
4CancelBuy 6 TNA @ 81.54 → sell @ 83.99 · GTC OTOorders.diff
6PlaceSell 6 TNA @ 83.58 · GTCorders.diff
4PlaceBuy 7 TNA @ 81.54 → sell @ 83.99 · GTC OTOgrid.armed-count
2KeepBuy 6 TNA @ 81.95 → sell @ 84.41 · GTC OTOgrid.armed-count
3KeepBuy 6 TNA @ 81.75 → sell @ 84.21 · GTC OTOgrid.armed-count

In the app

Tonight's orders list each change with its action, and the plan's own summary counts them.

Educational software, not investment advice.