Skip to main content

NostalgiaForInfinityV6 — Strategy Analysis

I. Strategy Overview and Design Philosophy

1.1 Strategy Positioning

NostalgiaForInfinityV6 is a professional-grade Freqtrade quantitative trading strategy developed by the iterativ team. With its unique multi-condition trigger mechanism and comprehensive risk protection system, it has gained widespread attention in the crypto quantitative trading field. The strategy name "NostalgiaForInfinity" reflects its inheritance and innovation of traditional technical analysis methods, while showcasing pursuit of infinite possibilities.

1.2 Design Philosophy

The core design philosophy can be summarized as "Multi-layer Protection, Multi-source Signals, Dynamic Adaptation." The strategy does not rely on a single indicator or condition but constructs a complete signal ecosystem that verifies the effectiveness of trading opportunities across multiple dimensions. This design embodies the importance of "redundant verification" in modern quantitative trading — using cross-validation from multiple independent signal sources to reduce misjudgment risk.

The strategy employs modular condition design, organically combining 24 independent buy conditions and 8 sell conditions. Each condition has an independent switch control. This design facilitates strategy optimization and parameter tuning, and more importantly, allows users to flexibly adjust strategy behavior based on market conditions.

1.3 Applicable Scenarios

According to the strategy author's recommendations, the strategy is best suited for:

  • Trading pair count: 40–80 pairs, selected by trading volume ranking
  • Concurrent positions: 4–6 open trades
  • Trading pair type: Stable coin quoted (USDT, BUSD, etc.), avoid BTC or ETH quoted pairs
  • Blacklist: Must exclude leveraged tokens (*BULL, *BEAR, *UP, *DOWN, etc.)
  • Timeframe: Must use 5-minute candlesticks

II. Technical Indicator System

2.1 Moving Average System

The strategy constructs a complete multi-level moving average system — the core framework of the entire strategy.

EMA System: The strategy calculates multiple EMA lines on both 5-minute and 1-hour timeframes, including EMA12, EMA15, EMA20, EMA26, EMA35, EMA50, EMA100, and EMA200. These MAs are not only used for trend judgment but are widely applied for cross-verification and dynamic support/resistance identification.

SMA System: The strategy calculates SMA5, SMA30, and SMA200, where SMA200 is given special status for judging the market's long-term trend direction. The strategy particularly focuses on SMA200 slope changes, using comparisons between current and historical values to determine whether the trend is rising or falling.

Dual Timeframe Design: The strategy simultaneously uses data from 5-minute and 1-hour timeframes. 1-hour data is merged into the main dataframe through the merge_informative_pair function, with all 1-hour indicators carrying the _1h suffix. This design allows the strategy to examine the market from a more macro perspective, avoiding being misled by short-term noise.

2.2 Oscillators

RSI (Relative Strength Index): The strategy uses a 14-period RSI, extensively applied in both buy and sell logic. Typical RSI applications include: identifying oversold areas (look for buy opportunities when RSI is below a threshold), identifying overbought areas (consider selling when RSI is above a threshold), and RSI divergence identification. The strategy calculates RSI on both timeframes, enabling cross-timeframe verification.

MFI (Money Flow Index): MFI combines price and volume information to reflect the intensity of fund flows into and out of the market. The strategy uses MFI as auxiliary confirmation in multiple buy conditions, typically requiring MFI to be below a specific threshold (often 36–50), indicating that fund outflow has reached a certain level and may form a buying opportunity.

Choppiness Index: A 14-period oscillator used to determine whether the market is in a trending or sideways state. The strategy uses this indicator in Buy Condition 19, requiring the Choppiness value to be below 24.1, indicating the market is in a trending state rather than choppy.

2.3 Volatility Indicators

Bollinger Band System: The strategy uses two sets of Bollinger Bands — 20-period and 40-period. Main applications:

  • Price touching the lower band for oversold judgment
  • Bollinger Band width (bbdelta) for measuring volatility contraction
  • Price breaking through the upper band for overbought judgment

Custom Bollinger Band Parameters: The strategy calculates multiple Bollinger Band derivative indicators:

  • bbdelta: Distance between the middle and lower band
  • closedelta: Change in consecutive closing prices
  • tail: Distance between the close price and the low (lower wick)

2.4 Custom Indicators

EWO (Elliott Wave Oscillator): The strategy implements a custom EWO indicator, calculated as EMA5 minus EMA35 divided by the close price, multiplied by 100. EWO is used to identify specific stages within Elliott Wave structures. The strategy uses EWO positive/negative values in multiple buy conditions to distinguish different market states.

