Skip to main content

NostalgiaForInfinityV6HO — Strategy Analysis

I. Strategy Overview

1.1 Strategy Background

NostalgiaForInfinityV6HO is a crypto quantitative trading strategy developed by the iterativ team, specifically designed for the Freqtrade platform. This strategy is the sixth-generation version (V6) of the NostalgiaForInfinity series, with the "HO" suffix indicating it is a Hyper-Optimized variant that enhances strategy adaptability and stability through extensive parameter optimization.

1.2 Core Design Philosophy

The strategy adopts a multi-condition trigger mechanism, combining trend-following and mean-reversion trading logics. Core design principles:

First, Defense Priority: The strategy embeds multi-layer protection mechanisms in buy conditions, including pullback protection (Safe Dips) and surge protection (Safe Pump), effectively avoiding chasing or failed bottom-fishing in extreme market conditions.

Second, Multi-Timeframe Verification: The strategy simultaneously uses 5-minute and 1-hour timeframes for signal verification, improving entry quality through higher-level trend confirmation.

Third, Layered Profit Management: The sell logic adopts a layered profit target system, dynamically adjusting exit conditions based on holding profit magnitude to balance profit maximization and risk control.

1.3 Strategy Positioning

The strategy is positioned for medium-short-term trend trading in the crypto market. Recommended configuration:

  • 4–6 concurrent positions
  • 40–80 trading pair whitelist
  • Stable coin (USDT, BUSD, etc.) quoted pairs
  • Blacklist leveraged tokens (*BULL, *BEAR, *UP, *DOWN, etc.)
  • 5-minute timeframe (mandatory)

1.4 Version Features

Compared to previous generations, V6HO has significant improvements:

  • Buy conditions expanded from single signal to 24 independent conditions, each independently switchable and optimizable
  • Protection mechanisms comprehensively upgraded with three strictness levels for safe pullback and safe surge checks
  • Sell system implements complex layered profit targets via custom_sell method, supporting 60+ independent sell signals

II. Technical Indicator System

2.1 Moving Average System

5-minute EMA Series: EMA12, EMA20, EMA26, EMA50, EMA100, EMA200 — mainly for short-term trend direction and dynamic support/resistance identification. EMA12 and EMA26 golden/death crosses are particularly important as trend reversal signals.

5-minute SMA Series: SMA5, SMA30, SMA200. SMA200 serves as the benchmark for long-term trend judgment. The strategy checks whether SMA200 is rising by comparing its current value with its value N candles ago.

1-hour MA Extension: EMA12, EMA15, EMA20, EMA26, EMA35, EMA50, EMA100, EMA200 calculated on the 1-hour timeframe for confirming higher timeframe trend direction.

2.2 Oscillator System

RSI: 14-period RSI calculated on both 5-minute and 1-hour timeframes. 5-minute RSI captures short-term oversold opportunities; 1-hour RSI confirms trend strength. Buy conditions typically require 5-minute RSI below specific thresholds (usually 20–40), while also requiring 1-hour RSI to be in a reasonable range.

MFI: Combines price and volume information to judge fund inflow/outflow status. Used as auxiliary confirmation in multiple buy conditions, typically requiring MFI below 36–50 thresholds.

Choppiness Index: Used to determine if the market is in a choppy state. Used in Buy Condition 19, requiring Choppiness below 24.1.

2.3 Bollinger Band System

20-period Bollinger Band: Calculated using Typical Price, 2 standard deviations — the strategy's core volatility indicator for judging price position relative to recent volatility range.

40-period Bollinger Band: Calculated using closing price, 2 standard deviations — more stable for volatility reference. Used to calculate derivative indicators: bbdelta (middle-to-lower band distance), closedelta (closing price change), tail (close-to-low distance).

2.4 Special Indicators

EWO (Elliott Wave Oscillator): Formula: (EMA5 - EMA35) / Close × 100. Used to identify Elliott Wave stages. Positive EWO may indicate upward waves; negative indicates downward waves.

CMF (Chaikin Money Flow): 20-period volume-based indicator. Used in Buy Condition 24, requiring CMF to shift from negative to positive.


III. Protection Mechanisms

3.1 Safe Dips (Pullback Protection)

Three strictness levels:

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

