This is a breakout trading strategy based on Bollinger Bands. It uses the upper band and middle line of Bollinger Bands to implement swing trading. Specifically, it goes long when the price breaks above the upper band and closes position when the price falls below the middle line. This is a typical trend following strategy.
The above is the main trading logic of this strategy. It is simple and effective to capture relatively strong trending moves.
The main advantages of this Bollinger Bands swing strategy are:
In general, this is a relatively well-performed trend following strategy that is simple, practical and easy to control.
There are also some risks with this strategy:
Also possible to control risks by combining more filter indicators or optimizing stop loss strategies.
The strategy can be optimized from the following aspects:
Continuous improvement of the strategy can be done through systematic testing and optimization for better profitability.
Overall this Bollinger Bands swing trading strategy is very practical. It has simple operation for easy trend following. There are also some risks to note, which can be addressed through parameter tuning and optimization. This is a recommended quantitative strategy.
/*backtest start: 2023-01-02 00:00:00 end: 2024-01-02 00:00:00 period: 1d basePeriod: 1h exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}] */ //@version=5 strategy("Bollinger Bands Breakout Strategy", overlay=true) // Bollinger Band Einstellungen length = input(20, title="Bollinger Band Length") src = input(close, title="Source") mult = input(2.0, title="Multiplier") basis = ta.sma(src, length) upper_band = basis + mult * ta.stdev(src, length) lower_band = basis - mult * ta.stdev(src, length) // Bedingung für den oberen Ausbruch upper_breakout_condition = close > upper_band // Bedingung für den Rückgang unter das mittlere Band below_middle_band_condition = close < basis // Plot der Bollinger Bänder plot(upper_band, color=color.blue, title="Upper Bollinger Band") plot(basis, color=color.purple, title="Middle Bollinger Band") plot(lower_band, color=color.blue, title="Lower Bollinger Band") // Kaufregel if (upper_breakout_condition) strategy.entry("Buy", strategy.long) // Verkaufsregel if (below_middle_band_condition) strategy.close("Buy")