OPEN-SOURCE SCRIPT

Bollinger Band Breakout

Updated
It is a long only strategy.

1. Buy when price breaks out of the upper band.
2. Exit has two options. Option 1 allows you to exit using lower band. Option 2 allows you to exit using moving average.
3. Option 1 preferred over option 2 if the instrument is highly volatile.
4. Slippage and commissions are not considered in the return calculation.
Release Notes
Modified the position sizing. Now it is based on the available capital.
Bollinger Bands (BB)bollingerbandstrategybollingersbuybuysetupLONGlongonlylongpositionSimple Moving Average (SMA)Standard Deviation

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?


Also on:

Disclaimer