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.

Thông báo miễn trừ trách nhiệm

Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.