OPEN-SOURCE SCRIPT

Annual Performance Table

330
Annual Returns Table | Yearly Performance + Sharpe Ratio
A clean, customizable table displayed directly on your chart giving you an instant overview of any asset's yearly performance — stocks, ETFs, crypto, indices, commodities, forex.
What it shows

Annual return (%) for each complete year — incomplete years at the start of history are automatically excluded
Current year YTD performance (marked with *)
Sharpe Ratio per year (calculated from monthly returns, annualized ×√12)
A separate stats panel: Average annual return, Cumulative return, Global Sharpe Ratio, Total years of history

Key features

Works on Daily, Weekly, Monthly and Yearly timeframes
Automatic row wrapping when history is too long to fit on one line
Configurable: max years displayed, years per row, show/hide each row independently
Color coded: green for positive years, red for negative, gradient on Sharpe quality
Fully customizable colors

For informational purposes only. Not financial advice.

Wyłączenie odpowiedzialności

Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.