PROTECTED SOURCE SCRIPT
Updated Make & Track An Index — Custom Weighted (by Quinn Millegan)

Fixed pinescript security call issue limiting to 40 calls
Release Notes
Build your own weighted index or portfolio tracker from any combination of tickers.Enter symbols and their weights (in percent, decimals, or fractions — e.g. 50,30,20 or 1/2,1/3,1/6) and this script will calculate and plot your custom index value in real time.
✅ Features
Unlimited symbols via simple CSV entry (e.g. AAPL,MSFT,NVDA,AMZN).
Flexible weighting input — supports percentages, decimals, or fractions.
Optional normalization to make weights sum to 100%.
Color-coded trend detection (blue for up, purple for down).
Optional real-time Price Table showing each component’s price and weight.
Built-in alert condition when the index crosses above its 20-bar SMA.
💡 Example
For a portfolio of AAPL 50, MSFT 40, and NVDA 10, the script produces an index value of roughly 345.34 (as of Oct 2025).
⚙️ Usage
Open the indicator on any chart.
Type your tickers into the Tickers (CSV) box.
Optionally specify Weights (CSV) in any format.
Toggle “Normalize Weights” if you want the total to equal 100%.
This tool was developed by Quinn Millegan of the Woodworth Contrarian Fund to visualize weighted portfolios, custom benchmarks, or thematic baskets (e.g. “AI Index,” “Cloud SaaS Basket,” etc.).
Protected script
This script is published as closed-source. However, you can use it freely and without any limitations – learn more here.
The Woodworth Contrarian Fund | A Value-Based Contrarian Hedge Fund
DEEP ROOTS. STUBBORN GROWTH. OREGON-BASED.
info@Woodworth.Fund | (800) 651-1996 | Quinn & Drew Millegan, Managing Partners
DEEP ROOTS. STUBBORN GROWTH. OREGON-BASED.
info@Woodworth.Fund | (800) 651-1996 | Quinn & Drew Millegan, Managing Partners
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Protected script
This script is published as closed-source. However, you can use it freely and without any limitations – learn more here.
The Woodworth Contrarian Fund | A Value-Based Contrarian Hedge Fund
DEEP ROOTS. STUBBORN GROWTH. OREGON-BASED.
info@Woodworth.Fund | (800) 651-1996 | Quinn & Drew Millegan, Managing Partners
DEEP ROOTS. STUBBORN GROWTH. OREGON-BASED.
info@Woodworth.Fund | (800) 651-1996 | Quinn & Drew Millegan, Managing Partners
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.