Skip to main content

CombinedBinHAndClucV7 Strategy Analysis

Strategy Number: #118 (Batch 12, 118th Strategy) Strategy Type: Multi-Factor Mean Reversion · Oversold Rebound Strategy Timeframe: 5 Minutes (5m)


I. Strategy Overview

CombinedBinHAndClucV7 is a multi-factor mean reversion trading strategy that combines BinHV45 and ClucMay72018 signal logic to capture oversold rebound opportunities in sideways markets.

The core idea is: when price deviates from the lower Bollinger Band and shows a clear contracting pattern, it is identified as a potential mean reversion signal. Volume filtering and EMA200 trend judgment reduce false breakout probability.

V7's Core Upgrade over V6:

  • Take-profit raised from 2.2% to 2.5%, pursuing higher per-trade returns
  • Trailing stop activation raised from 3.0% to 3.5%, letting profits run further
  • Trailing stop pullback deepened from 1.5% to 2.0%, avoiding being shaken out
  • Exit signal changed from 7 to 8 consecutive candles breaking the upper rail
  • Time stop-loss refined: Smart time stop-loss based on profit state—loss-cutting trades exit faster, profitable trades held longer

II. Strategy Configuration Analysis

2.1 Basic Parameters

ParameterValueDescription
timeframe5m5-minute candles
minimal_roi{"0": 0.025}Take-profit at 2.5% cumulative return
stoploss-0.99Stop-loss nearly disabled (-99%)
use_exit_signalTrueEnable exit signal judgment
exit_profit_onlyTrueOnly sell in profitable state
exit_profit_offset0.001Only allow selling after profit exceeds 0.1%
ignore_roi_if_entry_signalTrueIgnore ROI limit when entry signal appears

2.2 Trailing Stop Configuration

ParameterValueDescription
trailing_stopTrueEnable trailing stop
trailing_only_offset_is_reachedTrueOnly activate trailing after profit reaches offset
trailing_stop_positive0.02Trailing stop distance 2.0%
trailing_stop_positive_offset0.035Activate trailing when profit reaches 3.5%

V7 Key Change: Trailing stop activation raised from V6's 3.0% to 3.5%, pullback depth deepened from 1.5% to 2.0%.


III. Entry Conditions Details

3.1 Condition One: BinHV45 Strategy (Rapid Sell-off Rebound)

(dataframe['lower'].shift().gt(0) &
dataframe['bbdelta'].gt(dataframe['close'] * 0.008) &
dataframe['closedelta'].gt(dataframe['close'] * 0.0175) &
dataframe['tail'].lt(dataframe['bbdelta'] * 0.25) &
dataframe['close'].lt(dataframe['lower'].shift()) &
dataframe['close'].le(dataframe['close'].shift()) &
(dataframe['volume'] > 0))

Combined Logic: Price drops rapidly and pierces the lower Bollinger Band with sufficient volatility and a short lower wick—typical oversold rebound pattern.

3.2 Condition Two: ClucMay72018 Strategy (Volume-Shrinking Oversold)

((dataframe['close'] < dataframe['ema_slow']) &
(dataframe['close'] < 0.985 * dataframe['bb_lowerband']) &
(dataframe['volume'] < (dataframe['volume_mean_slow'].shift(1) * 20)) &
(dataframe['volume'] > 0))

Combined Logic: In a downtrend, price rapidly breaks below the lower Bollinger Band, but volume does not expand—downward momentum is insufficient.

3.3 Condition Three: EMA200 Trend Confirmation (V7 Retained Filter)

(dataframe['close'] < dataframe['ema200'] * 1.05) &
(dataframe['volume'] > 0)

Combined Logic: Trend filter ensures price hasn't deviated significantly from EMA200, avoiding entry at extreme rally highs.

3.4 Entry Signal Trigger Rules

The three conditions have an OR relationship—meeting any one generates a buy signal.


IV. Exit Conditions Details

4.1 Take-Profit Logic

  • Take-profit triggers when cumulative return reaches 2.5%
  • exit_profit_only = True ensures selling only in profitable state

V7 Change: Take-profit raised from V6's 2.2% to 2.5%.

4.2 Trailing Stop Logic

When open profit reaches 3.5%, trailing stop activates:

  • Stop-loss line moves up, locking in at least 2.0% of profit

V7 Key Change: Activation raised from 3.0% to 3.5%, pullback tolerance deepened from 1.5% to 2.0%.

4.3 Exit Signal Conditions

