Measuring portfolio performance with Transcalc - the manual

A portfolio is a collection of financial investments like stocks, bonds, commodities, closed-end funds and ETFs. Whether you manage your investment assets or choose to hire others to manage the assets on our behalf you want to know how well the portfolio of assets performs. Asset allocation, security analysis, portfolio construction and executing transaction executions are the investment decision process. The portfolio performance measurement is a part of the investment decision process, not external to it. Portfolio performance measurement answers the three basic questions:
  1. What is the return on assets?
  2. Why has the portfolio performed that way?
  3. How can we improve performance?
Transcalc allows you to find the answer to the first question. In the future the Transcalc will hopefully also answer the second and third questions.

Data import

Imported file format

TransCalc takes as an input a list of transactions stored in a CSV (comma separated value) file. The CSV file is usually exported from a broker service. An example file is included, which may look like

TimeEquityBuy/SellAmountPriceCommission
2018-05-31-13.14.06equity2B20101
2018-06-04-09.32.09equity2S10141
2018-06-30-13.14.01equity1B20100,2
2018-07-01-09.32.05equity1S10142

The columns are:

* - mandatory data

Date-time format

Y
year*

m
month*

d
day*

H
hour

M
minute

S
second
* - mandatory data

Examples

PatternDate-time
Y-m-d-H.M.S2018-07-01-09.32.05
Y-m-d2018-07-01
Y/m/d-H:M:S2018/07/01-09:32:05

A successful import

When the parameters you specified match the imported data, the program successfully imports the data, and you can proceed to the Report generation step Successful import

When something goes wrong

When things go wrong, you get errors while attempting to import.

Unsuccessful import

There can be:

Reports

User-defined parameters

For the portfolio reports, you can specify the following parameters: Report parameters

Portfolio summary

The report shows you the summary of the portfolio Unsuccessful import

Equities performance

The report shows the performance of every equity. The following statistics are available: Equity performance

Equity transactions

The report shows a list of transactions for every equity in your portfolio. Additionally the report includes a simple chart, which visualises entry and exit prices for your equity.

The report shows the performance of every equity. The following statistics are available: List of transactions

Transaction status

Taking and building a position

As an investor, you probably heard the term taking a position and a position building. You take a position when you buy (or sell shares to create a short position) in a particular equity. If we compare investing to a battle, you usually don't throw all your soldiers on the line at once. Rather, you have a certain deployment schedule, and you do it gradually depending on the circumstances at the time. Similarly with investing -- you take a position using a part of your funds, wait and at look how the market behaves, and then you decide what to do next. Your options are to take a larger position, withdraw from the position or keep the current position as it is. You repeat this process multiple times, which is position building. If you finish this process, i.e. you add no more funds to the particular investment, you have built your position, and you hope that it will be profitable.

Reducing and closing the position

After some time, the market circumstances change, and you start thinking about reducing your position or completely closing the position. Compared again to a battle again, you will rather pull your troops gradually from the field than order an immediate retreat. However, the latter situation is also possible. When the battle goes horribly wrong, the troops start to retreat in panic, all at once. This happens during the market crash. But, when there are no such dramatic actions, you will pull your troops in an organised way no matter if you won or lost the battle. Similarly, if your market position is profitable, you will probably sell part of it to secure the gains. If the position is against you, you are likely to sell part of it to cut the losses. So, you are in the process of reducing your position. When all the troops have left the battlefield, or you have pulled all your funds from the investment, you closed have the position.

Transaction status

When you build you position, you buy (or sell in the short-selling case) equities. Every transaction can have the following status:

Again, you can compare it to a battlefield, when you deployed a military unit (open), pulled a part of the unit from the battlefield (partially closed) or pulled the whole unit (closed). This concerns only a single unit, but you probably deployed multiple units. Hence, the rest of your units may have other status - they may be still engaged in a battle, or may start withdrawing are already be withdrawn.

Transaction status

To understand the concept of open, partially closed and closed transactions better, look at the example below. We have here 4 transactions:

Trans_idBuy/SellAmountPrice
1B1010
2B2015
3B1015
4S1520

After applying FIFO, we have

Trans_id_1Trans_id_2AmountSell priceGain
141020100
2452025
3----
Note, that the equity bought in transaction 3 has not been sold yet, while from transaction 2, we sold only 5 shares from 20.

After FIFO computations, the transaction status is

Trans_idAmount soldAmount leftStatusComment
1100Closedsold in the Trans_id 4
2515Part. open5 shares sold in Trans_id 4
3010Openno sell transaction to match

Transaction groups

Investing is a repetitive process of opening, building, reducing and closing your position. After you close the position on a given equity, in the future maybe you will open the position on this equity again, adding another lap to this process. The breaks, when you don't have a single share of a given equity, divide your transaction history into groups. Each group start by taking a position, building it, reducing it and closing. Sometimes, the history is short - you take the position, and in the next step, you close it because the market was against you. Other times, the transaction history within a group spans many years. You have built a position which gradually has been increasing its value, so you keep it. Like in battle, you deploy the troops, they are engaged, then you pull them and after some time, the battle is over - not a single unit remains in the field. Maybe in the future, you will start the battle again against the same enemy. But now, we have a ceasefire, and it is time to count the winnings and losses.

TransCals allows you to distinguish the transaction groups for each equity and display the performance for each group separately. The statistics of every group are the same as for the equity. TransCalc shows you the transaction dates, prices, amount, gain and commissions.

Transaction groups

Further readings

Read more about how FIFO and LIFO affect capital gain tax.