Bollinger Bands RSI Combination Strategy
The Bollinger Bands & RSI Combination Strategy is a technical analysis strategy that combines two popular technical indicators: Bollinger Bands and the Relative Strength Index (RSI), to make entry and exit decisions…

Strategy Overview
The Bollinger Bands & RSI Combination Strategy is a technical analysis strategy that combines two popular technical indicators: Bollinger Bands and the Relative Strength Index (RSI), to make entry and exit decisions in the market. The strategy uses price breakouts above or below the Bollinger Bands, along with overbought and oversold signals from the RSI, to identify trading opportunities.
Strategy Principles
The strategy employs two technical indicators to generate trading signals:
Bollinger Bands consist of three lines: the middle band (moving average), upper band (middle band plus standard deviations), and lower band (middle band minus standard deviations). Trading signals are generated when the price breaks through the upper or lower Bollinger Bands.
RSI measures the speed and magnitude of price movements by comparing the number of up days to down days over a period of time. RSI is used to filter the trading signals generated by the Bollinger Bands: long positions are only taken when the RSI is below the oversold level, and short positions are only taken when the RSI is above the overbought level.
Specifically, the trading signals of the strategy are as follows:
- Long Entry: When the price breaks down through the lower Bollinger Band and the RSI is below the oversold level, open a long position.
- Short Entry: When the price breaks up through the upper Bollinger Band and the RSI is above the overbought level, open a short position.
- Exit: Close the position when the price breaks through the opposite Bollinger Band.
Strategy Advantages
- Combines two widely used and recognized technical indicators, making the strategy logic simple and straightforward.
- Uses RSI to filter the trading signals generated by the Bollinger Bands, improving the quality of trading decisions and reducing misleading signals.
- Strategy parameters can be optimized according to different market characteristics and trading styles, providing some flexibility and adaptability.
Strategy Risks
- Like all trading strategies, this strategy may perform poorly in certain market environments, such as when trends are unclear or volatility is extremely low.
- The choice of strategy parameters has a significant impact on strategy performance, and inappropriate parameters may lead to a large number of false trading signals.
- The strategy does not consider fundamental factors of the market and relies entirely on price behavior, which may be ineffective in some event-driven market environments.
Optimization Directions
- Combine with other confirmation indicators, such as volume, trend indicators, etc., to further filter trading signals and improve signal quality.
- Introduce stop-loss and take-profit mechanisms to control single-trade risk and profit targets, improving the risk-return characteristics of the strategy.
- Optimize strategy parameters, such as the period and deviation multiplier of the Bollinger Bands, the period and overbought/oversold thresholds of the RSI, to find the parameter combination that best suits the current market.
- Consider performance in different market states, such as trending markets, oscillating markets, etc., and adopt different strategy parameters or rules for different markets.
Summary
The Bollinger Bands & RSI Combination Strategy is a simple and practical technical trading strategy that combines two classic indicators, Bollinger Bands and RSI, to generate relatively reliable trading signals. The strategy's advantage lies in its clear logic, ease of understanding and implementation, and the use of the RSI indicator to filter Bollinger Band signals, improving signal quality. However, the strategy also has some limitations, such as insufficient adaptability to market environments and lack of consideration for fundamental factors. Therefore, in practical application, it is necessary to optimize and improve the strategy according to specific market characteristics and trading styles, such as combining other technical indicators, introducing risk control measures, and optimizing parameter selection. Overall, the Bollinger Bands & RSI Combination Strategy provides technical traders with a reference trading idea and framework, but the success of the strategy depends on the trader's understanding of the market and accumulation of experience.
Parameters
| Name | Default | What it controls |
|---|---|---|
| v_input_int_1 | 20 | length |
| v_input_float_1 | 2 | mult |
| v_input_int_2 | 14 | rsi_length |
| v_input_int_3 | 30 | rsi_oversold |
| v_input_int_4 | 70 | rsi_overbought |
Source Pine Script
/*backtest
start: 2023-03-15 00:00:00
end: 2023-10-26 00:00:00
period: 1d
basePeriod: 1h
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version=5
strategy("Bollinger Bands & RSI Strategy", overlay=true)
// Bollinger Bands Parameters
source = close
length = input.int(20, minval=1)
mult = input.float(2.0, minval=0.001, maxval=50)
// RSI Parameters
rsi_length = input.int(14, minval=1)
rsi_oversold = input.int(30, minval=1, maxval=100)
rsi_overbought = input.int(70, minval=1, maxval=100)
// Strategy Entry
basis = ta.sma(source, length)
dev = mult * ta.stdev(source, length)
upper = basis + dev
lower = basis - dev
rsi = ta.rsi(source, rsi_length)
if (ta.crossover(source, lower) and rsi < rsi_oversold)
strategy.entry("BBandLE", strategy.long, comment="BBandLE")
else
strategy.cancel(id="BBandLE")
if (ta.crossunder(source, upper) and rsi > rsi_overbought)
strategy.entry("BBandSE", strategy.short, comment="BBandSE")
else
strategy.cancel(id="BBandSE")
Published by ChaoZhang on the FMZ strategy square · last modified 2024-03-15. Collected in the Quant Trading Vault. Unvalidated research: re-test with your own data and costs before trusting it.
Build this with AgenKit
A spec is not a trading system. Paste this into your coding agent and AgenKit runs a specialist team — architecture, test-first build, risk gates, review — with paper trading on by default.
/agenkit build a production-grade trading bot with a backtest engine, risk controls and paper trading by default from strategies/Bollinger-Bands-RSI-Combination-Strategy.md- npx agenkit install engineering-kit in your project
- Paste the command into your agent and approve each phase
- Get tests, backtest, risk controls and a paper-trading switch
Understand it first
Before you run this, read the lesson behind the idea and how to backtest it honestly. Specs like this one are the survivors of an unknown number of trials; deflate their results accordingly.
Related specs
- Bollinger Band Channel Breakout Trading StrategyPine Script · Breakout · 1d
- Bollinger Bands Dynamic Breakout StrategyPine Script · Breakout · 1h
- Cross boundary Dynamic Range Quantitative Trading Strategy Based on Bollinger BandsPine Script · Breakout · 3h
- EMA and Bollinger Bands Breakout StrategyPine Script · Breakout · 1h
- Momentum Breakout Moving Average StrategyPine Script · Breakout · 1d
- Momentum Breakout Trading Strategy 440964Pine Script · Breakout · 5m