Skip to main content

NostalgiaForInfinityNextV1 Strategy: In-Depth Analysis

Strategy ID: #248 (Strategy #248 of 465) Strategy Type: NFI Series - Next V1 Initial Version Timeframe: 5 Minutes (5m)


I. Strategy Overview

NostalgiaForInfinityNextV1 (abbreviated NFI Next V1) is the first official version of the NostalgiaForInfinityNext series. As the foundational version of the Next series, V1 established the core architecture and parameter system for the entire series. Subsequent versions were optimized and iterated based on this.

The V1 version is characterized by "steady and solid" — conservative and reasonable parameter settings, complete protection mechanisms, providing users with a verified stable starting point. Compared to subsequent optimized versions, V1 focuses more on strategy stability and reliability rather than pursuing extreme returns.

Core Characteristics

FeatureDescription
Entry Conditions38 independent entry signals, each independently enableable/disableable
Exit Conditions8 basic exit signals + ROI progressive take-profit
Protection Mechanisms38 groups of entry protection parameters (EMA/SMA/volatility/time filtering)
Timeframe5-minute primary timeframe + 1-hour information timeframe
Dependenciespandas, numpy, TA-Lib, technical, pandas_ta

II. Strategy Configuration Analysis

2.1 Core Risk Parameters

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

# Stop-Loss Settings
stoploss = -0.10 # -10% hard stop-loss

# Trailing Stop
trailing_stop = True
trailing_only_offset_is_reached = True
trailing_stop_positive = 0.01 # 1% trailing activation point
trailing_stop_positive_offset = 0.03 # 3% offset trigger

Design Philosophy:

  • Three-Tier ROI Target: 10% → 5% → 2%, fast take-profit design
  • Moderate Stop-Loss: -10% is a relatively standard stop-loss setting
  • Conservative Trailing Stop: 1% activation, 3% offset, locks profits early

2.2 Order Type Configuration

order_types = {
'buy': 'limit',
'sell': 'limit',
'trailing_stop_loss': 'limit',
'stoploss': 'limit',
'stoploss_on_exchange': False
}

III. Entry Conditions Details

3.1 Protection Mechanisms (38 Groups)

Each entry condition is equipped with an independent protection parameter group:

Protection TypeParametersDefault Example
EMA Fast LineFast EMA trend verificationEMA26/50/100/200
EMA Slow LineSlow EMA trend verificationEMA12/20/50/100
Price Above EMA FastPrice position verificationEMA200
Price Above EMA SlowPrice position verificationEMA200
SMA200 RisingSMA200 trend direction28-period slope
1h SMA200 RisingHigh-period trend confirmation50-period slope
Safe DipsAvoid chasing highsDownward amplitude threshold
Safe PumpAvoid chasing ralliesUpward amplitude threshold
BTC 1h Non-DowntrendMarket overall environmentBTC trend filtering

IV. Exit Logic Details

4.1 Multi-Layer Take-Profit System

Strategy uses a three-tier progressive take-profit mechanism:

Profit Rate Zone    Threshold       Signal Name
────────────────────────────────────────────────
0-30 minutes 10% Quick Profit
30-60 minutes 5% Medium-term Target
60+ minutes 2% End-of-Session Breakeven

4.2 Special Exit Scenarios

ScenarioTrigger ConditionSignal Name
ROI AchievedProfit reaches time-corresponding thresholdROI Exit
Trailing StopProfit retraces beyond thresholdTrailing Exit
Hard Stop-LossLoss reaches 10%Stop-Loss Exit

4.3 Basic Exit Signals (8 Total)

# Exit Signal Enable Configuration
"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,

V. Risk Management Features

5.1 Multi-Layer Protection Mechanism

Protection TypeFunctionDescription
safe_dipsAvoid chasing highsRecent price decline cannot be too large
safe_pumpAvoid chasing ralliesRecent price rise cannot be too large
safe_pump_periodTime windowCalculation period for volatility

5.2 BTC Trend Filtering

# BTC 1h non-downtrend protection
"btc_1h_not_downtrend": True # Only buy when BTC 1h is in non-downtrend

Design Philosophy: Don't enter when the overall market is weak, avoid systemic risk.


VI. Strategy Pros & Cons

✅ Pros

  1. Stable Architecture: As the series' initial version, parameters are fully verified
  2. Complete Protection: 38 groups of protection parameters, covering various risk scenarios
  3. Flexible Configuration: Each entry condition can be independently enabled/disabled
  4. Multi-Period Verification: 5m + 1h dual timeframes, improving signal reliability
  5. Conservative and Reasonable: Parameters are conservative, suitable for long-term stable operation

⚠️ Cons

  1. Conservative Profit Target: 10% initial ROI is lower than subsequent versions
  2. Late Trailing Activation: 1% activation may miss some profits
  3. High Complexity: 38 entry conditions, high learning and debugging costs
  4. High Computation: Requires 480 candles to start, demanding on hardware

VII. Applicable Scenarios

Market EnvironmentRecommended ConfigDescription
Trending UpEnable all conditionsCapture trending returns
Trending DownEnable BTC filtering conditionsAvoid counter-trend trading
Ranging MarketReduce condition countLower trading frequency
High VolatilityTighten stop-loss parametersControl risk

VIII. Summary

NostalgiaForInfinityNextV1 is the solid foundation of the NFI Next series. Its core value lies in:

  1. Stable and Reliable: Parameters are fully verified, suitable for long-term operation
  2. Complete Architecture: 38 entry conditions + multi-layer protection, covering various scenarios
  3. Flexible Configuration: Each condition can be independently controlled, adapting to different needs
  4. Baseline Reference: Provides comparison baseline for subsequent versions

For quantitative traders, NFI Next V1 provides a "steady and solid" starting point. While profit targets are not as aggressive as subsequent versions, its stability and reliability are its greatest advantages. It is recommended that beginners start with V1 and consider upgrading to optimized versions after becoming familiar with the strategy.


This document is written based on NFI Next V1 strategy code analysis