CMF (Chaikin Money Flow): A 20-period indicator. CMF plays a key role in Buy Condition 24, used to confirm the positive/negative shift in fund flow direction. CMF shifting from negative to positive is typically seen as a signal that funds have started flowing in.


III. Buy Signal System

3.1 Buy Condition Architecture

The strategy defines 24 independent buy conditions, each with an independent switch control. This "signal combination" approach uses a voting mechanism from multiple independent signal sources to improve signal quality.

Each buy condition follows a "protection conditions + logic conditions" pattern:

  • Protection Conditions: Ensure the trade occurs in a safe market environment
  • Logic Conditions: Define the specific entry trigger moment

3.2 Protection Conditions Explained

EMA Fast/Slow Protection: Checks whether the short MA is above the long MA. Default: EMA26 > EMA100.

Close Price Position Protection: Two variants:

  • close_above_ema_fast: Close above fast EMA (5m)
  • close_above_ema_slow: Close above slow EMA (1h)

SMA200 Trend Protection: Compares current SMA200 with its value N candles ago to judge trend direction. Default lookback: 36 candles (~3 hours).

Safe Dips Protection — Three strictness levels:

ModeCurrent Candle2 Candles12 Candles144 Candles
Normal< 2%< 14%< 32%< 50%
Strict< 1.5%< 10%< 24%< 42%
Loose< 2.6%< 24%< 42%< 80%

Safe Pump Protection: Prevents chasing after rapid surges. Checks volatility amplitude over the past 24/36/48 hours, combined with pullback depth to determine entry safety.

3.3 Key Buy Conditions

Buy Condition 1 (Main Signal):

  • 36-candle minimum price rise from low > 2.2%
  • 1h RSI in the 30–84 range
  • 5m RSI < 36
  • MFI < 36
  • Multiple protection conditions enabled

Buy Condition 3 (Bollinger Band Mean Reversion):

  • Price below lower Bollinger Band
  • Bollinger Band width sufficient (bbdelta > close × 5.7%)
  • Close price change sufficient (closedelta > close × 2.3%)
  • Short lower wick (tail < bbdelta × 41.8%)
  • Close price near or below previous candle

Buy Condition 8 (Bottom Reversal):

  • RSI < 20 (extreme oversold)
  • Volume > 2× previous candle
  • Close > Open (bullish candle)
  • Long lower wick

Buy Condition 24 (Trend Conversion):

  • 1h EMA12 crosses above EMA35 (golden cross)
  • 1h CMF shifts from negative to positive
  • 5m RSI < 60, 1h RSI > 66.9
  • SMA200 rising trend protection enabled

IV. Sell Signal System

4.1 Sell Condition Architecture

8 base sell conditions plus the dynamic profit-taking system implemented via custom_sell. The sell system follows the principle of "take profits when available, track profits dynamically."

4.2 Technical Sell Conditions

  • Sell 1–2: Bollinger Upper Band Breakout with RSI above 79.5 or 81
  • Sell 3: Pure RSI > 82
  • Sell 4: 5m RSI > 73.4 AND 1h RSI > 79.6
  • Sell 6: Price below EMA200 but above EMA50, RSI > 79
  • Sell 7: 1h RSI > 81.7 AND EMA12 crosses below EMA26
  • Sell 8: Close exceeds 1h Bollinger upper band by 1.1×

4.3 Custom Sell Dynamic Profit-Taking System

The custom_sell function implements a sophisticated multi-level profit-taking system — the strategy's most distinctive feature.

Profit RangeRSI ThresholdSignal Name
> 20%< 34signal_profit_11
12%–20%< 42signal_profit_10
10%–12%< 50signal_profit_9
9%–10%< 54signal_profit_8
.........
1%–2%< 34signal_profit_1

Design Logic: Higher profits warrant more patience (lower RSI threshold); lower profits require quicker exits.

Below EMA200: Independent profit-RSI combinations, more aggressive profit-taking.

Pump State: Dedicated parameters for coins that recently surged significantly.

Trailing Stop: Three modes combining highest profit and current profit drawdown with RSI state.


V. Risk Management

5.1 Static Stop Loss

-10% fixed stop loss, a relatively wide stop reflecting the strategy's recognition of crypto market volatility.

5.2 Dynamic Trailing Stop

ParameterValue
trailing_stopTrue
trailing_stop_positive0.01 (1%)
trailing_stop_positive_offset0.03 (3%)
trailing_only_offset_is_reachedTrue

5.3 ROI Settings

"0": 0.10    # Immediate: 10% profit
"30": 0.05 # After 30 min: 5% profit
"60": 0.02 # After 60 min: 2% profit

