---
title: "Portfolio"
id: "1768"
type: "page"
slug: "portfolio"
published_at: "2026-09-20T21:35:43+00:00"
modified_at: "2026-09-20T21:43:08+00:00"
url: "https://xedant.com/agents/analytics/docs/templates/portfolio"
markdown_url: "https://xedant.com/agents/analytics/docs/templates/portfolio.md"
excerpt: "This section is for anyone building and managing an investment portfolio: what to build it…"
---

# Portfolio

[https://xedant.com/agents/analytics/docs/templates/portfolio.md](https://xedant.com/agents/analytics/docs/templates/portfolio.md)

This section is for anyone building and managing an investment portfolio: what to build it from, in what proportions, how to hold the plan, and what to do with losing positions. Six templates walk the whole chain — from picking a fund to the tax savings on losing holdings.

Every template is a live walkthrough on demo data: open it in the Templates section of Analytics Agent and press “Use this template” to run it on your own data.

### Efficient Frontier (What Mixing Buys You)

**Shows:** a risk-return map built from hundreds of random asset mixes and three headline options — the best reward per unit of risk, the most cautious, and a simple equal split — and how far each one beats individual assets.

**You get:** it is plain that simply mixing assets almost always delivers a better result at the same risk than betting on the single asset that was “the most profitable” in past years.

### Risk Optimization (What If Only The Losses Matter)

**Shows:** the same set of assets rebuilt under four definitions of risk — from ordinary swinging returns to long stretches below the past peak — and how the shares change and how deep a crash gets cut off.

**You get:** if what matters to you is not “a bumpy ride” but “don’t lose a lot for a long time”, the choice of shares becomes deliberate instead of a fifty-fifty split.

### Fund Comparison (The Metrics Passport)

**Shows:** a passport for every fund — returns, depth of drawdowns, months below the old high, the share of the result explained by the market itself, and a bill for fees; each fund’s worst months stand next to the same month of the index.

**You get:** a fund chosen by the hole it dug and by the price of eight years of fees, not by one pretty return number.

### Allocation Drift (Is Rebalancing Worth It?)

**Shows:** how the portfolio drifts away from the plan over the years, and replays three return rules on one path — “never”, “every January”, and “when something leaves the corridor” — with trade counts, costs, and the final share of stocks; at the end, the single trade that brings the plan back to today.

**You get:** a 60/40 stocks-and-bonds plan quietly turns itself into 70/30 — here you see what that costs and when it is time to step in.

### Retirement Simulation (Does the Plan Survive?)

**Shows:** five thousand versions of the future under a “save first, spend later” scheme, the probability of making it to the end, a corridor of outcomes, and a sweep of the levers — contribution size, retirement age, expected return.

**You get:** instead of one promised number like “you will have 2.7 million”, the probability the plan holds — and a clear picture of what one extra year of work or one extra contribution adds.

### Tax-Loss Harvesting (Which Losers Are Worth Selling?)

**Shows:** a list of positions in the red, with the loss on each purchase lot, the tax saving, and a waiting status — can sell now or must wait; an offsetting cascade shows exactly how much a sale would save.

**You get:** a loss in the portfolio is also a saved tax — you see how to move money from a losing position into a winning one without breaking the 30-day rule.

[← Templates library](/agents/analytics/docs/templates)
 · [Finance group](/agents/analytics/docs/templates#wp-block-themeisle-blocks-advanced-heading-finansy)
