OPEN-SOURCE SCRIPT

Multi-Asset Portfolio

By STOCHASTICU
Updated
With thanks to luminaryfi for tradingview.com/script/0T7X2HEB-Portfolio-Metrics-α-Jensen-s-β-CAPM-Ra-Sharpe-Treynor/, this indicator calculates basic metrics and statistics for a multi-asset portfolio. Note that returns are plotted after being multiplied by 100 in order allow the series to be visible against the other statistics.
Release Notes
Chart updated to better reflect indicator
Release Notes
returns to logreturns across the board
Release Notes
Typo fix
portfolioportfolioperformancesharpeVolatility

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer