Skip to main content

NostalgiaForInfinityNext_ChangeToTower_V6 Strategy Analysis

Strategy Number: #35
Strategy Type: Ultra-Complex Multi-Condition Trend Following + 40 Protection Mechanisms
Timeframe: 5 minutes (5m)


I. Strategy Overview

NostalgiaForInfinityNext_ChangeToTower_V6 (abbreviated NFI Next Tower V6) is one of the most famous and complex strategies in the Freqtrade community — the latest iteration of the Nostalgia series. This strategy was developed by senior quantitative trader iterativ, and after years of community verification and optimization, has become the de facto "industry standard" strategy.

The core design philosophy of NFI Next strategy is "comprehensive coverage" — through a large number of entry conditions and refined protection mechanisms, it attempts to capture trading opportunities in various market environments. The "Tower" in the strategy name hints at its pyramid-like layered protection structure.

According to community feedback, this strategy performs particularly well during bull markets, effectively capturing uptrends in mainstream coins. Its complex parameter design, while increasing optimization difficulty, also provides sufficient flexibility to adapt to different market conditions.

Core Features

FeatureDescription
Entry Conditions40 independent entry signals, can be independently enabled/disabled
Exit Conditions8 base exit conditions + multi-layer dynamic take-profit logic
Protection40 groups of entry protection parameters (independently configured for each entry condition)
TimeframeMain timeframe 5 minutes + informative timeframe 1 hour
Dependenciestalib, technical, pandas_ta, numpy
Code Size6000+ lines (including comments and parameters)

II. Strategy Configuration Analysis

2.1 Base Risk Parameters

# ROI exit table
minimal_roi = {
"0": 0.10, # Immediate exit requires 10% profit
"30": 0.05, # Exit at 5% profit after 30 minutes
"60": 0.02 # Exit at 2% profit after 60 minutes
}

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

Design Logic:

NFI Next's ROI design embodies the "gradient take-profit" philosophy:

  • Early (<30 minutes): 10% high target, capture big trends
  • Mid (30-60 minutes): 5% medium target, lock partial profits
  • Late (>60 minutes): 2% conservative target, ensure exit

The 10% fixed stoploss provides ample price fluctuation space for the strategy.

2.2 Trailing Stop Configuration

trailing_stop = True
trailing_only_offset_is_reached = True
trailing_stop_positive = 0.01 # 1%
trailing_stop_positive_offset = 0.03 # 3%

2.3 Order Type Configuration

order_types = {
"entry": "limit",
"exit": "limit",
"stoploss": "limit",
"stoploss_on_exchange": False,
}

III. Entry Conditions Details

3.1 Forty Entry Conditions Overview

NFI Next implements 40 independent entry conditions, each can be independently enabled or disabled through the buy_condition_X_enable parameter. These conditions cover various market patterns:

Condition GroupQuantityCore Logic
Bollinger Band Bounce8+Price bounces at Bollinger Band extremes
EMA Crossover6+Various period EMA crossover signals
RSI Oversold5+RSI bounces after reaching oversold region
Volume4+Entry under specific volume patterns
Momentum5+Various momentum indicator confirmations
Comprehensive10+Multi-indicator combination confirmation

3.2 Protection Mechanisms (40 Groups)

The strategy configures independent protection parameter groups for each entry condition, example structure:

buy_protection_params = {
1: {
"ema_fast": False,
"ema_fast_len": "26",
"ema_slow": True,
"ema_slow_len": "100",
"sma200_rising": True,
"sma200_rising_val": "28",
"safe_dips": False,
"safe_dips_type": "80",
"safe_pump": False,
"safe_pump_type": "70",
"safe_pump_period": "24",
"btc_1h_not_downtrend": False,
},
# ... total 40 groups
}

Protection Type Details:

Protection TypeParameterFunction
EMA Trendema_fast/slowFast/slow EMA direction confirmation
SMA Confirmationsma200_rising200-period MA direction validation
Pullback Protectionsafe_dipsOnly buy during normal pullbacks
Surge Protectionsafe_pumpFilter surged coins
BTC Trendbtc_1h_not_downtrendBTC 1-hour not in downtrend

IV. Exit Logic Details

4.1 Eight Exit Conditions

sell_params = {
"sell_condition_1_enable": True,
"sell_condition_2_enable": True,
"sell_condition_3_enable": True,
"sell_condition_4_enable": True,
"sell_condition_5_enable": True,
"sell_condition_6_enable": True,
"sell_condition_7_enable": True,
"sell_condition_8_enable": True,
}

Main Exit Logic Types:

  1. RSI Overbought: Sell after RSI reaches specific threshold
  2. Bollinger Band Overbought: Price touches Bollinger Band upper band
  3. MA Breakdown: Price breaks below key moving average
  4. Volume Shrink: Volume abnormally shrinks
  5. Trend Reversal: Multiple indicators confirm trend reversal

4.2 Dynamic Take-Profit Mechanism

The strategy implements a dynamic take-profit system based on holding time and profit rate.


V. Technical Indicator System

5.1 Core Indicator Matrix

Indicator CategorySpecific IndicatorPurpose
Trend IndicatorsEMA (Multiple periods)Trend judgment and filtering
Trend IndicatorsSMA (Multiple periods)Support/resistance identification
Volatility IndicatorBollinger Bands (20,2)Overbought/oversold judgment
Momentum IndicatorsRSI (14)Overbought/oversold
Momentum IndicatorsMACDTrend momentum
Momentum IndicatorsStochRSIStochastic momentum
Volume IndicatorVolume MAVolume validation
Comprehensive IndicatorCTICustom trend indicator

5.2 BTC Informative Layer

The strategy uses BTC trend on 1-hour timeframe as a global filter:

has_BTC_base_tf = False
has_BTC_info_tf = True
info_timeframe = "1h"

This allows the strategy to automatically reduce entry signals during BTC declines, avoiding counter-trend trading.


VI. Risk Management Features

6.1 Multi-Layer Protection System

Protection LayerFunctionImplementation
Condition-Level ProtectionFor single entry conditionsbuy_protection_params
Global ProtectionFor all conditionshas_BTC_info_tf
Stoploss ProtectionFinal defense linestoploss = -0.10
Take-Profit ProtectionProfit lockingminimal_roi + trailing

6.2 Condition Configurability

Each entry condition can be independently controlled:

  • Enable/disable specific conditions
  • Configure independent protection parameters for each condition
  • Can be selectively adjusted during optimization

VII. Strategy Pros & Cons

✅ Pros

  1. Comprehensive Coverage: 40 conditions attempt to cover all market patterns
  2. Refined Protection: 40 groups of protection parameters, comprehensive protection
  3. Community Verified: Years of live trading verification
  4. Extensibility: Conditions independently configurable, high flexibility
  5. BTC Filtering: Built-in BTC trend protection
  6. Professional Indicators: Integrates various advanced technical indicators

⚠️ Cons

  1. Numerous Parameters: Extremely difficult to optimize
  2. Computational Resources: High hardware requirements
  3. Overfit Risk: Complex strategies easily overfit
  4. Maintenance Cost: Numerous parameters bring maintenance burden
  5. Learning Curve: Requires deep understanding of each condition

VIII. Applicable Scenarios

Market EnvironmentRecommended ConfigurationDescription
Bull marketEnable all conditionsRich signals, comprehensive capture
Bear marketReduce condition countLower counter-trend trading
Ranging marketSelect conditionsAvoid false signals
High volatilityTighten protection parametersControl risk

IX. Detailed Applicable Market Environments

9.1 Strategy Core Logic

NFI Next is a typical "comprehensive coverage" strategy, core philosophy:

  • Cover various market patterns through大量 (large number of) independent conditions
  • Filter false signals through refined protection parameters
  • Avoid counter-trend trading through BTC trend filtering

9.2 Performance in Different Market Environments

Market TypePerformance RatingReason Analysis
📈 Uptrend⭐⭐⭐⭐⭐Large number of conditions trigger in bull market
📉 Downtrend⭐⭐⭐BTC filtering reduces losses
🔄 Ranging market⭐⭐⭐Protection mechanisms filter some false signals
⚡ High volatility⭐⭐⭐⭐Large volatility brings trading opportunities

X. Important Reminders: The Cost of Complexity

10.1 Learning Cost

NFI Next is one of the strategies with the steepest learning curve in Freqtrade:

  • Need to understand trigger logic of 40 independent conditions
  • Need to understand function of 40 groups of protection parameters
  • Need to understand complex parameter optimization methods
  • Suggested learning time: 1-3 months

10.2 Hardware Requirements

Number of PairsMinimum MemoryRecommended Memory
1-104GB8GB
10-308GB16GB
30+16GB32GB

10.3 Optimization Suggestions

  • Use Hyperopt for parameter optimization
  • Adopt Walk-forward validation method
  • Avoid overfitting historical data

XI. Summary

NostalgiaForInfinityNext_ChangeToTower_V6 is one of the most representative ultra-complex strategies in the Freqtrade ecosystem. It represents the extreme of "comprehensive coverage" design philosophy, building an almost "all-around" trading system through 40 independent entry conditions and 40 groups of protection parameters.

Its core values are:

  1. Systematic: Complete trading ecosystem
  2. Flexibility: Extremely high configurability
  3. Community Support: Years of verification and optimization
  4. Professional: Integrates advanced technical analysis tools

For quantitative traders, NFI Next is an "ultimate goal" — can serve as learning object for strategy development, or as strategy foundation for production environment. But given its complexity, recommended to start with default parameters and gradually understand and optimize.


Document Version: v1.0
Strategy Series: Nostalgia Ultra-Complex Multi-Condition Strategy