3.2 Safe Pump (Surge Protection)

Three time windows (24h/36h/48h) with two condition checks: (1) range percentage change below threshold; (2) adjusted range max gap greater than range height (sufficient pullback occurred).

Level24h Pull Threshold24h Pump Threshold
Normal1.750.60
Strict2.20.42
Loose1.70.66

3.3 Trend Confirmation Protection

SMA200 Rising Check: Compares current SMA200 with SMA200 N periods ago. Different buy conditions use different lookback periods (20 to 50).

EMA Relationship Check: Configurable options: fast EMA above EMA200; slow EMA (1h) above EMA200_1h.

Price Position Check: Configurable whether close price must be above specific EMAs.

3.4 Flexible Protection Configuration

A major improvement in V6HO is that each buy condition independently configures protection mechanisms. This means some conditions can have all protections enabled while others use only partial protections.


IV. Buy Logic Analysis

4.1 Buy Condition Classification

24 conditions, classifiable as:

  • Trend Breakout: Conditions 1, 11, 19
  • Oversold Rebound: Conditions 2, 3, 4, 5, 6
  • Golden Cross Confirmation: Conditions 5, 6, 7, 14, 15
  • Momentum Reversal: Conditions 8, 20, 21
  • Wave Theory: Conditions 12, 13, 16, 17

4.2 Key Buy Conditions

Buy Condition 1 (Trend Breakout):

  • 36-period minimum rise > 2.2%
  • 1h RSI in 30–84 range
  • 5m RSI < 36
  • MFI < 36
  • Protections: SMA200 rising (28 periods), Safe Dips Level 80, Safe Pump Level 70 (24h)

Buy Condition 2 (RSI Divergence + Bollinger Band):

  • 5m RSI significantly below 1h RSI (gap > 39)
  • Price below lower Bollinger Band × 0.983
  • MFI < 49

Buy Condition 3 (Bollinger Band Convergence Breakout):

  • BB40 width > close × 5.9%
  • Close change > close × 2.3%
  • Lower wick < BB width × 41.8%
  • Close below previous BB40 lower band
  • Close ≤ previous close

Buy Conditions 12/13 (EWO Wave Theory):

  • Buy 12: EWO > 1.8, RSI < 30, close < SMA30 × 0.922
  • Buy 13: EWO < -11.8, close < SMA30 × 0.99

Buy Condition 24 (CMF Reversal):

  • 12-period ago EMA12_1h < EMA35_1h → current EMA12_1h > EMA35_1h
  • 12-period ago CMF_1h < 0 → current CMF_1h > 0
  • RSI < 60, RSI_1h > 66.9

V. Sell Logic Analysis

5.1 Sell System Architecture

Standard Sell Signals (populate_exit_trend): 8 base sell conditions based on RSI overbought, Bollinger upper band breakouts, EMA death crosses, etc.

Custom Sell Logic (custom_sell): Complex layered profit target system. Core profit management mechanism of the strategy.

5.2 Standard Sell Conditions

ConditionTriggerSignal
Sell 1RSI > 79.5, 6 consecutive candles above BB upperContinuous breakout
Sell 2RSI > 81, 3 consecutive candles above BB upperShort-term breakout
Sell 3RSI > 82Pure RSI overbought
Sell 45m RSI > 73.4 AND 1h RSI > 79.6Dual timeframe RSI
Sell 6Price below EMA200 but above EMA50, RSI > 79Rebound in downtrend
Sell 71h RSI > 81.7 AND EMA12 crosses below EMA26Death cross + overbought
Sell 8Close > 1h BB upper × 1.1Extreme breakout

5.3 Layered Profit-Taking System

60+ independent sell signals defined in custom_sell:

Profit RangeRSI ThresholdDescription
> 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 profit → looser RSI threshold (more patient); lower profit → stricter RSI threshold (faster exit).

5.4 Trailing Stop Mechanisms

Trail SetProfit RangeRSI RangeDrawdown Threshold
Trail 116%–60%20–503%
Trail 210%–40%20–503%
Trail 36%–20%5% + SMA200_1h falling

5.5 Special State Handling

