levieux

MonthlyReturnsVsMarket

levieux Updated   
Library "MonthlyReturnsVsMarket" is a repackaging of the script here

Credits to @QuantNomad for orginal script

Now you can avoid to pollute your own strategy's code with the monthly returns table code and just import the library and call displayMonthlyPnL(int precision) function

To be used in strategy scripts.
Release Notes:
added meaningful description
Release Notes:
Updated description
Release Notes:
fix
Release Notes:
Added white background color to table so that colors are displayed properly in dark theme
Release Notes:
Added 2 parameters to control whether monthly market and yearly (buy & hold) performance are displayed

Pine library

In true TradingView spirit, the author has published this Pine code as an open-source library so that other Pine programmers from our community can reuse it. Cheers to the author! You may use this library privately or in other open-source publications, but reuse of this code in a publication is governed by House Rules.

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.

Want to use this library?

Copy the following line and paste it in your script.