(dataframe['close'] > dataframe['bb_upperband']) &
(dataframe['close'].shift(1) > dataframe['bb_upperband'].shift(1)) &
(dataframe['high'].shift(2) > dataframe['bb_upperband'].shift(2)) &
(dataframe['high'].shift(3) > dataframe['bb_upperband'].shift(3)) &
(dataframe['high'].shift(4) > dataframe['bb_upperband'].shift(4)) &
(dataframe['high'].shift(5) > dataframe['bb_upperband'].shift(5)) &
(dataframe['high'].shift(6) > dataframe['bb_upperband'].shift(6)) &
(dataframe['high'].shift(7) > dataframe['bb_upperband'].shift(7)) &
(dataframe['high'].shift(8) > dataframe['bb_upperband'].shift(8)) &
(dataframe['volume'] > 0)

V7 Change: Changed from 7 consecutive candles to 8 consecutive candles.

4.4 Smart Custom Stop-Loss Logic (V7 Exclusive)

def custom_stoploss(self, pair, trade, current_time, current_rate, current_profit, **kwargs):
if current_profit > 0:
# In profit state, time stop extended to 360 minutes
if (current_time - timedelta(minutes=360) > trade.open_date_utc) & (current_profit < 0.01):
return 0.01
else:
# In loss state, time stop shortened to 240 minutes
if (current_time - timedelta(minutes=240) > trade.open_date_utc):
return 0.01
return 0.99

V7 Special Handling:

  • If held for more than 240 minutes (4 hours) and still in loss, force market exit
  • If held for more than 360 minutes (6 hours) with profit less than 1%, also trigger stop
  • Purpose: stop-loss trades exit faster, profitable trades held longer

V. Risk Management Features

5.1 Multi-Layer Risk Control System

  1. Fixed Stop-Loss: -99% nearly disabled
  2. Smart Time Stop-Loss: Loss-cutting trades exit in 4 hours; profitable but <1% exits in 6 hours
  3. Trailing Stop: Activate 2.0% trailing when profit exceeds 3.5%
  4. Take-Profit Threshold: 2.5% cumulative return triggers automatic take-profit
  5. EMA200 Trend Filter: Ensures buying at reasonable trend levels

V7 Core Design: Further "loosening" on V6's foundation, introducing profit-state-aware smart time stop-loss—loss-cutting trades exit faster, profitable trades held longer.


VI. Strategy Pros & Cons

✅ Pros

  1. Three-Factor Complementarity: BinHV45 + ClucMay72018 + EMA200, broadest adaptability
  2. V7 Optimized Trend Space: Trailing stop at 3.5%, pullback depth 2.0%
  3. V7 Higher Take-Profit: From 2.2% to 2.5%
  4. V7 Stricter Exits: 8 consecutive candles before selling
  5. V7 Smart Time Stop-Loss: Dynamically adjusts based on profit state—loss-cutting faster, profitable held longer
  6. Clear Signals: Entry conditions specific and quantifiable

⚠️ Cons

  1. 5-Minute Period Noise: High-frequency trading generates frequent costs
  2. V7 More "Greedy": 2.5% take-profit harder to reach
  3. Volatility-Dependent: Mean reversion, performs limitedly in trending markets
  4. V7 Stricter Exits: 8 consecutive candles may miss optimal exit
  5. Loose Stop-Loss: -99% nearly disabled
  6. V7 Smart Time Stop-Loss Complexity: Requires more parameter tuning

VII. Summary

CombinedBinHAndClucV7 is a hybrid mean reversion strategy combining BinHV45 and ClucMay72018, retaining the EMA200 trend filter.

V7's Core Upgrades over V6:

  • Higher take-profit: 2.5% vs 2.2%
  • Looser trailing stop: 3.5% activation + 2.0% pullback
  • Stricter exits: 8 candles confirmation
  • Smart time stop-loss: Loss-cutting in 4 hours, profitable held longer

Core Design Philosophy: Let profits fully run while ensuring controllable risk through multi-layer risk controls. V7 suits aggressive traders seeking high returns and able to tolerate drawdowns.

Key Takeaways:

  • ✅ Suitable for sideways markets, oversold rebounds
  • ✅ V7 optimized for trend continuation, higher returns
  • ✅ V7 smart time stop-loss, faster loss-cutting, longer profitable holds
  • ⚠️ Loose stop-loss, risk control relies on time stop-loss and trailing stop
  • ⚠️ Poor performance in one-directional drops