Skip to main content

BBlower Strategy In-Depth Analysis

Strategy Number: #457 (457th out of 465 strategies)
Strategy Type: Bollinger Band Reversal + RSI Momentum Confirmation
Timeframe: 5 minutes (5m)


1. Strategy Overview

BBlower is a trading strategy based on Bollinger Band lower band rebounds, combining RSI momentum confirmation and TEMA (Triple Exponential Moving Average) crossover signals. The core logic is to seek reversal opportunities when price touches the Bollinger Band lower band, while confirming momentum strength through consecutive RSI increases.

Core Features

FeatureDescription
Buy Conditions1 composite buy signal (consecutive RSI increase + TEMA突破 Bollinger Band lower band)
Sell ConditionsNo active sell signals, relies on ROI table and trailing stop
Protection MechanismsTrailing stop + tiered ROI profit-taking
Timeframe5m (main timeframe)
Dependenciestalib.abstract, qtpylib.indicators

2. Strategy Configuration Analysis

2.1 Base Risk Parameters

# ROI Exit Table
minimal_roi = {
"0": 0.32477, # Immediate profit-taking at 32.477%
"220": 0.13561, # After 220 minutes, reduce to 13.561%
"962": 0.10732, # After 962 minutes, reduce to 10.732%
"2115": 0 # Must sell after 2115 minutes
}

# Stop Loss Settings
stoploss = -0.13912 # Fixed stop loss at -13.912%

# Trailing Stop
trailing_stop = True
trailing_stop_positive = 0.29846 # Activate trailing after 29.846% profit
trailing_stop_positive_offset = 0.30425 # Trailing offset 30.425%
trailing_only_offset_is_reached = True

Design Rationale:

  • ROI settings are relatively aggressive, with initial profit-taking point as high as 32.477%, indicating the strategy expects to capture large movements
  • Trailing stop parameters are cleverly designed: trailing only activates after profit exceeds 30.425%, with a trailing幅度 of 29.846%
  • Stop loss at -13.912% works with trailing profit parameters to form a "let profits run" risk control logic

2.2 Order Type Configuration

# This strategy does not explicitly configure order_types
# Uses default configuration
use_sell_signal = True
sell_profit_only = True
ignore_roi_if_buy_signal = False

3. Buy Conditions Detailed

3.1 Core Buy Logic

The strategy uses composite buy conditions, all of the following sub-conditions must be met simultaneously:

dataframe.loc[
(
(dataframe['RSI'] > dataframe['RSI'].shift(1)) # RSI > previous candle RSI
&
(dataframe['RSI'].shift(1) > dataframe['RSI'].shift(2)) # Previous RSI > two candles ago
&
(dataframe['RSI'].shift(2) > dataframe['RSI'].shift(3)) # Consecutive comparison
&
(dataframe['RSI'].shift(3) > dataframe['RSI'].shift(4)) # Form consecutive increase
&
(dataframe['RSI'] < 50) # RSI in oversold region
&
(qtpylib.crossed_above(
dataframe['TEMA'], dataframe['bb_lowerbandTA1']
)) # TEMA crosses above Bollinger Band lower band
),
'buy'] = 1

3.2 Buy Conditions Breakdown

Condition #Condition DescriptionLogical Meaning
1RSI > RSI.shift(1)Current RSI greater than previous candle's RSI
2RSI.shift(1) > RSI.shift(2)Previous RSI greater than two candles ago
3RSI.shift(2) > RSI.shift(3)Three consecutive candles with increasing RSI
4RSI.shift(3) > RSI.shift(4)Four consecutive candles with increasing RSI
5RSI < 50RSI still in neutral-to-lower region
6TEMA crosses above bb_lowerbandTA1Price rebounds from Bollinger Band lower band

3.3 Buy Signal Interpretation

This buy condition design is very strict, requiring:

  1. RSI Momentum Confirmation: Consecutive 4 candles with increasing RSI indicates bullish momentum is accumulating
  2. Oversold Region Entry: RSI < 50 ensures not chasing highs, but entering at relatively low positions
  3. Price Reversal Confirmation: TEMA crosses above Bollinger Band lower band (1 standard deviation), confirming price rebound from lower band

This combination logic avoids false breakouts: price touching the lower band alone is not enough; there must be RSI consecutive increase momentum confirmation.


4. Sell Logic Detailed

4.1 Passive Sell Mechanism

# Sell signal logic is empty
dataframe.loc[
(
# No conditions
),
'sell'] = 1

The strategy has no active sell signal logic, relying entirely on the following exit mechanisms:

4.2 Tiered Profit-Taking Table

Time (minutes)    Target Profit    Description
────────────────────────────────────────────────
0 32.477% Trigger immediately
220 13.561% Reduce to after 3 hours 40 minutes
962 10.732% Reduce to after 16 hours
2115 0% Forced liquidation after 35 hours

4.3 Trailing Stop Mechanism

ParameterValueDescription
trailing_stopTrueEnable trailing stop
trailing_stop_positive0.29846Trailing幅度 29.846%
trailing_stop_positive_offset0.30425Activate after 30.425% profit
trailing_only_offset_is_reachedTrueOnly activate when offset is reached

Logic Interpretation:

  • Trailing stop only activates after profit exceeds 30.425%
  • Trailing stop幅度 is 29.846%, meaning maximum drawdown after activation is about 0.6%
  • This is a "lock in huge profits" design, rather than ordinary stop loss protection

5. Technical Indicator System

5.1 Core Indicators

