Type/to search

Bollinger Bands and RSI Combination Strategy

Common strategy
Created: 2024-01-30 15:15:32
Last modified: 3 years ago
1
Follow
1802
Followers

img

Overview

This strategy combines Bollinger Bands and Relative Strength Index (RSI) to identify opportunities when Bollinger Bands are squeezing and RSI is rising, with trailing stop loss to control risks.

Strategy Logic

The core logic of this strategy is to identify Bollinger Bands squeeze and predict price breakout when RSI is in uptrend. Specifically, when 20-period BB middle band standard deviation is less than ATR*2, we determine BB squeeze happening; meanwhile, if both 10 and 14 period RSI are rising, we predict prices may break above BB upper band soon and go long.

After entering the market, we use ATR safety distance + adaptive stop loss to lock profit and manage risks. Positions will be closed when price hits stop loss or RSI becomes overbought (14-period RSI above 70 and 10-period RSI exceeds 14).

Advantage Analysis

The biggest advantage of this strategy is to identify consolidation period with BB squeeze and predict breakout direction with RSI. Also, using adaptive stop loss based on market volatility rather than fixed stop loss can better lock profit while controlling risk.

Risk Analysis

The major risk of this strategy is misidentification of BB squeeze and RSI uptrend, which may lead to false breakout. Besides, adaptive stop loss may fail to close positions timely during high volatility. Improving stop loss methods like curve stop loss can mitigate this risk.

Optimization Guidelines

This strategy can be further optimized in the following aspects:

  1. Improve BB parameters to identify squeeze more accurately

  2. Test different values for RSI periods

  3. Examine other stop loss techniques like curve SL or back-looking SL

  4. Adjust parameters based on symbol characteristics

Conclusion

This strategy leverages the complementarity of BB and RSI to achieve good risk-adjusted returns. Further optimizations on aspects like stop loss and parameter tuning can make it fit better for different trading instruments.

Source
Pine
/*backtest
start: 2023-12-01 00:00:00
end: 2023-12-31 23:59:59
period: 1h
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/

// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © DojiEmoji
// 
Strategy parameters
Strategy parameters
Backtest Start Time
Define backtest end-time (If false, will test up to most recent candle)
Backtest End Time (if checked above)
No. of candles to lookback when determining ATR is decreasing
[Exit] RSI(14) value considered as overbought
Comment
All comments (0)
No data
No data
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)