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.
Skrip open-source

Sejalan dengan semangat TradingView, penulis skrip ini telah mempublikasikannya secara open-source, sehingga para trader dapat memahami dan memverifikasinya. Salut untuk sang penulis! Anda dapat menggunakannya secara gratis, tetapi penggunaan kembali kode ini dalam publikasi diatur oleh Tata Tertib. Anda dapat memfavoritkannya untuk dapat menggunakannya didalam sebuah chart.

Inggin menggunakan skrip ini pada chart?


Sir,first of all, a great congratulation for your dedication towards providing one of the best indicator 'Mean Reversion w/Bollinger Bands.Sir ,I invest in share, mkt .
Please tell me some 2 or 3 the best indicators for trading. Iwould be highly obliged for this kind of act.Waiting for the answer.
My Best regards.
+5 Jawab
thank you for the contribution sir. One query, does it repaints sir?
Hi there, super nice strategy! really clean - have been using it alot! It seems like something happened with the script today; my bollinger-bands do not show. Do you know what to do? best, Jesper
Hi there, this is a wonderful spcirpt, but is there anyway to add the timeframe into it?
I have tried for so many times but couldn't get it to work....
TsangYouJun wangtzuchao
@wangtzuchao, if you’re using it for crypto, you need to modify the UNITS. Crypto and Currencies work differently from stocks.
can this program into interactive brokers?
Thank you very much for your contribution. I have been working with this script (with some modifications) and I am getting very good results. It works very well with various cryptocurrencies. Thanks again.
@coinnoz, you’re welcome!
rdoubz coinnoz
@coinnoz, what did you change to make it work with crypto?