OPEN-SOURCE SCRIPT

Monthly Returns

By iravan
Updated
Displays monthly and yearly returns in tabular format along with maximum, minimum, average returns and standard deviations.

This uses boxes to build the table and as maximum boxes that could be used is 500, it displays up to 32 years of returns. However, for maximum, minimum, average and standard deviation calculations, it uses data from all months since inception.

This requires timeframe to be set to one month (1M). Cell widths correspond to years. For the first year, cell widths may be shorter and there could be overlap of numbers as nothing could be drawn before the first bar.

Provide sufficient space for the table to render properly. Zooming out or less space may lead to overlapping of numbers.
Release Notes
Fixed alignment issue
Monthly Chartsreturnsstatisticsstddevyearly

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