ClucHAnix_BB_RPB_MOD Strategy Analysis
Strategy ID: #97 (465 strategies, 97th)
Strategy Type: Multi-Condition Trend Following + Bollinger Band Mean Reversion + Custom Dynamic Stop-Loss
Timeframe: 1 Minute (1m) + 1-Hour/1-Day Informational Layer
I. Strategy Overview
ClucHAnix_BB_RPB_MOD is a complex trend-following strategy based on Heikin Ashi (HA) candlesticks and Bollinger Band mean reversion principles. This strategy is an enhanced version of ClucHAnix, introducing a custom dynamic profit-taking and stop-loss mechanism derived from BB_RPB_TSL. The name "BB" stands for Bollinger Bands, "RPB" for custom dynamic profit-taking module, and "MOD" indicates a modified version.
Core Features
| Feature | Description |
|---|---|
| Entry Conditions | 8 independent entry signals (7 independently enable/disable), all require base protection filtering |
| Exit Conditions | 1 base exit signal + multi-layer dynamic profit-taking/stop-loss system (BB_RPB_TSL style) |
| Protection Mechanisms | 2 sets of entry protection parameters (BTC trend protection + Pump intensity protection) |
| Timeframe | Primary 1m + Informational 1h and 1d |
| Dependencies | technical, pandas_ta, talib, numpy, pandas, qtpylib |
II. Strategy Configuration Analysis
2.1 Core Risk Parameters
# ROI Exit Table
minimal_roi = {
"0": 0.10, # Immediate exit at 10% profit
"60": 0.07, # Profit drops to 7% after 1 minute
"120": 0.05, # Profit drops to 5% after 2 minutes
"240": 0.03, # Profit drops to 3% after 4 minutes
}
# Stop Loss
stoploss = -0.10 # Base stop-loss line -10%
# Trailing Stop
trailing_stop = True
trailing_stop_positive = 0.001 # Activates trailing after 0.1% profit
trailing_stop_positive_offset = 0.012 # Trailing stop distance from current price 1.2%
trailing_only_offset_is_reached = False
Design Philosophy:
- ROI Table Design: Front-heavy gradient — initially expects high profit (10%), gradually lowers to only 3% at 4 minutes. Captures short-term volatility while leaving room for trend continuation.
- Stop Loss Design: Base stop loss at -10%, combined with the two-tier dynamic profit-taking/stop-loss mechanism in custom_stoploss.
2.2 Order Type Configuration
order_types = {
'buy': 'market',
'sell': 'market',
'emergencysell': 'market',
'forcebuy': "market",
'forcesell': 'market',
'stoploss': 'market',
'stoploss_on_exchange': False,
'stoploss_on_exchange_interval': 60,
'stoploss_on_exchange_limit_ratio': 0.99
}
2.3 Custom Stop-Loss Parameters (BB_RPB_TSL Mechanism)
# Hard stop-loss line
pHSL = DecimalParameter(-0.500, -0.040, default=-0.08)
# Profit threshold range 1
pPF_1 = DecimalParameter(0.008, 0.020, default=0.016) # Trigger point
pSL_1 = DecimalParameter(0.008, 0.020, default=0.011) # Corresponding stop-loss line
# Profit threshold range 2
pPF_2 = DecimalParameter(0.040, 0.100, default=0.080) # Trigger point
pSL_2 = DecimalParameter(0.020, 0.070, default=0.040) # Corresponding stop-loss line
Design Philosophy:
- When profit > 1.6%, first-tier protection activates, stop line moves to 1.1%
- When profit > 8%, second-tier protection activates, stop line moves to 4%
- When profit > 8%, stop line moves linearly upward with profit growth, implementing "let profits run"
III. Entry Conditions Details
3.1 Protection Mechanisms (2 Sets)
Each entry condition is equipped with independent protection parameter sets:
| Protection Type | Parameter Description | Default Value |
|---|---|---|
| BTC trend protection | BTC 1-day vs 1-minute price change rate must exceed threshold | > -0.311 |
| Pump intensity protection | Pump intensity indicator must be below threshold (prevents chasing) | < 0.133 |
Implementation Logic:
- BTC Protection: By comparing BTC/USDT 1-day and 1-minute price change rates, determines overall market trend. Only when BTC is in uptrend or relatively stable are long positions allowed.
- Pump Protection: Calculates Pump intensity through ZEMA indicator; when market rapidly rises, reduces buy priority to avoid chasing and getting caught.
3.2 Entry Condition Details
8 independent entry conditions, 7 can be independently enabled/disabled via boolean parameters.
Condition #1: Lambo1
# Logic
- lambo1_enabled = True (disabled by default)
- close < ema_14 * 1.054 (price below EMA14's 105.4%)
- rsi_4 < 18 (4-period RSI in oversold zone)
- rsi_14 < 26 (14-period RSI in relatively low zone)
Condition #2: Lambo2
# Logic
- lambo2_enabled = True (enabled by default)
- close < ema_14 * 0.981 (price below EMA14's 98.1%)
- rsi_4 < 44 (4-period RSI in oversold zone)
- rsi_14 < 39 (14-period RSI in relatively low zone)
Condition #3: Local Uptrend
# Logic
- local_trend_enabled = True (enabled by default)
- ema_26 > ema_14 (short-term MA above mid-term MA, forming uptrend)
- ema_26 - ema_14 > open * 0.125 (MA divergence must reach threshold)
- close < bb_lowerband2 * 0.823 (price touches or nears lower Bollinger Band)
- closedelta > close * 19.253 / 1000 (close price change must be significant)
Condition #4: NFI32
# Logic
- nfi32_enabled = True (enabled by default)
- rsi_20 < rsi_20.shift(1) (RSI in downtrend)
- rsi_4 < 49 (4-period RSI in oversold zone)
- rsi_14 > 15 (14-period RSI in relatively high zone)
- close < sma_15 * 0.93391 (price below SMA15's 93.4%)
- cti < -1.09639 (CTI indicator below threshold, indicating weak price action)
Condition #5: EWO1 (Elliott Wave Oscillator High)
# Logic
- ewo_1_enabled = False (disabled by default)
- rsi_4 < 7 (4-period RSI extremely oversold)
- close < ema(buy) * 1.04116 (price below buy EMA)
- EWO > 5.249 (EWO indicator at high level, indicating strong uptrend)
- rsi_14 < 45 (14-period RSI in relatively low zone)
- close < ema(sell) * 1.04116 (price below sell EMA)
Condition #6: EWO Low (Elliott Wave Oscillator Low)
# Logic
- ewo_low_enabled = True (enabled by default)
- rsi_4 < 35 (4-period RSI in oversold zone)
- close < ema(buy) * 0.97463 (price below buy EMA)
- EWO < -11.424 (EWO indicator at low level, indicating rebound opportunity in downtrend)
- close < ema(sell) * 1.04116 (price below sell EMA)
Condition #7: Cofi
# Logic
- cofi_enabled = False (disabled by default)
- open < ema_8 * 0.639 (open price below EMA8's 63.9%)
- fastk crosses above fastd (stochastic golden cross)
- fastk < 13 (fast line at low level)
- fastd < 40 (slow line at relatively low level)
- adx > 8 (ADX shows clear trend)
- EWO > 5.6 (EWO indicator at high level)
Condition #8: ClucHA
# Logic
- clucha_enabled = False (disabled by default)
- rocr_1h > 0.41663 (1-hour ROC shows uptrend)
- Condition Group A:
* bbdelta > ha_close * 0.04796 (Bollinger Band width meets standard)
* ha_closedelta > ha_close * 0.00931 (HA close price change significant)
* tail < bbdelta * 0.93112 (lower wick relatively short)
* ha_close < lower.shift() (HA close breaks below lower band)
* ha_close <= ha_close.shift() (HA close in downtrend)
- OR Condition Group B:
* ha_close < ema_slow (price below long-term MA)
* ha_close < bb_lowerband * 0.01645 (price touches lower band)
3.3 Entry Condition Classification
| Condition Group | Condition | Core Logic | Status |
|---|---|---|---|
| RSI Oversold | lambo1, lambo2 | Multi-period RSI identifies oversold rebound | lambo1 disabled, lambo2 enabled |
| Trend Confirmation | local_uptrend | MA bullish + lower band support | Enabled |
| Comprehensive | nfi_32 | RSI divergence + CTI weak trend | Enabled |
| Volatility Breakout | ewo_1, ewo_low | EWO extreme + RSI oversold | ewo_1 disabled, ewo_low enabled |
| Stochastic | cofi | Stochastic golden cross + trend confirmation | Disabled |
| Bollinger Regression | clucHA | HA candles + Bollinger Band mean reversion | Disabled |
IV. Exit Logic Details
4.1 Multi-Layer Profit-Taking System (BB_RPB_TSL Mechanism)
Strategy uses segmented dynamic profit-taking/stop-loss, automatically adjusting stop line based on current profit level:
Profit Range Stop-Loss Strategy
──────────────────────────────────────────────────────
Profit < 1.6% Uses hard stop pHSL = -8%
1.6% ≤ Profit < 8% Linear interpolation: from -1.1% to -4%
Profit ≥ 8% Stop line moves up: let profits run
Dynamic Stop-Loss Calculation Formula:
if current_profit > PF_2: # profit > 8%
sl_profit = SL_2 + (current_profit - PF_2)
elif current_profit > PF_1: # 1.6% ≤ profit < 8%
sl_profit = SL_1 + ((current_profit - PF_1) * (SL_2 - SL_1) / (PF_2 - PF_1))
else: # profit < 1.6%
sl_profit = HSL
4.2 Base Exit Signal (1 Total)
# Exit signal: Fisher indicator reversal
- fisher > 0.38414 (Fisher indicator above threshold)
- ha_high ≤ ha_high.shift(1) (HA highest price in downtrend)
- ha_high.shift(1) ≤ ha_high.shift(2) (Highest price declining for 2 consecutive candles)
- ha_close ≤ ha_close.shift(1) (HA close in downtrend)
- ema_fast > ha_close (fast MA above price, trend weakening)
- ha_close * 1.07634 > bb_middleband (price touches Bollinger middle band)
- volume > 0 (volume support)
V. Technical Indicator System
5.1 Core Indicators
| Indicator Category | Specific Indicators | Purpose |
|---|---|---|
| Trend Indicators | EMA 8/14/26, SMA 15 | Determine price trend direction |
| Momentum Indicators | RSI 4/14/20, ROCR, Fisher | Identify overbought/oversold and momentum changes |
| Volatility Indicators | Bollinger Bands (20, 40 period), CTI | Determine price volatility and support/resistance |
| Wave Indicators | EWO (Elliott Wave Oscillator) | Identify trend strength and turning points |
| Stochastic Indicators | Stoch FastK/FastD | Determine short-term overbought/oversold |
5.2 Informational Timeframe Indicators (1h + 1d)
-
1-hour informational layer:
- Heikin Ashi close
- ROCR (Rate of Change) 168-period — reflects long-term momentum
-
1-day informational layer:
- BTC/USDT close — for BTC trend protection
-
BTC protection indicator:
- BTC 1-day vs 1-minute price change rate — determines overall market trend
5.3 Custom Indicators
| Indicator | Formula | Purpose |
|---|---|---|
| Pump intensity | (ZEMA_30 - ZEMA_200) / ZEMA_30 | Identify market Pump intensity |
| HA Candlestick | qtpylib.heikinashi() | Smooth price fluctuations, clearer trend identification |
VI. Risk Management Highlights
6.1 Multi-Layer Dynamic Profit-Taking/Stop-Loss
BB_RPB_TSL mechanism is the core risk management feature:
| Profit Range | Stop-Loss Strategy | Protection Goal |
|---|---|---|
| Profit < 1.6% | Hard stop -8% | Limit maximum loss |
| 1.6% ≤ Profit < 8% | Dynamic move 1.1%→4% | Protect realized profits |
| Profit ≥ 8% | Trailing stop | Let profits run |
6.2 Entry Conditions Independently Enable/Disable
Strategy provides 7 boolean parameters for flexible market adaptation:
ewo_1_enabled = BooleanParameter(default=False) # EWO high condition
ewo_low_enabled = BooleanParameter(default=True) # EWO low condition
cofi_enabled = BooleanParameter(default=False) # Cofi condition
lambo1_enabled = BooleanParameter(default=False) # Lambo1 condition
lambo2_enabled = BooleanParameter(default=True) # Lambo2 condition
local_trend_enabled = BooleanParameter(default=True) # Local trend condition
nfi32_enabled = BooleanParameter(default=True) # NFI32 condition
clucha_enabled = BooleanParameter(default=False) # ClucHA condition
6.3 Market Environment Protection
- BTC trend protection: Reduces buy signals when BTC is in downtrend
- Pump intensity protection: Reduces buy priority when market rapidly rises
VII. Strategy Pros & Cons
Pros
- Multi-condition parallel: 8 independent entry conditions cover various market patterns
- Dynamic profit-taking/stop-loss: BB_RPB_TSL mechanism protects profits while letting them run
- Self-adapting market: Through BTC and Pump protection, adapts to different market environments
- Conditions configurable: Each entry condition independently enable/disable, flexibly responds to market changes
Cons
- Many parameters: 40+ parameters, high optimization difficulty
- 1-minute timeframe: High-frequency trading demands high hardware and network
- Overfitting risk: Multi-condition strategies easily overfit on historical data
- High computation: Multi-indicator calculation may cause trading delays
VIII. Applicable Scenarios
| Market Environment | Recommended Configuration | Description |
|---|---|---|
| Volatile markets | Enable lambo2, local_uptrend, nfi32, ewo_low | Capture oversold rebounds and trend continuation |
| Trending markets | Enable clucHA + extend ROI time | Let profits run |
| Ranging markets | Close all conditions, retain base protection only | Reduce frequent trading |
| BTC rising | Enable BTC protection | Follow the trend |
IX. Applicable Market Environment Details
ClucHAnix_BB_RPB_MOD is the Bollinger Band mean reversion + dynamic profit-taking/stop-loss version of the Cluc series. Based on its architecture, it performs best in moderately volatile trending markets and should be used cautiously in extreme markets.
9.1 Core Strategy Logic
- Multi-condition trend following: 8 independent entry conditions capture various entry patterns
- Bollinger Band mean reversion: Find rebound opportunities when price touches lower band
- Dynamic profit-taking/stop-loss: BB_RPB_TSL mechanism auto-adjusts protection based on profit level
- Market environment filtering: BTC and Pump protection avoid trading in unfavorable environments
9.2 Performance in Different Market Environments
| Market Type | Rating | Analysis |
|---|---|---|
| Trending up | Excellent | Multi-conditions capture trend start points, dynamic profit-taking lets profits run |
| Ranging consolidation | Good | RSI oversold conditions capture range boundaries, ROI table suits short-term volatility |
| Trending down | Poor | BTC protection filters some declines, but 1m framework hard to resist big trends |
| Extreme volatility | Poor | Pump protection reduces chasing, but many parameters require caution |
9.3 Key Configuration Recommendations
| Configuration | Recommended Value | Description |
|---|---|---|
| max_open_trades | 3-5 | Adjust based on capital, avoid too many simultaneous positions |
| ROI table | Default | Already optimized for 1m framework |
| Custom stop-loss | Default | Already optimized for moderate volatility |
X. Important Reminder: The Cost of Complexity
10.1 Learning Curve
This strategy has many parameters and requires deep understanding of each indicator's meaning and interactions. Start with default parameters and adjust gradually.
10.2 Hardware Requirements
| Number of Pairs | Minimum RAM | Recommended RAM |
|---|---|---|
| 5-10 pairs | 2 GB | 4 GB |
| 20-30 pairs | 4 GB | 8 GB |
| 50+ pairs | 8 GB | 16 GB |
Note: 1-minute framework + multi-indicator calculation demands CPU. Ensure VPS performance is sufficient.
10.3 Backtesting vs. Live Trading Differences
- 1-minute framework backtest vs. live differences may be significant
- Multi-condition combinations may cause signal delays
- Recommend small-capital live testing to verify
10.4 Manual Trader Recommendations
This strategy is unsuitable for manual trading. 8 entry conditions + multi-layer dynamic profit-taking/stop-loss make manual execution nearly impossible.
XI. Summary
ClucHAnix_BB_RPB_MOD is a highly complex trend-following strategy combining multi-condition entry, dynamic profit-taking/stop-loss, and market environment filtering. Its core value lies in:
- Multi-condition coverage: 8 independent entry conditions cover oversold rebounds, trend continuation, mean reversion, and more
- Intelligent profit-taking/stop-loss: BB_RPB_TSL mechanism auto-adjusts protection based on profit level
- Self-adapting: BTC and Pump protection help avoid unfavorable market environments
For quantitative traders, this strategy suits experienced traders who invest time understanding each parameter's meaning and conduct thorough backtesting and paper trading before live trading. Not recommended for newcomers.