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:
- Bollinger Band Squeeze Signal: Added Bollinger Band width narrowing detection to identify potential big-move breakout points
- Parameter Refinement: ROI time node adjustments (35/70 minutes), stoploss ratio fine-tuning (-9%)
- 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
| Feature | Description |
|---|---|
| Buy Conditions | 3 optimized Bollinger Band signals (squeeze breakout, lower band support, middle band breakout) |
| Sell Conditions | Tiered ROI + TSSL time-based stoploss + trailing stop triple exit |
| Protection Mechanisms | 3 independent protection parameter groups (hard stoploss, time stoploss, trailing stop) |
| Timeframe | 15 Minutes (15m) primary trading cycle |
| Dependent Indicators | Bollinger 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:
| Improvement | V1 Version | V2 Version |
|---|---|---|
| Signal Count | Basic Bollinger Band lower band support | 3 signal groups (squeeze + lower band + middle band) |
| Squeeze Detection | None | Added Bollinger Band width narrowing signal |
| Trend Confirmation | Basic | EMA trend filtering |
| Volume Confirmation | Optional | Required |
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 Number | Signal Type | Core Logic | Confidence |
|---|---|---|---|
| #1 | Squeeze Breakout | BB narrowing + upward breakout + volume | High |
| #2 | Lower Band Support | Price hits lower band + support confirmation | Medium |
| #3 | Middle Band Breakout | Price breaks middle band + trend confirmation | Medium-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
| Scenario | Trigger Condition | Action |
|---|---|---|
| Upper band pressure | Price touches Bollinger upper band | Sell signal |
| Squeeze failure pullback | Breakout fails, price pulls back | Fast stoploss |
| Bandwidth expansion | Volatility increases, trend ends | Stand 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:
- When profit reaches 2.5%, trailing stop activates
- System records the highest price as benchmark
- When price retraces 4%, automatically triggers sell
- 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 Category | Specific Indicators | Parameters | Purpose |
|---|---|---|---|
| Trend | Bollinger Bands | Period 20, Std Dev 2 | Support/resistance identification, squeeze detection |
| Trend | EMA | Period 21 | Trend direction confirmation |
| Momentum | RSI | Period 14 | Overbought/oversold judgment |
| Volume | Volume | - | 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 Layer | Mechanism | Parameters | Function |
|---|---|---|---|
| First Layer | Hard Stoploss | -9% | Protect principal, prevent extreme losses |
| Second Layer | Trailing Stop | 4% retrace | Protect profits, avoid profit giveback |
| Third Layer | Time-Based Stoploss TSSL | After 120 min -2.5% | Control holding time, improve capital efficiency |
6.2 V2 Parameter Optimization
Compared to V1, V2 has refined risk management:
| Parameter | V1 Version | V2 Version | Optimization Purpose |
|---|---|---|---|
| Hard Stoploss | -10% | -9% | Earlier stoploss, reduce single-trade loss |
| ROI Time Nodes | 30/60 minutes | 35/70 minutes | Provide more fluctuation room |
| Trailing Stop | Simple enable | 2.5% trigger + 4% offset | Avoid 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
- V2 Signal Optimization: New Bollinger Band squeeze detection identifies potential big moves, pre-positions for directional breakouts
- Parameter Refinement: ROI time nodes and stoploss ratios optimized, more suitable for 15-minute short-term trading
- Triple Protection Mechanism: Hard stoploss, trailing stop, time-based stoploss build a complete defense system
- Trailing Stop Upgrade: Specifies trigger threshold and offset, avoids premature triggers from small fluctuations, more flexible protection
- Classic Technical Combination: Bollinger Bands + EMA + RSI + Volume is a classic combination, with mature theory, easy to understand
⚠️ Cons
- Average Performance in Ranging Markets: In sideways choppy markets, price frequently touches upper/lower bands, potentially generating many invalid signals
- Parameter Sensitivity: Bollinger Band parameters (period, standard deviation multiplier) need adjustment based on market characteristics
- Squeeze Signal Lag: Squeeze detection is post-hoc confirmation, may miss optimal entry points
- One-Sided Market Risk: In strong trending one-sided markets, tiered take-profit may exit prematurely, missing greater profits
VIII. Applicable Scenarios
| Market Environment | Recommended Configuration | Description |
|---|---|---|
| Trending Market | Standard configuration | Bollinger Bands identify pullback entry points, squeeze signals capture trend initiation |
| Ranging Market | Reduce trading | Price frequently touches bands, many invalid signals |
| High Volatility | Tighten stoploss | Reduce risk exposure, use stricter stoploss parameters |
| Low Volatility | Watch for squeeze | Watch breakout direction when bands narrow, prepare positioning |
Best Applicable Scenarios
- Intraday Trend Trading: 15-minute timeframe suitable for capturing intraday fluctuations
- Post-Squeeze Breakout: Wait for directional breakout after Bollinger Band narrowing
- Pullback Entry Strategy: Wait for pullback to lower band during trends for entry
- 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
| Improvement | Adaptive Market | Description |
|---|---|---|
| Squeeze Signal | Low volatility then breakout | Identifies extremely low volatility, pre-positions for directional moves |
| Parameter Optimization | 15-minute timeframe | ROI time nodes better match short-term trading rhythm |
| Trailing Stop | Trending markets | More flexible profit protection, avoids premature exit |
9.4 Key Configuration Recommendations
| Configuration Item | Recommended Value | Description |
|---|---|---|
| Stoploss Ratio | -9% | Adjustable based on risk tolerance |
| Trailing Stop | Enabled + 2.5% trigger + 4% offset | V2 optimized parameters |
| Bollinger Band Period | 20 | Standard parameter, adjustable per instrument |
| Standard Deviation Multiplier | 2 | Classic parameter, suitable for most markets |
| EMA Period | 21 | Trend 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 Pairs | Minimum Memory | Recommended Memory |
|---|---|---|
| 1-5 pairs | 2GB | 4GB |
| 5-20 pairs | 4GB | 8GB |
| 20+ pairs | 8GB | 16GB |
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:
- Watch for Band Narrowing: Band narrowing often signals imminent breakout
- Wait for Volume Confirmation: Breakout requires volume coordination
- Strictly Execute Stoploss: Do not move stoploss due to losses
- Avoid Ranging Markets: Reduce trading frequency during sideways periods
- 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:
- Squeeze Signal Innovation: V2 adds Bollinger Band width narrowing detection, identifying potential big moves — this is the core function V1 lacks
- Parameter Refinement: ROI time nodes, stoploss ratios, trailing stop parameters optimized, more suitable for 15-minute short-term trading
- Triple Protection Complete: Hard stoploss (-9%), trailing stop (4% retrace), time-based stoploss (120 min -2.5%) build a complete defense system
- 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