TD

Reading the Panel

What every row, marker and colour on the table means.

Title row

With two or more benchmarks the title row has three parts: the date and time of the last update on the left, “[Finaspex] Total Return Performance Matrix” with the version in the centre, and the Period, number of periods, dividend strategy and (in a spread mode) the Display Mode on the right. Hover the right part for the full settings: Period, Dividend Strategy, Initial Investment and additions, Summary Rows Include, Display Mode and Sort Columns by.

With one benchmark the row uses a compact form (date, “Total Return Matrix” with the version, and the period). With no benchmarks it becomes a single label with the period.

Asset header row

One header per asset — the chart’s ticker and each benchmark — in the order set by Sort Columns by. Hover a header for the asset’s description, the dividend strategy, a historical summary (starting capital, final value or wealth, dividends earned, banked or pocketed, tactical dip buys where relevant), the additions breakdown if any, and its CAGR, average return and Positive Periods.

Why spreads ignore column order: the spread Display Modes (Others vs. Ticker / Ticker vs. Others) always measure each benchmark against the main ticker’s own return, wherever the main ticker sits after sorting.

Live period row

Labelled with the current period and “(now)”, e.g. “2026 (now)” for Annual. Summary Rows Include decides whether this row feeds the summary rows; its tooltip states whether it is included.

★ (star)
Marks the best asset in the row. It is decided on each asset’s own strategy return, not on the number the active Display Mode shows, so the same asset holds the star in Absolute Return and in the spread modes.
⟳ (dip-buy marker)
Appears under Reinvest on Drawdown (Tactical) when the previous period closed down and the cash reserve (at least $1) is deployed at the start of the current period. The tooltip reads “⚡ Tactical dip buy in this period” and shows the amount deployed and the live trajectory from the starting to the current value.

Historical period rows

One row per completed period, most recent first. Each cell has a spark bar of up to four blocks (█) growing left for a loss or right for a gain, and the percentage.

Why bars are scaled to the 85th percentile: bar length is measured against the 85th percentile of all displayed magnitudes rather than the single largest one. One extreme period — a +180% year on a leveraged ETF — then leaves the other bars readable.

⟳ here
A tactical dip buy was executed at the start of that period. Under the tactical strategy, the tooltip of a period with a negative price return also notes that a dip buy is queued for the next period.

Display Modes

Display Mode changes every period cell — live row, historical rows and the export — while the summary statistics, sorting and ★ markers keep using each asset’s own return:

Absolute Return
Every cell shows the asset’s own dividend-adjusted period return.
Others vs. Ticker
Benchmark cells show benchmark return − main ticker return: how much each benchmark beat or lagged the main ticker. The main ticker’s column keeps its own return.
Ticker vs. Others
The mirror image: benchmark cells show main ticker return − benchmark return, so a positive number is the main ticker’s alpha over that benchmark.

The summary rows

Compound
Total compound return over the summary scope, time-weighted. ★ marks the highest. Longer histories accumulate more, which is why the CAGR row follows.
CAGR
The per-year equivalent of Compound, with the number of years in brackets. ★ marks the best per-year growth — the fairest comparison across assets. When CAGR is positive, its tooltip also shows the doubling time at that pace: log(2) ÷ log(1 + CAGR).
Avg Return
The arithmetic mean return per period. ★ marks the highest.
Positive Periods
The share of periods with a positive return, with the count, e.g. 70% (7/10). Green at 50% or more, red below. ★ marks the most consistent asset — the highest share of positive periods.
Worst Period
The largest single-period drop, with the period it happened in. ★ marks the shallowest worst period. If the live period is the worst one, its tooltip notes that the figure is still forming.
Max Drawdown
The deepest peak-to-trough decline of the compounded equity curve, with the trough period; it can span several down periods in a row. ★ marks the shallowest. The tooltip shows the peak and trough periods. If the trough is the live period, the tooltip notes that the figure is still forming.
Total Investment
The capital put in: the Initial Investment plus every addition from the second period onward. It is the base Final Value is measured against. With no additions it equals the Initial Investment for every asset.
Final Value
The ending value of the position: the Initial Investment plus any additions, grown by the active strategy. ★ marks the largest. With additions it can crown a different asset than Compound, because Final Value is in dollars and Compound is time-weighted.

Why Final Value can be green while Compound is red: the Final Value cell is coloured by its dollar gain over Total Investment. With additions, buying through a decline before a later rally can produce a real dollar gain while the time-weighted Compound Return is negative; the Final Value tooltip explains it when the two differ. With Addition per Period = 0 the two always agree.

Pine Logs export

With Print Table to Pine Logs on, the whole matrix — a one-line settings banner, the asset header, the live row, every historical row and the summary rows — is written to TradingView’s Pine Logs pane, one entry per row, in the chosen Export Format (Markdown / CSV / CSV plain numbers; see Panel Settings).

  1. Open the Pine Editor and click the Pine Logs button in its toolbar.
  2. Select the rows you want and copy them.
  3. Paste into a Markdown editor (GitHub, Notion, Obsidian, Reddit) for the Markdown format, or into Excel or Google Sheets for CSV. For CSV, run Text to Columns (split by comma); Pine’s own log timestamp lands in column A, which you can delete.

Why one export per load: the export is a snapshot of the values when the script loads, so it does not repeat on every tick. Reload the chart to capture new values (a new live price, a closed period, a changed setting). Entries build up across reloads; use the Pine Logs clear button to start over.