Skip to main content

NostalgiaForInfinity Strategy: In-Depth Analysis

Strategy ID: #246 (Strategy #246 of 465) Strategy Type: NFI Series - Classic Nostalgia For Infinity Timeframe: 15 Minutes (15m)


I. Strategy Overview

NostalgiaForInfinity (abbreviated NFI) is one of the most representative strategies on the Freqtrade quantitative trading platform, originating from the continuation and expansion of the Nostalgia strategy. The name "Nostalgia For Infinity" hints at the inheritance of classic trading wisdom and infinite exploration.

NFI is the original version and core foundation of the NFI series strategy. All subsequent NFI variants (ProAI, UO, SMA, Ninja, etc.) are built upon this architecture. It is renowned for its complex multi-condition architecture, rich protection mechanisms, and long-term market-validated stability.

Core Characteristics

FeatureDescription
Entry ConditionsMultiple complex entry signals covering various technical indicator combinations
Exit ConditionsMulti-layer dynamic take-profit + stop-loss protection
Protection MechanismsMulti-group EMA/SMA protection + trend filtering + volatility control
Timeframe15-minute primary timeframe + 1-hour information timeframe
Dependenciespandas, numpy, TA-Lib, technical

II. Strategy Configuration Analysis

2.1 Core Risk Parameters

