Type/to search

Bollinger Bands and RSI indicators strategy

Cryptocurrency
Created: 2023-10-25 14:47:21
Last modified: 3 years ago
1
Follow
1781
Followers

img

Overview

This strategy mainly combines Bollinger Bands and RSI indicators to judge trading signals, which is a typical frankenstein strategy. It integrates the advantages of different indicators by judging the trend direction through Bollinger Bands and detecting overbought and oversold situations through RSI to make entries and stop-loss exits.

Strategy Principle

  1. Use the middle band, upper band and lower band of Bollinger Bands to judge the current price trend. When the price breaks through the upper band, it is considered a bullish trend. When it breaks through the lower band, it is considered a bearish trend.

  2. The width of Bollinger Bands (difference between upper and lower bands) can reflect the current market volatility. When the width increases, it means volatility increases and RSI can better detect overbought and oversold situations.

  3. The RSI indicator judges overbought and oversold situations. Above 70 is the overbought zone and below 30 is the oversold zone. Avoid entering in overbought and oversold zones to obtain better risk-reward ratios.

  4. Specific trading signals:
    (1) Bullish signal: Price breaks through the upper band and RSI is not overbought (RSI less than 70)
    (2) Bearish signal: Price breaks through the lower band and RSI is not oversold (RSI greater than 30)

  5. Stop loss: For long trades, stop loss when RSI breaks below 70. For short trades, stop loss when RSI breaks above 30.

Advantage Analysis

The advantages of this strategy are:

  1. Integrating multiple indicators provides more comprehensive information and reliable signals.

  2. Using Bollinger Bands to determine the overall trend catches the big moves.

  3. The RSI indicator further avoids unnecessary risks by detecting local overbought and oversold levels.

  4. The stop loss mechanism is quite strict, which helps reduce losses.

Risk Analysis

This strategy also has the following risks:

  1. Both Bollinger Bands and RSI may fail, resulting in wrong trading signals.

  2. Although having a stop loss, improper stop loss points can still lead to major losses.

  3. Too frequent trading increases transaction costs and slippage.

  4. Improper optimization of parameters may lead to overfitting.

Optimization Directions

This strategy can be optimized in the following aspects:

  1. Test different parameter combinations to find the optimal parameters.

  2. Increase flexibility of stop loss methods, such as ADDR/ATR stop loss, trailing stop loss etc.

  3. Add position sizing strategies, such as fixed fraction, Martingale etc.

  4. Incorporate more indicators to filter signals, such as volume etc.

  5. Use machine learning for adaptive parameter optimization.

  6. Optimize entry timing, wait for confirmation signals before entering.

Conclusion

In summary, this is a typical frankenstein strategy combining multiple indicators. It integrates the advantages of Bollinger Bands and RSI to catch trends while avoiding overbought and oversold risks. With proper parameter optimization and stop loss management, good results can be achieved. But it also has some risks and needs further optimization to improve stability. Overall, the strategy idea is reasonable and has great room for improvement.

Source
Pine
/*backtest
start: 2023-09-24 00:00:00
end: 2023-10-24 00:00:00
period: 2h
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/
// © evillalobos1123

//@version=5
Strategy parameters
Strategy parameters
Strategy Inputs
Use Simple EMA Filter
Use DEMA Angle Filter
Use DEMA Filter
Take Every Supertrend Signal
Stop Loss at Supertrend
2 Steps Take Profit
Move SL
Stop Loss ATR Multiplier
Take Profit ATR Multiplier
2 Steps TP qty%
DEMA Angle Threshold (+ & -)
DEMA Angle Lookback
Testing
BT Date Range
Backtesting start year
Backtesting start month
Backtesting start day
Backtesting end year
Backtesting end month
Backtesting end day
FT Date Range
Forwardtesting start year
Forwardtesting start month
Forwardtesting start day
Forwardtesting end year
Forwardtesting end month
Forwardtesting end day
Pivot Supertrend
PVT ST Pivot Point Period
PVT ST ATR Factor
PVT ST ATR Period
D-EMAs
DEMA Len
D-EMAs Source
EMA 1 Len
EMA 2 Len
EMA 3 Len
Normal Supertrend
ST ATR Period
ST Supertrend Source
ST ATR Multiplier
Comment
All comments (0)
No data
No data
  • 1
iPhone Download
Forums
PINE Language
© 2015 - ∞ INVENTOR PTE LTD (SG)