Skip to main content

HypER_TIME Strategy: In-Depth Analysis

Strategy Number: #201 (201st of 465 strategies)
Strategy Type: Hyperparameter Optimization / Multi-Condition Trend Following
Timeframe: 15 Minutes (15m)


I. Strategy Overview

HypER_TIME is one of the Freqtrade official hyperparameter optimization example strategies. This strategy employs a multi-condition combination approach to identify trading opportunities through timeframe analysis. The "HypER" in the name stands for Hyperopt (hyperparameter optimization), and "TIME" indicates the strategy's special focus on timeframe analysis.

This strategy serves as the foundational version of the HypER_TIME series. Subsequent variants — BB_RPB, BTC, Golden, SMA, TSSL, and others — are all optimized versions built upon this core framework, tailored for different market conditions or indicator combinations.

Core Features

FeatureDescription
Buy Conditions3 independent buy signals, each can be independently enabled/disabled
Sell Conditions2 base sell signals + multi-layer dynamic take-profit logic
Protection Mechanisms2 groups of buy protection parameters (cooldown period + stoploss guard)
Timeframe15-minute primary timeframe
DependenciesTA-Lib, pandas, numpy

II. Strategy Configuration Analysis

2.1 Basic Risk Parameters

# ROI Exit Table - Tiered Take-Profit Mechanism
minimal_roi = {
"0": 0.10, # Hold 0-unlimited: 10% take-profit
"30": 0.05, # After 30 minutes: 5% take-profit
"60": 0.02, # After 60 minutes: 2% take-profit
"120": 0 # After 120 minutes: exit via stoploss only
}

# Stoploss Settings
stoploss = -0.10 # -10% fixed stoploss

# Trailing Stop (if enabled)
trailing_stop = True
trailing_stop_positive = 0.02
trailing_stop_positive_offset = 0.03

Design Philosophy:

  • ROI Table Design: Adopts a quick-profit strategy, pursuing 10% high returns within the first 30 minutes, then gradually lowering profit expectations as holding time extends
  • Stoploss Design: The -10% stoploss gives price sufficient room for fluctuation, avoiding triggering from market noise
  • Trailing Stop: Enabled to protect already-gained profits

2.2 Order Type Configuration

order_types = {
"entry": "limit",
"exit": "limit",
"exit_stop_loss": "market",
"entry_timeout": 10,
"exit_timeout": 10,
}

III. Entry Conditions Details

3.1 Protection Mechanisms (2 Groups)

Each buy condition has its own independent protection parameter group:

Protection TypeParameter DescriptionDefault Example
CooldownPeriodCooldown time after sell30 minutes
StoplossGuardStoploss protection, limits daily stoploss triggersMax 2 times/day

3.2 Typical Buy Condition Examples

Condition #1: RSI Oversold Crossover

# Logic
- RSI(14) rebounds from the oversold zone
- Confirm uptrend formation
- Entry timing: first bullish candle after RSI breaks through 30

Condition #2: MACD Golden Cross

# Logic
- MACD line crosses above the signal line from below
- Accompanied by volume expansion
- Entry timing: after MACD golden cross confirmation

Condition #3: Bollinger Band Lower Band Support

# Logic
- Price touches the Bollinger Band lower band
- Bollinger Band begins to narrow
- Entry timing: when price starts to rebound

3.3 Classification of 3 Buy Conditions

Condition GroupCondition NumberCore Logic
Oversold Rebound Type#1RSI rebounds from oversold zone, capturing rebound opportunities
Trend Confirmation Type#2MACD golden cross confirms uptrend, enter with the trend
Support Buy Type#3Price finds support at Bollinger Band lower band, consider bottom-fishing

IV. Exit Conditions Details

4.1 Multi-Layer Take-Profit System

The strategy employs a time-based tiered take-profit mechanism:

Profit Rate Range    Time Threshold    Signal Name
─────────────────────────────────────────────
0% - 10% 30 minutes Fast profit target
5% - 5% 60 minutes Mid-term hold target
2% - 2% 120 minutes Conservative exit target

4.2 Special Exit Scenarios

ScenarioTrigger ConditionSignal Name
Trailing Stop TriggerPrice retraces 3% from hightrailing_stop
Trend ReversalMACD death cross confirmedexit_macd_cross

4.3 Base Sell Signals (2)

# Sell Signal 1: MACD Death Cross
- MACD line crosses below the signal line from above
- Accompanied by volume expansion

# Sell Signal 2: RSI Overbought
- RSI(14) breaks above 70 into overbought territory
- Price begins to pull back

V. Technical Indicator System

5.1 Core Indicators

Indicator CategorySpecific IndicatorsPurpose
Trend IndicatorsEMA(9), EMA(21)Confirm trend direction
Momentum IndicatorsRSI(14)Identify overbought/oversold
Volatility IndicatorsBollinger BandsIdentify support/resistance
Trend ConfirmationMACD(12,26,9)Trend reversal signals

5.2 Information Timeframe Indicators (15 Minutes)

The strategy uses 15 minutes as the primary timeframe, providing medium-short term trend analysis:

  • RSI(14) identifies short-term overbought/oversold
  • MACD confirms trend turning points
  • Bollinger Bands identify price extreme positions