5.4 Protection Mechanisms

Safe Dips: Prevents catching a falling knife. Checks pullback magnitudes across multiple time periods.

Safe Pump: Prevents chasing at the top. Checks volatility amplitudes over the past 24/36/48 hours.


VI. Multi-Timeframe Coordination

6.1 Dual Timeframe Design

  • 5-minute: Main timeframe — precise entry/exit points
  • 1-hour: Informative timeframe — trend confirmation, protection checks

1-hour data is merged via merge_informative_pair, carrying the _1h suffix. Freqtrade handles time alignment with forward-fill (ffill) for missing values.

6.2 Cross-Timeframe Verification

  • EMA Trend Verification: Requires 1h EMA fast line to be above the slow line
  • SMA200 Trend Verification: Requires 1h SMA200 to be rising
  • RSI Cross-Timeframe: Some conditions require 5m RSI to be significantly below 1h RSI (Buy Condition 2: RSI < RSI_1h - 39)

VII. Strategy Features

7.1 Modular Design

Each buy condition is an independent module that can be individually enabled or disabled. This brings several advantages:

  • Easy to adjust the strategy for specific market environments
  • Convenient for parameter sensitivity analysis
  • Supports incremental optimization

7.2 Protection Condition System

The protection condition system is the strategy's core innovation. Each buy signal can be configured with an independent protection condition combination, rather than using global protection. This allows the strategy to adopt different risk appetites in different market states.

7.3 Multi-Level Profit-Taking

The custom_sell multi-level profit-taking is another major feature. Traditional profit-taking strategies typically use fixed profit percentages or trailing stops, while this strategy implements "profit-RSI linkage" dynamic profit-taking.

Core concept: When profits are high, investors have more patience to wait for better exit timing (lower RSI required); when profits are low, they should exit faster (exit as soon as RSI shows overbought).

7.4 Pump/Dip Detection

The strategy implements a complete price anomaly detection system. By checking price volatility over the past 24/36/48 hours, it identifies whether the market is in an abnormal state. In Pump states, the strategy adjusts profit-taking parameters; in Dip states, it restricts entries.


VIII. Configuration and Optimization Recommendations

8.1 Configuration Recommendations

Exchange Selection: Use mainstream exchanges with good liquidity like Binance, KuCoin, etc.

Trading Pair Selection: Use VolumePairList with 40–80 pairs. Avoid trading pairs with excessively low volume.

Capital Management: 4–6 concurrent positions recommended, using unlimited stake mode.

Blacklist: Must exclude leveraged tokens, stable coin trading pairs, and newly listed coins.

8.2 Optimization Recommendations

Backtesting Period: Use at least 1 year of historical data covering both bull and bear markets.

Parameter Optimization: Prioritize protection condition parameters (Dip and Pump thresholds), as these are most sensitive to risk adjustment. Core parameters for buy/sell signals have been extensively validated.

Forward Testing: After optimization, conduct forward testing (paper trading or dry-run) to verify live performance.

8.3 Risk Warnings

  • Market Risk: Primarily designed for trending markets; may have frequent stop-loss triggers in sideways markets.
  • Parameter Risk: Over-optimization may lead to overfitting. Use walk-forward analysis to verify parameter stability.
  • Execution Risk: Uses 5-minute timeframe with some execution speed requirements. In highly volatile markets, actual fill prices may deviate from expectations.

IX. Strategy Summary

NostalgiaForInfinityV6 is a meticulously designed quantitative trading strategy whose core advantages are:

  1. Signal Diversity: 24 buy conditions and multi-level sell mechanisms ensure the strategy can capture various market opportunities.
  2. Risk Control: Safe Dips and Safe Pump protections effectively reduce the risk of chasing and panic selling. Multi-level profit-taking protects profits while giving trends room to develop.
  3. Flexibility: Modular design allows users to adjust strategy behavior based on risk preference. Extensive configurable parameters support fine-tuning.
  4. Cross-Timeframe Verification: Dual timeframe design combines short-term signal sensitivity with mid-term trend stability.
  5. Dynamic Adaptation: Pump/Dip detection and corresponding parameter adjustments allow the strategy to adapt to different market microstructures.

Potential improvements: introducing machine learning models for signal filtering, adding market state classification mechanisms, and optimizing execution algorithms to reduce slippage.

Overall, NostalgiaForInfinityV6 is an excellent strategy framework worthy of in-depth research and live trading verification. Its design philosophy — multi-layer protection, multi-source signals, dynamic adaptation — holds significant reference value for quantitative trading strategy development.