Methodology

Cash flows from trades: returns without recording deposits

You don't need to record deposits to get a return. Unless you switch it off, Mon Petit Portfolio treats each buy as money you put in and each sale as money you took out, on the day of the trade. Your IRR and your yearly, quarterly and monthly rates then measure the return on what you bought, exactly as if you had recorded a deposit with every purchase and a withdrawal with every sale.

How it works

  • Each buy counts as a deposit of its cost (quantity × price paid), on the day of the purchase.
  • Each sale counts as a withdrawal of its proceeds (quantity × sale price), on the day of the sale.
  • The portfolio holds no cash. Money arrives when you buy and leaves when you sell, so there is never money waiting to be invested.
  • Deposits and withdrawals you recorded are kept but ignored while this is on. They count again as soon as you switch it off.
  • Fees and dividends are not part of the returns, with or without this setting. They count in your realised gains, and you record them after switching to manual cash.

Every return uses these flows: the IRR since the start, the yearly IRR, and the quarterly and monthly time-weighted returns, which are cut at each trade day. The "total invested" line on the chart is your purchases minus your sale proceeds; it goes below zero once your sales have brought in more than your purchases cost.

A worked example

DateEventAmount
1 January 2024Buy€1,000
1 January 2025Buy€1,000
1 January 2026Portfolio value€2,300
  • The two purchases count as €1,000 put in on 1 January 2024 and €1,000 on 1 January 2025.
  • IRR: about 9.7% a year, the same as for two recorded deposits on those dates. Growing at 9.7%, the first €1,000 becomes about €1,203 after two years and the second about €1,097 after one, which makes €2,300.
  • Without this setting and with no deposits recorded, the portfolio would have no return at all: there would be no money going in to measure the return against.

When to record cash yourself

Computing cash flows from trades measures the return on the money that was invested. Recording your deposits and withdrawals measures the return on all the money in the account, which differs when money sits as cash:

  • Money waiting to be invested. A deposit you spend a few months later lowers your real return in the meantime. From trades, that money only counts from the day you buy, so the rate reads higher.
  • Sale proceeds kept as cash. From trades, a sale takes the money out and a later purchase puts it back in; the time in between isn't counted.
  • Dividends and fees. Recording them lets your realised gains include them.

If your money is invested soon after it arrives and you withdraw what you sell, both give about the same rate.

Switching between the two

New portfolios compute their cash flows from trades. You switch in the portfolio's Cash tab, or with the "Compute cash flows from trades" toggle in its settings.

  • Turning it off can record your trades as deposits and withdrawals: one deposit per buy day and one withdrawal per sale day, which you can then edit. Your returns stay the same. This is skipped if the portfolio already has deposits or withdrawals, since those count again.
  • Turning it on keeps your recorded deposits and withdrawals, ignored until you turn it off again.

On a public portfolio, the return is labelled as computed from trades, so visitors know how it was measured.

Frequently asked questions

Why does my portfolio show a return though I never recorded a deposit?

Because its cash flows are computed from its trades: each buy counts as money put in and each sale as money taken out. Without them, a portfolio with no deposits would have nothing to measure its return against.

Is a return computed from trades less accurate?

It is exactly the rate you would get by recording a deposit with each purchase and a withdrawal with each sale. It differs from a rate based on your real deposits only when money sits as cash, waiting to be invested or kept after a sale.

What happens to the deposits I already recorded?

Nothing is deleted. While cash flows are computed from trades, your recorded deposits and withdrawals are ignored; they count again when you switch back to manual cash.

Why is my total invested negative?

From trades, total invested is your purchases minus your sale proceeds. Once your sales have brought in more than your purchases cost, which happens after selling at a gain, it goes below zero.

Last checked against the code on November 7, 2026. Nothing on Mon Petit Portfolio is investment advice.