Replacing orders before they expire
orders.gtc-expiryWhat it does
Many brokers cancel a GTC order after a set number of days, so Rungfolio replaces each one 10 days before it would expire. A practice account's orders last 180 days, so they're replaced at 170.
How it works
A GTC order is good 'til canceled: it keeps working from day to day until it fills or is canceled. Many brokers still cancel it after a set number of days. Each live account records its broker's limit, from 1 to 3,650 days, or "until canceled" for a broker that keeps GTC orders for good (your broker's rules). A practice account uses 180 days. Each rung's buy and sell are GTC orders, entered together as an OTO order when the broker allows one.
Each working order records the date it was placed. Each night, Rungfolio plans the next day's orders. When an order is within 10 days of its account's limit on the trading date (170 or more calendar days old, in practice), that plan cancels it and places an identical one. The new order starts the limit again. The 10-day margin leaves room for an evening you miss. With "until canceled", orders are never replaced for their age.
This applies to buys and sells alike. It still runs while a ladder is paused, so a paused ladder's sells never lapse (what a pause does).
An order that's due for replacement is never listed as a keep. It shows up as a cancel and a place instead (tonight's changes).
In live mode
An order's age counts from the evening you mark it placed. An order you haven't marked placed isn't at your broker as far as Rungfolio knows, so it's never replaced: it's listed to place again.
A replacement shows up under "Replace" in tonight's list. You cancel the old order at your broker, then place the new one, and mark each.
If an order expires anyway, for example after several evenings you missed, the evening form asks about it, and you mark it expired. If the plan still wants it, tonight's list places it again (splits, expiry and stopped tickers).
Your broker's days
A live account's broker rules say how many days its GTC orders last, and Rungfolio replaces each one 10 days before then. When they last 11 days or fewer, there's no room for that margin, so each order is replaced every evening after the one it's placed. If your broker's GTC orders last until canceled, nothing is replaced.
Its broker's days count from the first session the order worked in. If an order reaches them anyway, it has expired. Likely fills leave it out, since it can't have filled, and name it, so you can mark it expired.
Examples
In the examples on this page, tonight is September 30, 2026, and the account is a practice account, whose orders last 180 days. This buy was placed on April 10. Look at the Rule column: the cancel and the identical new order both name this rule.
| Rung | Action | Order | Rule |
|---|---|---|---|
| 2 | Cancel | Buy 6 TNA @ 81.95 → sell @ 84.41 · GTC OTO | orders.gtc-expiry |
| 2 | Place | Buy 6 TNA @ 81.95 → sell @ 84.41 · GTC OTO | orders.gtc-expiry |
| 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 |
Now a paused ladder, with one lot whose sell was also placed on April 10. There are no buys, but the sell is still canceled and placed again under this rule.
| Rung | Action | Order | Rule |
|---|---|---|---|
| 0 | Cancel | Sell 6 TNA @ 84.85 · GTC | orders.gtc-expiry |
| 0 | Place | Sell 6 TNA @ 84.85 · GTC | orders.gtc-expiry |
In the app
A replaced order's "why?" gives the date it was placed, its age, the broker's limit and the age at which Rungfolio replaces it.