# ROI Exit Table (Time: Minimum Profit Rate)
minimal_roi = {
"0": 0.10, # Immediate exit: 10% profit
"30": 0.06, # After 30 minutes: 6% profit
"60": 0.03, # After 60 minutes: 3% profit
"120": 0.015 # After 120 minutes: 1.5% 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.03 # 3% trailing activation point
trailing_stop_positive_offset = 0.05 # 5% offset trigger

Design Philosophy:

  • Conservative ROI Target: Initial 10%, reflecting a conservative trading style
  • Moderate Stop-Loss: -10%, giving the market sufficient volatility room
  • Progressive Trailing: 3% activation, suitable for trend continuation

2.2 Order Type Configuration

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

III. Entry Conditions Details

3.1 Protection Mechanisms (Multiple Groups)

NFI's protection mechanisms are one of its core features, with each entry condition having independent protection parameters:

Protection TypeParametersFunction
EMA Trend ProtectionFast EMA vs. slow EMA relationshipDetermine long/short trend
SMA SupportPrice vs. SMA position relationshipFilter counter-trend trades
Volatility ControlSafe down/up thresholdsAvoid chasing highs and lows
Time FilteringHolding time and cross-validationPrevent premature entry
Volume ConfirmationOBV trend verificationConfirm fund flow direction

3.2 Core Entry Condition Types

Condition Group 1: RSI Oversold + MA Support

  • RSI below specific threshold (oversold zone)
  • Price above key moving average
  • Momentum indicator confirmation

Condition Group 2: Bollinger Band Lower Band Bounce

  • Price touches or breaks below Bollinger Band lower band
  • Bounces upon receiving support
  • Volume confirmation

Condition Group 3: MA Golden Cross Confirmation

  • Short-term MA crosses above long-term MA
  • Price stands above MAs
  • Trend upward confirmation

Condition Group 4: Divergence Signal

  • Price makes new low but indicator does not make new low
  • Bullish divergence signal
  • Momentum strengthening confirmation

3.3 Entry Conditions Summary Table

Condition GroupSignal TypeCore Indicators
RSI OversoldReversal signalRSI, MFI
Bollinger Band SupportRebound signalBollinger Bands
MA Golden CrossTrend signalEMA, SMA
DivergenceReversal warningPrice vs. Indicator

IV. Exit Logic Details

4.1 Multi-Layer Take-Profit System

NFI employs a progressive take-profit strategy:

Profit Rate Zone     Threshold       Signal Name
─────────────────────────────────────────────
0-30 minutes 10% Quick Profit
30-60 minutes 6% Medium-term Target
60-120 minutes 3% Conservative Exit
120+ minutes 1.5% End-of-Session Breakeven

4.2 Special Exit Scenarios

ScenarioTrigger ConditionSignal Name
Death CrossShort-term MA crosses below long-term MATrend Exit
RSI OverboughtRSI exceeds specific thresholdMomentum Exit
Bollinger Upper BandPrice touches upper bandResistance Exit
Trend ReversalPrice breaks below key MA groupTrend Exit
Stop-Loss TriggeredLoss reaches 10%Hard Stop

4.3 Basic Exit Signals

  1. Death Cross: Classic signal of trend weakening
  2. RSI Overbought: Momentum reaches extreme
  3. Bollinger Upper Band: Encountering technical resistance
  4. Trailing Stop Triggered: Profit retraces to threshold

V. Technical Indicator System

5.1 Core Indicators

Indicator CategorySpecific IndicatorsPurpose
TrendEMA (26, 100, 200), SMA (200)Determine direction
MomentumRSI (14), MFI (14)Measure momentum
VolatilityBollinger Bands, ATRMeasure volatility
VolumeOBVFund flow direction

5.2 Information Timeframe Indicators (1-Hour)

IndicatorPurpose
EMA 100Long-term trend judgment
EMA 200Super trend line
RSIHigh-period momentum confirmation

VI. Risk Management Features

6.1 Multi-Layer Protection Mechanism

Protection TypeFunctionEnabled Condition
Trend FilteringOnly trade with the trendPrice above EMA200
Volatility ProtectionAvoid extreme volatilitySafe down/up thresholds
Time ProtectionPrevent premature tradingHolding time verification
Cross ValidationMultiple indicator confirmationMultiple indicators simultaneously met

6.2 Traditional Risk Control Retained

TypeParameters
Fixed Stop-Loss-10%
Trailing Stop3-5%
ROI Take-ProfitTiered exit

VII. Strategy Pros & Cons

✅ Pros

  1. Multi-Condition Architecture: 31+ entry conditions covering various market scenarios
  2. Mature and Stable: Long-term market validated
  3. Complete Protection: Multi-layer protection mechanisms
  4. Strong Adaptability: Adjustable for different market environments
  5. Community Recognition: Widely used and optimized by many users

⚠️ Cons

  1. High Complexity: Steep learning curve
  2. Many Parameters: High configuration difficulty
  3. Computational Resources: Some hardware requirements
  4. Overfitting Risk: Common weakness of complex strategies
  5. Signal Lag: Some conditions respond slowly

VIII. Applicable Scenarios

Market EnvironmentRecommended ConfigDescription
Trending UpEnable long conditionsFollow the trend
Trending DownEnable short conditionsCapture declines
Ranging MarketTighten protection parametersReduce false signals
High VolatilityReduce position sizeControl risk

IX. Applicable Market Environment Details

9.1 NFI Strategy Positioning

NostalgiaForInfinity is the core and origin of the NFI series. Its design philosophy is:

"Use the most complex architecture to capture the most certain opportunities"

  • Multi-Condition Confirmation: Rather miss than trade wrongly
  • Multi-Layer Protection: Every signal is cross-validated
  • Trend Priority: Only trade with the trend
  • Stability First: Pursue long-term stable profitability

9.2 Performance in Different Market Environments

Market TypeRatingAnalysis
📈 Trending Up⭐⭐⭐⭐⭐MA multi-asset bullish, signals clear
📉 Trending Down⭐⭐⭐⭐⭐MA multi-asset bearish, can short
🔄 Ranging Market⭐⭐⭐☆☆Protection mechanisms filter false signals
⚡️ High Volatility⭐⭐⭐⭐☆High volatility brings profit opportunities

9.3 Key Configuration Recommendations

Config ItemRecommended ValueDescription
Number of Pairs5-15Diversify risk
Starting CapitalSufficient for 15m cycleAvoid frequent top-ups
Backtest Period6+ monthsSufficient sample validation
Protection MechanismsAdjust per marketCan relax in bull markets

X. Summary

NostalgiaForInfinity is the core and foundation of the NFI series. Its core value lies in:

  1. Multi-Condition Architecture: 31+ entry conditions covering various scenarios
  2. Multi-Layer Protection: Every signal is multiple verified
  3. Mature and Stable: Long-term market validated
  4. Continuous Evolution: Spawned numerous variant strategies

For quantitative traders, NFI is the best example for learning Freqtrade strategy development and is one of the top choices for pursuing stable profitability. However, it requires sufficient time to learn its complex architecture and adequate backtesting verification before live trading.


This document is written based on the NFI strategy common architecture Strategy ID: #246 (Strategy #246 of 465)