Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Examples of using Bollinger Bands

Does anyone have examples of using Bollinger Bands. I would like to buy/sell every time price cross 20 days moving average. Also I would like to take profit when price hits Bollinger Bands.

Thanks,

4 responses

Hi Jaydip,
I was actually working on some example algorithms yesterday, Bollinger Bands was one of them.

David

Thanks David,
I tested with AAPL and getting negative results. Not sure why?

Jaydip, Apple's stock did pretty poorly for the first half of 2013, and the algorithm made some bad choices. It bets on a reversion when a breakout occurs, in this case, it was wrong, maybe adding stop losses and some other criteria will help.

Here's the same test you did with the benchmark set to AAPL.

Hi David, is there a way to use this trade on a basket of stocks rather than a single equity?