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

Fixed pinescript security call issue limiting to 40 calls
版本注释
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.).
受保护脚本
此脚本以闭源形式发布。 但是,您可以自由使用它,没有任何限制 — 在此处了解更多信息。
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
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。
受保护脚本
此脚本以闭源形式发布。 但是,您可以自由使用它,没有任何限制 — 在此处了解更多信息。
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
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。