Pump + Trend Drop: When pump detected AND SMA200 falling AND price below EMA200, use dedicated parameters (signal_profit_p_d_1 to signal_profit_p_d_4) — typically lower profit thresholds for quick exit.


VI. Risk Management System

6.1 Stop Loss Configuration

Fixed Stop Loss: -10% hard stop. Last resort when a single trade loses 10%.

Trailing Stop:

  • trailing_stop_positive = 0.01 (1%)
  • trailing_stop_positive_offset = 0.03 (3%)
  • trailing_only_offset_is_reached = True

6.2 ROI Configuration

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

Used with ignore_roi_if_buy_signal = True — buy signals override ROI limits.

6.3 Position Management

Recommended via Freqtrade config:

  • max_open_trades: 4–6
  • stake_amount: unlimited
  • Dynamic position sizing

6.4 Blacklist Recommendations

Must exclude: leveraged tokens (*BULL, *BEAR, *UP, *DOWN, *3L, *3S, etc.), low-liquidity tokens, newly listed tokens (< 30 days).


VII. Parameter Optimization System

7.1 Parameter Types

DecimalParameter: For numerical parameters with range and default value. IntParameter: For integer parameters. CategoricalParameter: For categorical/boolean parameters (True/False switches).

7.2 Buy Parameter Classification

  • Condition Switch Parameters: buy_condition_1_enable through buy_condition_24_enable
  • Protection Mechanism Parameters: EMA length selection, SMA200 rising periods, Safe Dips type, Safe Pump type and period
  • Threshold Parameters: RSI thresholds, Bollinger Band offsets, EMA open price multiples

7.3 Sell Parameter Classification

  • Standard Sell Parameters: sell_rsi_bb_1 through sell_bb_relative_8
  • Layered Profit Parameters: sell_custom_profit_0 through sell_custom_profit_11 + corresponding RSI thresholds
  • Below EMA200 Parameters: sell_custom_under_profit_0–11 + RSI thresholds
  • Pump State Parameters: Independent parameter groups for 24/36/48h pump states
  • Trailing Stop Parameters: sell_trail_profit_min/max, sell_trail_down, sell_trail_rsi_min/max

VIII. Strategy Advantages and Limitations

✅ Advantages

  1. Multi-Condition Redundancy: 24 buy conditions provide multiple entry opportunities; even if some fail in specific market conditions, others may still generate valid signals.
  2. Layered Protection: Safe Dips and Safe Pump effectively prevent entries in extreme market conditions. Three strictness levels accommodate different risk tolerances.
  3. Dynamic Profit Management: Layered profit targets dynamically adjust exit conditions based on profit magnitude, achieving "higher profit → more aggressive profit-taking."
  4. High Configurability: Each buy condition independently configures protection mechanisms and thresholds.
  5. Multi-Timeframe Verification: 5-minute and 1-hour dual confirmation improves signal quality.

⚠️ Limitations

  1. High Parameter Complexity: 200+ optimizable parameters is both an advantage and disadvantage. Too many parameters increase overfitting risk and make optimization extremely time-consuming.
  2. High Computational Resource Requirements: Many technical indicators need calculation, especially when processing multiple trading pairs simultaneously.
  3. Market Dependence: Performs best in trending markets; may generate many false signals in choppy sideways markets.
  4. Black Swan Risk: No quantitative strategy can predict black swan events.

IX. Summary

NostalgiaForInfinityV6HO is a meticulously designed crypto quantitative trading strategy with these core characteristics:

  1. Systematic Design: Each component — from indicator calculation, protection mechanisms, entry conditions to exit logic — is systematically designed and mutually coordinated.
  2. Multi-Layer Protection: Safe Dips, Safe Pump, trend confirmation and other mechanisms effectively reduce risk exposure in unfavorable market conditions.
  3. Flexible and Configurable: 200+ optimizable parameters provide extreme flexibility.
  4. Professional Implementation: Strategy code structure is clear, following Freqtrade best practices.

For quantitative traders, this is a strategy framework worth in-depth research. But be vigilant about overfitting risks from its complexity. Recommendations:

  • Sufficient backtesting before live deployment
  • Gradual capital deployment: start small, increase gradually
  • Continuous monitoring: regularly check performance against backtest
  • Cautious parameter adjustment: record changes and results for subsequent analysis