OPEN-SOURCE SCRIPT

Mean Reversion w/ Bollinger Bands

This is a more advanced version of my original mean reversion script.

It employs the famous Bollinger Bands.

This robot will buy when price falls below the lower Bollinger Band, and sell when price moves above the upper Bollinger Band.

I've only tested it on the S&P 500, though you could try it out on other assets to see the backtest performance.

During the recent COVID-19 bear market drop, it produced several buy signals on the S&P which I followed, and made some nice gains so far.

I still think this would make a better investing strategy (buy undervalued / sell over-valued), rather than a trading strategy.

I use this robot for my long term portfolio.
bandsBollinger Bands (BB)indexinvestingmeanreversionstrategy

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