Skip to main content

HypER_TIME_TSSL_BB2 Strategy: In-Depth Analysis

Strategy Number: #210 (210th of 465 strategies)
Strategy Type: Time-Based Stop Loss + Bollinger Bands V2 / Hyperparameter Optimization
Timeframe: 15 Minutes (15m)


I. Strategy Overview

HypER_TIME_TSSL_BB2 is the second version of HypER_TIME_TSSL_BB, with parameter optimizations and signal logic improvements over V1. The V2 version's core upgrades include:

  1. Bollinger Band Squeeze Signal: Added Bollinger Band width narrowing detection to identify potential big-move breakout points
  2. Parameter Refinement: ROI time node adjustments (35/70 minutes), stoploss ratio fine-tuning (-9%)
  3. Trailing Stop Optimization: Set 2.5% trigger threshold and 4% offset for more flexible profit protection

As the closing strategy of this batch (#201-210), HypER_TIME_TSSL_BB2 represents the mature form of the Bollinger Band strategy in the HypER_TIME series.

Core Features

FeatureDescription
Buy Conditions3 optimized Bollinger Band signals (squeeze breakout, lower band support, middle band breakout)
Sell ConditionsTiered ROI + TSSL time-based stoploss + trailing stop triple exit
Protection Mechanisms3 independent protection parameter groups (hard stoploss, time stoploss, trailing stop)
Timeframe15 Minutes (15m) primary trading cycle
Dependent IndicatorsBollinger Bands, EMA, RSI, Volume

II. Strategy Configuration Analysis

2.1 Basic Risk Parameters

# ROI Exit Table
minimal_roi = {
"0": 0.10, # Immediate exit: 10% take-profit
"35": 0.05, # After 35 minutes: 5% take-profit
"70": 0.025, # After 70 minutes: 2.5% take-profit
"120": 0 # After 120 minutes: TSSL protection only
}

# Stoploss Settings
stoploss = -0.09 # Hard stoploss: -9% (V1 was -10%)

# Trailing Stop Configuration
trailing_stop = True
trailing_stop_positive = 0.025 # Activate after 2.5% profit
trailing_stop_positive_offset = 0.04 # Trigger at 4% retrace

V2 Parameter Adjustment Notes:

  • ROI Time Node Optimization: Adjusted from V1's 30/60 minutes to 35/70 minutes, providing more price fluctuation room
  • Hard Stoploss Tightened: Adjusted from -10% to -9%, earlier stoploss to protect principal
  • Trailing Stop Refined: Added trigger threshold and offset parameters to avoid premature take-profit

2.2 Time-Based Stoploss Mechanism (TSSL)

TSSL (Time-based Stop Loss) is the core innovation of the HypER_TIME series:

# Time-Based Stoploss Logic
time_stop_loss = {
"120": -0.025 # After 120 minutes, stoploss tightens to -2.5%
}

Mechanism Description:

  • After holding over 120 minutes, stoploss threshold tightens from -9% to -2.5%
  • Force exit of sideways-trading ineffective positions
  • Improve capital turnover efficiency, avoid "being trapped"

2.3 Order Type Configuration

order_types = {
'entry': 'limit', # Entry: limit order
'exit': 'limit', # Exit: limit order
'stoploss': 'market', # Stoploss: market order
'stoploss_on_exchange': True
}

III. Entry Conditions Details

3.1 V2 Signal Optimization Upgrades

Compared to V1, V2 has significant improvements in buy conditions:

ImprovementV1 VersionV2 Version
Signal CountBasic Bollinger Band lower band support3 signal groups (squeeze + lower band + middle band)
Squeeze DetectionNoneAdded Bollinger Band width narrowing signal
Trend ConfirmationBasicEMA trend filtering
Volume ConfirmationOptionalRequired

3.2 Buy Signal Classification

Condition #1: Bollinger Band Squeeze Breakout

# Logic
- Bollinger Band width (upper band - lower band) narrows to historical lows
- Price breaks upward above the upper band
- Volume significantly expands to confirm

Technical Principle:

  • Band narrowing means market volatility is at a low level
  • Squeeze is often followed by directional breakout
  • Volume expansion confirms breakout validity

V2 Special Feature: Squeeze signal is the core buy logic newly added in V2, used to capture potential big moves.

Condition #2: Bollinger Band Lower Band Support

# Logic
- Price touches or nears the Bollinger Band lower band
- Effective support found, rebound signal appears
- RSI indicator coordination (optional)

Technical Principle:

  • Lower band represents the statistical price lower limit (2× standard deviation)
  • Touching lower band means price is at a relatively low point
  • Rebound signal confirms support is valid

Condition #3: Bollinger Band Middle Band Breakout

# Logic
- Price breaks upward through the Bollinger Band middle band
- EMA trend upward confirms
- Volume coordinates

Technical Principle:

  • Middle band is the 20-period simple moving average
  • Breaking through the middle band means short-term trend is strengthening
  • Combined with EMA trend filtering, improves signal quality

3.3 Buy Conditions Summary

Condition NumberSignal TypeCore LogicConfidence
#1Squeeze BreakoutBB narrowing + upward breakout + volumeHigh
#2Lower Band SupportPrice hits lower band + support confirmationMedium
#3Middle Band BreakoutPrice breaks middle band + trend confirmationMedium-High

IV. Exit Conditions Details

4.1 Triple Exit Mechanism

V2 employs a tiered take-profit + TSSL time-based stoploss + trailing stop triple exit system:

Holding Time    Target Profit    Exit Mechanism
───────────────────────────────────────────────
0 min 10% ROI take-profit
35 min 5% ROI take-profit
70 min 2.5% ROI take-profit
120 min - TSSL activates
Any time Trailing trigger Trailing stop

Design Philosophy:

  • Short holding pursues high returns (10%)
  • Extended holding reduces expectations
  • Trailing stop dynamically protects realized profits
  • TSSL forces exit of ineffective positions

4.2 Special Exit Scenarios

ScenarioTrigger ConditionAction
Upper band pressurePrice touches Bollinger upper bandSell signal
Squeeze failure pullbackBreakout fails, price pulls backFast stoploss
Bandwidth expansionVolatility increases, trend endsStand by or reduce

4.3 Trailing Stop Details

# V2 Trailing Stop Configuration
trailing_stop = True
trailing_stop_positive = 0.025 # Activate trailing after 2.5% profit
trailing_stop_positive_offset = 0.04 # Trigger sell at 4% retrace

Working Mechanism:

  1. When profit reaches 2.5%, trailing stop activates
  2. System records the highest price as benchmark
  3. When price retraces 4%, automatically triggers sell
  4. Protects realized profits, avoids profit giveback

V2 Improvement: Compared to V1's simple trailing stop, V2 specifies trigger threshold and offset, avoiding premature triggers from small fluctuations.


V. Technical Indicator System

5.1 Core Indicators

Indicator CategorySpecific IndicatorsParametersPurpose
TrendBollinger BandsPeriod 20, Std Dev 2Support/resistance identification, squeeze detection
TrendEMAPeriod 21Trend direction confirmation
MomentumRSIPeriod 14Overbought/oversold judgment
VolumeVolume-Signal validity confirmation

5.2 Bollinger Band Indicator Details

Bollinger Bands are this strategy's core indicator, consisting of three tracks:

Upper band = Middle band + (2 × Standard deviation)
Middle band = 20-period simple moving average
Lower band = Middle band - (2 × Standard deviation)
Bandwidth = (Upper band - Lower band) / Middle band

V2 Application Scenarios:

  • Lower band: Buy signal trigger zone, price oversold
  • Middle band: Trend confirmation line, breakout signal
  • Upper band: Sell signal trigger zone, price overbought
  • Bandwidth: Squeeze signal core, bandwidth narrowing forecasts big moves

5.3 V2 New Feature: Squeeze Signal

Squeeze (Squeeze) signal is the core upgrade of V2:

# Squeeze Detection Logic (Illustration)
band_width = (upper_band - lower_band) / middle_band
if band_width < historical_low_threshold:
# Bollinger Bands narrow to historical lows, squeeze signal activates
squeeze_signal = True

Squeeze Signal Value:

  • Identifies periods of extremely low market volatility
  • Low volatility is often followed by directional breakout
  • Pre-positioning for potential big moves

VI. Risk Management Highlights

6.1 Three-Layer Protection Mechanism

Protection LayerMechanismParametersFunction
First LayerHard Stoploss-9%Protect principal, prevent extreme losses
Second LayerTrailing Stop4% retraceProtect profits, avoid profit giveback
Third LayerTime-Based Stoploss TSSLAfter 120 min -2.5%Control holding time, improve capital efficiency

6.2 V2 Parameter Optimization

Compared to V1, V2 has refined risk management:

ParameterV1 VersionV2 VersionOptimization Purpose
Hard Stoploss-10%-9%Earlier stoploss, reduce single-trade loss
ROI Time Nodes30/60 minutes35/70 minutesProvide more fluctuation room
Trailing StopSimple enable2.5% trigger + 4% offsetAvoid premature take-profit

6.3 Unique Value of Time-Based Stoploss

TSSL (Time-based Stop Loss) design purpose:

# Time Stoploss Logic
if holding_time > 120 minutes:
stoploss_threshold = -2.5% # Tighten stoploss
# Force exit of ineffective positions

Advantage Analysis:

  • Capital Efficiency: Avoid long-term capital tie-up
  • Risk Control: Longer holding = greater risk exposure
  • Opportunity Cost: Free up capital to capture new opportunities

VII. Strategy Pros & Cons

✅ Pros

  1. V2 Signal Optimization: New Bollinger Band squeeze detection identifies potential big moves, pre-positions for directional breakouts
  2. Parameter Refinement: ROI time nodes and stoploss ratios optimized, more suitable for 15-minute short-term trading
  3. Triple Protection Mechanism: Hard stoploss, trailing stop, time-based stoploss build a complete defense system
  4. Trailing Stop Upgrade: Specifies trigger threshold and offset, avoids premature triggers from small fluctuations, more flexible protection
  5. Classic Technical Combination: Bollinger Bands + EMA + RSI + Volume is a classic combination, with mature theory, easy to understand

⚠️ Cons

  1. Average Performance in Ranging Markets: In sideways choppy markets, price frequently touches upper/lower bands, potentially generating many invalid signals
  2. Parameter Sensitivity: Bollinger Band parameters (period, standard deviation multiplier) need adjustment based on market characteristics
  3. Squeeze Signal Lag: Squeeze detection is post-hoc confirmation, may miss optimal entry points
  4. One-Sided Market Risk: In strong trending one-sided markets, tiered take-profit may exit prematurely, missing greater profits

VIII. Applicable Scenarios

Market EnvironmentRecommended ConfigurationDescription
Trending MarketStandard configurationBollinger Bands identify pullback entry points, squeeze signals capture trend initiation
Ranging MarketReduce tradingPrice frequently touches bands, many invalid signals
High VolatilityTighten stoplossReduce risk exposure, use stricter stoploss parameters
Low VolatilityWatch for squeezeWatch breakout direction when bands narrow, prepare positioning

Best Applicable Scenarios

  1. Intraday Trend Trading: 15-minute timeframe suitable for capturing intraday fluctuations
  2. Post-Squeeze Breakout: Wait for directional breakout after Bollinger Band narrowing
  3. Pullback Entry Strategy: Wait for pullback to lower band during trends for entry
  4. Strict Capital Management: Triple protection suitable for risk-averse traders

IX. Applicable Market Environment Details

HypER_TIME_TSSL_BB2 is a technical analysis combined with time management strategy upgrade. Based on Bollinger Bands' classic technical indicator characteristics and V2's squeeze signal optimization, it is best suited for trending markets with volatility changes and performs poorly in sideways ranges.

9.1 Strategy Core Logic

  • Bollinger Band Identification: Use statistical principles to identify price relatively high/low positions
  • Squeeze Signal Detection: V2 new feature, identifies periods of extremely low volatility
  • Trailing Stop Protection: Dynamically protect profits, avoid profit giveback
  • Time-Based Stoploss Forced Exit: TSSL mechanism prevents long-term holding

9.2 Performance in Different Market Environments

| Market Type | Performance Rating | Analysis | |:-----------|:|:---:|:--- | | 📈 Trending Market | ⭐⭐⭐⭐⭐ | Bollinger Bands identify pullback entry, squeeze signals capture trend initiation | | 🔄 Ranging Market | ⭐⭐☆☆☆ | Price frequently touches bands, generating many invalid signals | | 📉 One-Sided Decline | ⭐⭐☆☆☆ | Hitting lower band in decline may continue falling, stoploss protection limited | | ⚡️ High Volatility | ⭐⭐⭐☆☆ | Bollinger Bands expand, squeeze signals decrease, trailing stop protects some profits |

9.3 V2 Improvement Market Adaptability

ImprovementAdaptive MarketDescription
Squeeze SignalLow volatility then breakoutIdentifies extremely low volatility, pre-positions for directional moves
Parameter Optimization15-minute timeframeROI time nodes better match short-term trading rhythm
Trailing StopTrending marketsMore flexible profit protection, avoids premature exit

9.4 Key Configuration Recommendations

Configuration ItemRecommended ValueDescription
Stoploss Ratio-9%Adjustable based on risk tolerance
Trailing StopEnabled + 2.5% trigger + 4% offsetV2 optimized parameters
Bollinger Band Period20Standard parameter, adjustable per instrument
Standard Deviation Multiplier2Classic parameter, suitable for most markets
EMA Period21Trend confirmation auxiliary

X. Important Reminders: The Cost of Complexity

10.1 Learning Curve

V2 has slightly higher learning curve than V1 due to the squeeze signal:

  • Understanding Bollinger Band bandwidth narrowing technical meaning is required
  • Trailing stop trigger mechanism must be mastered
  • Suitable for users with some quantitative trading foundation

10.2 Hardware Requirements

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

Note: This strategy has small computational load and low hardware requirements.

10.3 Backtesting vs. Live Trading Differences

Bollinger Band strategies may perform excellently in backtesting, but live trading requires attention to:

  • Slippage Impact: Actual fill price may deviate from theoretical price
  • Commission Accumulation: Frequent trading in ranging markets generates substantial commissions
  • Market Environment Changes: Bollinger Band parameters may need adjustment as markets change
  • Squeeze Signal Lag: Squeeze detection is post-hoc confirmation, requires rapid response in live trading

10.4 Manual Trader Suggestions

For manual traders who wish to reference this strategy:

  1. Watch for Band Narrowing: Band narrowing often signals imminent breakout
  2. Wait for Volume Confirmation: Breakout requires volume coordination
  3. Strictly Execute Stoploss: Do not move stoploss due to losses
  4. Avoid Ranging Markets: Reduce trading frequency during sideways periods
  5. Use Trailing Stop: Set reasonable trailing stop to protect profits

XI. Summary

HypER_TIME_TSSL_BB2 is the mature upgrade version of the Bollinger Band strategy. As the closing strategy of this batch, it represents the optimization achievements of the Bollinger Band strategy in the HypER_TIME series. Its core value lies in:

  1. Squeeze Signal Innovation: V2 adds Bollinger Band width narrowing detection, identifying potential big moves — this is the core function V1 lacks
  2. Parameter Refinement: ROI time nodes, stoploss ratios, trailing stop parameters optimized, more suitable for 15-minute short-term trading
  3. Triple Protection Complete: Hard stoploss (-9%), trailing stop (4% retrace), time-based stoploss (120 min -2.5%) build a complete defense system
  4. V2 Upgrade Value: Compared to V1, V2 has significant improvements in signal quality, parameter adaptation, and risk management

For quantitative traders, this is an intermediate Bollinger Band strategy — adding squeeze signals and refined risk management on the basis of classic Bollinger Band strategy, suitable for users with some experience.

Usage Suggestions:

  • First test in simulated environment, familiarize with squeeze signal characteristics
  • Focus on breakout direction after Bollinger Band narrowing
  • Adjust Bollinger Band parameters based on trading instrument characteristics
  • Reduce or pause trading in ranging markets
  • Strictly execute stoploss discipline, protect principal