Indicator CategorySpecific IndicatorUsage
Momentum IndicatorRSI(25)RSI consecutive increase confirmation
Trend IndicatorTEMA(50)Price trend tracking
Volatility IndicatorBB(25, 1σ/2σ/3σ/4σ)Oversold/overbought region judgment

5.2 Bollinger Band System

The strategy calculates 4 groups of Bollinger Bands with different standard deviations:

Bollinger Band GroupPeriodStandard DeviationUsage
bb_lowerbandTA1251.0Buy signal trigger
bb_lowerbandTA2252.0Backup (not used)
bb_lowerbandTA3253.0Backup (not used)
bb_lowerbandTA4254.0Backup (not used)

Note: Although 4 groups of Bollinger Bands are calculated, buy signals only use the 1σ lower band.

5.3 Informative Timeframe Indicators

The strategy uses informative_pairs to get quote currency pair USDT market data:

def informative_pairs(self):
return [(f"{self.config['stake_currency']}/USDT", self.timeframe)]

This is used to reference the quote currency's trend relative to USDT, but this data is not actually used in the current code.


6. Risk Management Features

6.1 Dual Risk Control System

MechanismTrigger ConditionProtection Effect
Fixed Stop LossLoss reaches 13.912%Limit maximum loss
ROI Profit-TakingHolding time + profit rateTiered profit locking
Trailing StopProfit exceeds 30.425%Lock in huge profits

6.2 Time Protection Mechanism

  • Maximum holding time: 2115 minutes (approximately 35 hours)
  • Tiered ROI design ensures no infinite holding

6.3 Signal Quality Control

use_sell_signal = True
sell_profit_only = True # Only respond to sell signals when profitable

7. Strategy Advantages and Limitations

✅ Advantages

  1. Strict Entry Conditions: RSI consecutive 4 candles increase + price rebound from Bollinger Band lower band, dual confirmation reduces false signals
  2. Momentum Confirmation Mechanism: Does not rely solely on price position, but requires momentum to strengthen
  3. Oversold Region Entry: RSI < 50 ensures buying at relatively low positions
  4. Trailing Stop Design: Activates after 30%+ profit, suitable for capturing large trends

⚠️ Limitations

  1. Buy conditions too strict: The requirement of consecutive 4 candles RSI increase may miss many opportunities
  2. No active sell signals: Completely relies on ROI and stop loss, lacks trend reversal exit mechanism
  3. Trailing stop parameters aggressive: 30%+ profit threshold is difficult to achieve for most trades
  4. Computing resource waste: Calculates 4 groups of Bollinger Bands but only uses 1 group

8. Applicable Scenario Recommendations

Market EnvironmentRecommended ConfigurationDescription
Volatile ranging marketDefault configurationBollinger Band lower band rebound strategy suitable for ranging markets
Clear trend marketUse with cautionCounter-trend bottom fishing may lead to continuous losses
Low volatility sidewaysNot recommendedVery few signals, low capital efficiency
High volatility reboundEnable trailing stopUse trailing stop to capture large rebounds

9. Applicable Market Environment Detailed

BBlower is a Bollinger Band reversal strategy. Based on its code architecture, it is most suitable for capturing oversold rebounds in ranging markets, and performs poorly in strong trend markets.

9.1 Strategy Core Logic

  • Bottom fishing mentality: Seek rebound opportunities when price touches Bollinger Band lower band
  • Momentum confirmation: Confirm buying power through consecutive RSI increases
  • Non-chasing strategy: RSI < 50 ensures not entering at high positions

9.2 Performance in Different Market Environments

Market TypePerformance RatingReason Analysis
📈 Slow bull trend⭐⭐☆☆☆Strategy counter-trend bottom fishing, may miss main trend wave
🔄 Ranging market⭐⭐⭐⭐⭐Ideal environment, best effect for capturing lower band rebounds
📉 Downtrend⭐☆☆☆☆Bottom fishing may catch falling knives
⚡️ High volatility⭐⭐⭐☆☆Signals increase but stop loss risk also increases

9.3 Key Configuration Recommendations

ConfigurationRecommended ValueDescription
timeframe5mDefault timeframe
stoploss-0.10 ~ -0.15Adjust according to risk preference
minimal_roiOptimize adjustmentDefault ROI is too high, recommend testing adjustment

10. Important Reminder: The Cost of Complexity

10.1 Learning Cost

  • Understand Bollinger Bands, RSI, TEMA indicator principles
  • Master consecutive momentum confirmation logic
  • Familiarize with trailing stop mechanism

10.2 Hardware Requirements

Number of Trading PairsMinimum MemoryRecommended Memory
1-5 pairs2GB4GB
5-20 pairs4GB8GB
20+ pairs8GB16GB

10.3 Differences Between Backtesting and Live Trading

  • Backtesting may show the strategy captures many rebound opportunities
  • In live trading, strict entry conditions may lead to scarce signals
  • The 30% threshold for trailing stop is rarely triggered in live trading

10.4 Manual Trader Recommendations

  • Can reference the combination logic of consecutive RSI increase + Bollinger Band lower band rebound
  • Note RSI < 50 restriction to avoid chasing highs
  • Consider adding active sell signals

11. Summary

BBlower is a conservative Bollinger Band reversal strategy. Its core value lies in:

  1. Strict Entry: RSI consecutive increase + oversold region + price rebound, triple confirmation
  2. Complete Risk Control: Fixed stop loss + ROI profit-taking + trailing stop triple protection
  3. Adjustable Parameters: Bollinger Band standard deviation, RSI period can all be optimized

For quantitative traders, it is recommended to:

  • Test use in ranging markets
  • Consider reducing trailing stop threshold
  • Add trend filtering or active sell signals to improve capital efficiency