OPEN-SOURCE SCRIPT

Multi-Asset: Complete Analysis

43
Description:
Comprehensive performance analysis tool for comparing multiple assets or custom weighted portfolios against benchmarks. Calculates Sharpe ratios across multiple timeframes (30d, 90d, 180d, 252d), total returns, CAGR, and normalized values starting from $100.

Key Features:
Build custom weighted portfolios (default: 50/30/20 allocation)
Compare against SPY, QQQ, and other benchmarks
Dynamic risk-free rate from ^IRX or manual input
Multi-period Sharpe ratio analysis to validate strategy consistency
Total return and annualized return (CAGR) metrics
All assets normalized to common start date for accurate comparison
Toggle individual assets on/off for cleaner chart viewing

Use Case:
Perfect for evaluating whether your custom portfolio allocation justifies its complexity versus simply buying SPY/QQQ. If your risk-adjusted returns (Sharpe) and absolute returns aren't beating the benchmarks, you're overcomplicating your strategy.
Ideal for: Portfolio managers, factor investors, and anyone building custom allocations who need proof their strategy actually works.

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.