Tags:

This strategy combines the Relative Strength Index (RSI) and Bollinger Bands to construct a short-term trading strategy. It mainly utilizes the buy and sell signals when RSI breaks through the upper or lower Bollinger Bands. Meanwhile, a stop loss mechanism is included to effectively control risks.

- Calculate the RSI indicator with a 14-period parameter.
- Calculate the Bollinger Midband using the weighted moving average of RSI, with a period set to 25.
- Calculate the Upper Band and Lower Band of Bollinger Bands. The Upper Band is the Midband plus the amplitude, while the Lower Band is the Midband minus the amplitude. The amplitude is set to 20 times the RSI standard deviation.
- Go long when RSI breaks through the Lower Band, and go short when RSI breaks through the Upper Band.
- Set a stop loss mechanism that if the price drops below 6% of the long entry price, close the long position.

This strategy combines the strengths of both RSI and Bollinger Bands for short-term trading. The main advantages are:

- RSI can effectively determine overbought and oversold scenarios. Combining Bollinger Bands adds accuracy to the trading signals.
- Bollinger Bands are dynamic to automatically adjust the range based on market volatility.
- The stop loss setting is reasonable with 6% tolerance for normal fluctuations while controlling losses.

Potential risks of this strategy includes:

- RSI has lagging characteristics and may miss fast reversal opportunities.
- Incorrect Bollinger Bands parameter or drastic market swings can cause bad signals.
- Stop loss parameter set unwisely may lead to unnecessary losses.

Solutions:

- Consider combining with other indicators like KDJ for comprehensive judgment.
- Dynamically optimize parameters for different markets.
- Backtest and optimize stop loss parameter for best setting.

There is room for further optimization:

- Change fixed stop loss to dynamic trailing stop loss according to price fluctuation.
- Add Bollinger Band Width Index rules to pause trading when Bands expand or contract too much.
- Combine volume indicators like Chaikin Money Flow for better confirmation.

In summary, this is a relatively stable and reliable short-term trading strategy. By combining the strengths of overbought-oversold judgment of RSI and the adaptive range of Bollinger Bands, it forms an advantageous short-term system. With parameter tuning and logic refinement, this strategy can achieve consistent profits.

/*backtest start: 2022-12-12 00:00:00 end: 2023-10-13 00:00:00 period: 1d basePeriod: 1h exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}] */ //@version=3 strategy("rsi+bb st", shorttitle="rsibb st 0.3") len_rsi=input(14) len_bb = input(25) mul10 = input(20.0) mul=mul10/10 sl100 = input(94.0, title='stop loss rate') sl=sl100/100 lw = 3 vwma_e(src, len) => ema(src*volume, len)/ema(volume,len) rsi = rsi(close, len_rsi) plot(rsi, color=blue, title= 'rsi blue', linewidth=lw) plot(70, color=gray, title='line 70', linewidth=lw) plot(30, color=gray, title='line 30', linewidth=lw) bbg = stdev(rsi, len_bb)*mul bbc = vwma_e(rsi, len_bb) //bbc=ema(rsi,len_bb) ratio = 0.6 bbc := bbc*ratio + 50*(1-ratio) bbu = bbc+bbg bbl = bbc-bbg plot(bbu, color=green, title='bb_up green', linewidth=lw) plot(bbl, color=red, title='bb_low red', linewidth=lw) plot(bbc, color=#808000ff, title='bb center', linewidth=lw) plot(50, color=black) lc = crossover(rsi, bbl) //or crossover(rsi, bbc) sc = crossunder(rsi, bbu) last_pos = 0*close if lc last_pos := 1 else last_pos := last_pos[1] if sc last_pos := 2 last_price = 0*close if last_pos[1] !=1 and last_pos == 1 last_price := close else last_price := last_price[1] if last_pos==1 and close < last_price*sl lc:=false sc:=true last_pos:=2 if (lc) strategy.entry("long", strategy.long) if (sc) strategy.entry("short", strategy.short)

- Dynamic Re-entry Buy-only Strategy
- The Solid as a Rock VIP Quant Strategy
- Golden Cross Optimized Moving Average Crossover Trading Strategy
- Crossing Moving Average Strategy
- The Wave Trend Trading Strategy Based on LazyBear
- Eight Day Extended Run Strategy
- Moving Average Pullback Strategy
- Dynamic MA Crossover Trend Following Strategy
- Stochastic Moving Average Strategy
- Momentum Oscillation Crossing Bollinger Bands with Moving Average Strategy
- Super Trend Tracking Stop Loss Strategy
- MACD Trend Following Intraday Strategy
- Dual Factor Mean Reversion Tracking Strategy
- Trend Tracking Strategy Based on Multi-factor Model with Adaptive Trailing Stoploss
- Multi-indicator Combination Adaptive Trend Strategy
- Candlestick Patterns Trading Strategy
- SMA Offset Fluctuation Trading Strategy
- Strategy Based on 5-10-20 Day EMA Crossover Using Super Trend Confirmation
- Momentum Breakthrough Moving Average Trading Strategy
- MACD and RSI Based Trend Following Reversal Strategy