rungfolio

Realized profit and loss

perf.realized-pnl

What it measures

Profit or loss on lots that have sold. "Realized" means the sale has happened, so the result is locked in. A closed lot is one that has sold.

How it's worked out

For each closed lot: its shares times the difference between its sell price and its buy price, less any fees on the buy and the sell. Practice mode counts no fees, so there the fees are $0. Each trading night, Rungfolio adds the results of the lots that sold that day to the running total.

A ladder lot sells at its target, which is above its buy, or higher when the price opens past the target. The one rule that can sell a lot below its target is the price floor set to exit, and that sale can realize a loss.

Two more things count:

  • A split's payout. When a split leaves a lot a fraction of a share, the fraction is paid out in cash at the ex-date's open. The cash, less the part of the lot's cost that went with it, is realized that day, whether the lot is still open, sells later or ends.
  • A lot that ended. A lot left unsold when its ladder ended, or one a split left with no whole share, never sold. Its shares realize nothing, beyond any payout.

Rungfolio doesn't work out taxes. See what the simulator doesn't model.

Example

Today rung 3's lot sold at its target, and rung 2's is still open. Look at the Realized profit and loss row: what rung 3's lot sold for, less what it cost.

Worked example: a practice account at a close of 84.10, with $49,523.06 in cash, with 1 lot held, with 1 lot sold
MeasureValueRule
Cash$49,523.06perf.account-value
Open lots at the close$504.60perf.account-value
Account value$50,027.66perf.account-value
Capital in use$491.70perf.capital-in-use
Capital in use as a percentage0.98%perf.capital-in-use-pct
Unrealized profit and loss$12.90perf.unrealized-pnl
Realized profit and loss$14.76perf.realized-pnl

In the Journal, a lot that sold or ended shows what it realized on its row. An open lot's row shows its unrealized result instead. The realized total adds up what every lot realized, so if a split paid out for a lot that's still open, the payout counts in the total and in the lot's "why?", though not on its row.

In this example, no split paid out, so the rows add up to the total. Three lots sold: 6 TNA from 81.95 to 84.41 made $14.76, 5 TNA from 81.75 to 84.21 made $12.30, and 6 SOXL bought at 27.16 and sold by the floor at 24.40 lost $16.56. That's $10.50 in all. The two open lots haven't realized anything.

Worked example: the Journal's lots
TickerSharesBoughtSoldDays heldProfit or loss
TNA681.95 on Oct 1, 202684.41 on Oct 5, 20262$14.76
TNA581.75 on Oct 1, 202684.21 on Oct 1, 20260$12.30
SOXL627.16 on Sep 30, 202624.40 on Oct 2, 20262−$16.56
TNA681.55 on Oct 6, 2026Open—$3.00 unrealized
SOXL2024.90 on Oct 6, 2026Open—−$16.00 unrealized
Realized profit and lossperf.realized-pnl$10.50
Unrealized profit and lossperf.unrealized-pnl−$13.00
Rung cyclesperf.rung-cycle3
Average days heldperf.days-held1.3

A payout, worked by hand: 7 shares of a ticker bought at 2.10 cost $14.70. A 1-for-5 split leaves 1 share at 10.50 and 0.4 of a share over. At an open of 9.80, the 0.4 is paid out as $3.92. The share kept costs $10.50, so $14.70 − $10.50 = $4.20 of cost goes with the payout, and it realizes $3.92 − $4.20 = −$0.28. If the share later sells at 10.82, that sale realizes 10.82 − 10.50 = $0.32, and the lot has realized $0.04 in all.

Unrealized profit and loss covers the lots that haven't sold yet, and weekly and monthly gains group realized results by when the lots sold.

In the app

On Home, each sale among last night's fills shows its profit or loss. The Journal shows each lot's result, and the total for the lots you filter it to, with what each lot's sale and payout made in its "why?". Its Charts view puts each trading day's realized profit and loss on a calendar: each sale on the day it sold, and each split payout on its ex-date, a gain with a plus sign and a loss with a minus sign. On a phone, an amount of $1,000 or more is shortened to fit, such as +$1.2K; a screen reader hears it in full.

Educational software, not investment advice.