VI. Risk Management Highlights

6.1 Entry Protection Mechanisms

The strategy implements pre-entry protection mechanisms to avoid overtrading through cooldown periods and stoploss guards:

Protection ItemParameterFunction
CooldownPeriod30 minutesWait 30 minutes after sell before buying
StoplossGuard2 times/dayMax 2 stoploss triggers per day

6.2 Dynamic Take-Profit Strategy

Time-based tiered take-profit design:

  • Short-term target (0-30 min): Pursue 10% high returns
  • Mid-term target (30-60 min): Exit with 5% profit
  • Long-term target (60-120 min): Exit with 2% small profit

6.3 Trailing Stop Protection

trailing_stop = True
trailing_stop_positive = 0.02 # Activate trailing stop when profit exceeds 2%
trailing_stop_positive_offset = 0.03 # Trigger when price retraces 3% from high

VII. Strategy Pros & Cons

✅ Pros

  1. Multi-Condition Confirmation: 3 independent buy conditions reduce false signal probability
  2. Time-Tiered Take-Profit: Dynamically adjusts take-profit targets based on holding time
  3. Comprehensive Protection: Cooldown period and stoploss guard prevent emotional trading
  4. Hyperparameter Optimizable: Can be tuned for different markets via Hyperopt

⚠️ Cons

  1. Parameter Sensitivity: Multiple indicator parameters need optimization for specific trading pairs
  2. Average Performance in Ranging Markets: Multi-conditions may frequently enter/exit in choppy markets
  3. Strong Indicator Dependency: RSI, MACD, and other indicators may fail
  4. Trailing Stop Delay: Price may drop quickly, triggering trailing stop after profit has already been reduced

VIII. Applicable Scenarios

Market EnvironmentRecommended ConfigurationDescription
Trending MarketEnable all buy conditionsMulti-condition confirmation works best in trending markets
High VolatilityTighten stoploss to -5%High volatility requires stricter stoploss
Low VolatilityRelax take-profit targetsLow volatility requires longer holding time
Ranging MarketReduce buy conditionsAvoid frequent false signals

IX. Applicable Market Environment Details

HypER_TIME is the foundational version in the Freqtrade hyperparameter optimization strategy series. Based on its code architecture and multi-condition combination characteristics, it is best suited for trending markets and performs poorly in ranging markets.

9.1 Strategy Core Logic

  • Multi-Condition Confirmation: Confirm entry timing through RSI, MACD, and Bollinger Bands
  • Time-Tiered Take-Profit: Dynamically adjust profit targets based on holding time
  • Protection Mechanisms: Cooldown period and stoploss guard prevent overtrading

9.2 Performance in Different Market Environments

| Market Type | Performance Rating | Analysis | |:-----------|:|:---:|:--- | | 📈 Trending Up | ⭐⭐⭐⭐⭐ | Multi-condition confirmation effectively captures uptrends | | 📉 Trending Down | ⭐⭐⭐☆☆ | Buy conditions may fail in downtrends | | 🔄 Ranging Market | ⭐⭐☆☆☆ | Multi-condition combinations tend to produce false signals | | ⚡️ High Volatility | ⭐⭐⭐☆☆ | High volatility may cause frequent stoploss triggers |

9.3 Key Configuration Recommendations

Configuration ItemRecommended ValueDescription
Timeframe15mMedium-short term trend analysis
Stoploss-10%Moderate, allows room for volatility
Trailing StopEnabledProtect existing profits

X. Important Reminder: The Cost of Complexity

10.1 Learning Curve

This strategy involves multiple technical indicators (RSI, MACD, Bollinger Bands, EMA) and complex take-profit/stoploss logic. Beginners will need to invest considerable time understanding each indicator's role and parameter meanings.

10.2 Hardware Requirements

Number of Trading PairsMinimum MemoryRecommended Memory
3-5 pairs1 GB2 GB
10-20 pairs2 GB4 GB

10.3 Backtesting vs. Live Trading Differences

  • Historical data quality affects backtesting accuracy
  • Slippage and commissions erode profits in live trading
  • It is recommended to first verify strategy effectiveness in paper trading

10.4 Manual Trader Suggestions

Manual traders can reference the strategy's core logic:

  • Buy when RSI is oversold, sell when RSI is overbought
  • Buy on MACD golden cross, sell on death cross
  • Combine time-tiered take-profit for position management

XI. Summary

HypER_TIME is a typical multi-condition trend-following strategy that incorporates hyperparameter optimization concepts. Its core value lies in:

  1. Multi-Indicator Confirmation: Uses RSI, MACD, Bollinger Bands and other multiple indicators to confirm trading signals, reducing false signal probability
  2. Time-Tiered Take-Profit: Dynamically adjusts take-profit targets based on holding time, balancing short-term high returns and long-term stability
  3. Comprehensive Protection: Cooldown period and stoploss guard prevent emotional trading and frequent losses

For quantitative traders, it is recommended to first conduct backtesting verification in paper trading, then proceed to live trading after adjusting parameters based on different trading pairs and market conditions.