Configurable Weighted Portfolio Returns vs. a Benchmark
Summary
This indicator tracks a user-defined portfolio of up to fifteen stocks and compares its performance with a selected benchmark. Users choose which symbols to include, assign portfolio weights, set an initial capital amount and reporting dates, and optionally enable periodic rebalancing. Dividend-adjusted prices can be used for stock return calculations.
The script presents portfolio and benchmark performance in summary tables and plots their weekly, monthly, quarterly, or yearly returns side by side. It also displays instrument-level portfolio information, with options to control chart placement and appearance. The included defaults illustrate a US equity portfolio and a Nasdaq-tracking benchmark, but these are configurable inputs rather than reported results. This is a charting and performance-monitoring tool, not a trading signal or backtest report. The document provides no measured performance, validation, transaction cost assumptions, or discussion of how weights are normalized when they do not sum to a particular total.
Key ideas
- The indicator compares returns from a weighted basket of selected stocks with a configurable benchmark.
- Users can choose among as many as fifteen portfolio symbols and set each symbol’s inclusion and weight.
- The reporting period can be weekly, monthly, quarterly, or yearly, with optional periodic rebalancing.
- Dividend-adjusted stock prices and a chosen date range affect the performance calculation.
- Tables and return plots summarize portfolio, benchmark, and individual instrument performance.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.