Sezga
English
Sign in

Inside Sezga · · 6 min read

How does the Sezga portfolio calculate average cost and P&L?

The Sezga portfolio is a trade journal in which members enter their own buys and sells by hand, and from which position, unrealized profit and loss and realized profit and loss are calculated using the average cost method. Under this method, new buys change the average cost while sells do not; the result of a sale shows up only in realized profit and loss.

Average cost is the unit cost of a holding: the total amount paid divided by the quantity held. This article focuses less on the concept itself and more on which inputs Sezga uses, which rule it applies, how to read the results and where the calculation has limits.

What do you enter?

Sezga is not an exchange: no trading takes place on it, it does not connect to exchange accounts and it never asks for exchange API keys. That is why every trade in the portfolio is entered manually by the member. A trade record has these fields:

FieldWhat it is for
SideWhether the trade is a buy or a sell
QuantityNumber of coins bought or sold
PriceUnit price at which the trade was executed
FeeCommission paid for the trade
Exchange nameWhich exchange the trade was made on
NoteThe reason for the trade, i.e. the journal entry

Manual entry takes more effort, but one consequence is clear: no access to any exchange account is ever granted. On the other hand, the records are only as accurate as what you type in. A forgotten buy or a mistyped price shifts the average cost and every profit and loss figure that depends on it. The portfolio only knows the trades it is given.

How is average cost calculated?

With each new buy, the cost of the purchase is added to the previous total cost, and the new total is divided by the new quantity held. With a sell, the average cost stays exactly where it was; only the quantity held goes down.

Let's walk through a hypothetical example. The prices are illustrative, not real, and fees are set to zero to keep the math simple.

  1. First buy: 2 ETH at $2,000 each. Total cost $4,000, average cost $2,000.
  2. Second buy: 2 ETH at $3,000 each. Total cost $10,000, quantity 4 ETH, average cost $2,500.
  3. Sell: 1 ETH at $3,200. Quantity drops to 3 ETH; average cost stays at $2,500.
  4. Third buy: 1 ETH at $2,100. The remaining 3 ETH cost $7,500; with the new buy the total is $9,600, and the average cost for 4 ETH falls to $2,400.

The average not changing at step three can be surprising at first. The logic is this: the ETH that was sold is treated as leaving the portfolio at the average cost of $2,500. The unit cost of the remaining 3 ETH is unaffected by the sale. The outcome of the sale appears in a separate place: realized profit and loss.

Realized and unrealized profit and loss

These two figures answer different questions about the same portfolio:

  • Realized P&L: The result locked in by sales. The sale in the example produces (3,200 − 2,500) × 1 = $700 of realized profit. This figure does not change, whatever the price does afterwards.
  • Unrealized P&L: The difference between the current value of what you still hold and its cost. Suppose that after the sale, with 3 ETH left, the price is $2,800: (2,800 − 2,500) × 3 = $900 of unrealized profit. If the price falls to $2,300, the same position shows (2,300 − 2,500) × 3 = −$600 of unrealized loss.

Read the two together. A portfolio can carry realized profit from earlier sales while sitting on an unrealized loss on what remains. Looking at only one of them makes the picture look better or worse than it is.

Why the average cost method?

Average cost is not the only way to assign a cost to a sale. Under FIFO (first in, first out), for example, the quantity sold is taken from the oldest purchases first. In the example above, FIFO would count the ETH sold as coming from the first $2,000 buy, and realized profit would come out at $1,200. The same trades produce different numbers under different methods.

The strength of average cost is that it is easy to read: you see the unit cost of your holding as a single number. For anyone buying in stages, the question "where is my average?" gets a direct answer. Which method applies for official accounting or tax purposes can differ from country to country; for those calculations, follow the rules of the relevant jurisdiction.

The note field: the reasoning next to the numbers

The note field in the portfolio works as a trade journal. Writing down the answer to "why did I buy?" or "why did I sell?" at the moment of the trade makes it easier to review decisions honestly later. Over time, memory tends to credit profitable trades to a good plan and losing ones to bad luck. A written note reduces that bias.

The portfolio calculation does not produce recommendations; it does not say when to sell or name a price target. It simply shows the results of the trades you entered in an orderly way. Each member's portfolio, alerts and paper trading account are visible only to that member.

Frequently asked questions

Does the Sezga portfolio connect to my exchange account?

No. Sezga does not connect to exchange accounts and does not ask for exchange API keys. Buys and sells are entered manually along with quantity, price, fee, exchange name and a note.

Why doesn't my average cost change when I sell?

Under the average cost method, the quantity sold is treated as leaving at the average cost. The unit cost of the coins you still hold therefore stays the same, and the result of the sale is calculated separately as realized profit or loss.

Can other people see my portfolio on Sezga?

No. Each member's portfolio, alerts and paper trading account are visible only to that member.

Key takeaways

  • Trades in the Sezga portfolio are entered manually; there is no exchange connection and no API key.
  • Average cost is recalculated with every buy and does not change with a sell.
  • Realized P&L is locked in by sales; unrealized P&L moves with the current value of what you still hold.
  • Other methods such as FIFO can produce different figures from the same trades.
  • The note field is a trade journal that keeps the reasoning behind each decision.

The Sezga terminal

Live prices, liquidation feed, multilingual news, the Fed calendar, event memory and a paper-trading account on one screen. Access is by invitation.

Sign in

Related articles