Artículos

How PnL is computed

· Por el dueño de PredictPnL

Este artículo por ahora solo existe en inglés y en portugués.

One formula holds for any wallet, however many trades it has: result = portfolio value − net deposits. Everything else in the dashboard is that same number, sliced by time or by market.

The formula

result = portfolio value − net deposits

If you deposited 100 dollars and the portfolio is worth 132 today, the result is +32. It does not matter whether that took two trades or two hundred.

The reason to start from here, and not from a sum of trade profits, is that this version cannot drift. A sum of trades breaks the moment one trade is missing or a fee is counted twice. Portfolio value and deposits are two things you can check independently.

Where each piece comes from

Day, month and since inception

The same result can be cut by time:

For a window, the question is: what was each position worth at the start of the window? The answer comes from Polymarket's price history at that cut. The result of the window is then, for each position:

value now − value at the cut − money put into the position during the window

A position you bought during the window has no value at the cut, so its result is what it is worth now minus what you paid. A position you did not touch only moves if its price moved.

The equity curve

The curve is computed on the server, once a day, at the UTC close. It does not need the page to be open.

Each day stores portfolio value and net deposits, so the result of any day is the difference between two closes. That is also where the daily metrics come from: volatility, Sharpe, drawdown and the daily result heatmap.

What can make two numbers disagree

When the dashboard cannot close the numbers, for example because a position is missing from the table, the Audit tab says so instead of showing a total it cannot stand behind.

← Todos los artículos

Más artículos