Skip to main content

NFI5MOHO Strategy Analysis

Strategy ID: #269 (269th of 465 strategies)
Strategy Type: Multi-condition Trend Following + Multiple Protection Mechanisms
Timeframe: 5 Minutes (5m), Auxiliary Timeframe 1 Hour (1h)


I. Strategy Overview

NFI5MOHO is a highly complex quantitative strategy evolved from NostalgiaForInfinityV5, fusing MultiOffsetLamboV0 and hyperparameter optimization techniques. The strategy captures various market opportunities through 21 independent entry conditions and 8 sell conditions, paired with multi-layer protection mechanisms, building a highly adaptive trading system.

Core design philosophy: "Multi-Entry, Strict Protection, Flexible Take-Profit" — capturing various market opportunities through rich entry conditions while filtering dangerous signals through strict protection mechanisms, ultimately locking in profits through a tiered take-profit system.

Core Features

FeatureDescription
Entry Conditions21 independent buy signals, independently enableable/disableable
Exit Conditions8 basic sell signals + 5-level custom take-profit + 3 trailing take-profit systems
Protection Mechanisms3 Dip protection classes + 9 Pump protection parameter groups + 5 MA offset systems
Timeframe5m primary + 1h informational
Dependenciesfreqtrade, talib, numpy, pandas, qtpylib

II. Strategy Configuration Analysis

2.1 Basic Risk Parameters

# ROI Exit Table
minimal_roi = {
"0": 0.08, # 0 minutes: 8% profit
"60": 0.04, # 60 minutes: 4% profit
"90": 0.02, # 90 minutes: 2% profit
"120": 0.01 # 120 minutes: 1% profit
}

# Stop Loss
stoploss = -0.1 # 10% fixed stop loss

# Trailing Stop
trailing_stop = True
trailing_only_offset_is_reached = True
trailing_stop_positive = 0.02 # Starts trailing after 2% profit
trailing_stop_positive_offset = 0.06 # Activates trailing only after 6% profit

Design Philosophy:

  • ROI uses progressive design: the longer the holding period, the lower the take-profit threshold, encouraging quick profit-taking
  • 10% fixed stop loss is relatively loose, giving price fluctuations ample room
  • Trailing stop design is sophisticated: only trails after profit reaches 6%, with 2% trailing distance, avoiding being shaken out too early

III. Entry Conditions Details

3.1 Protection Mechanisms (3 Classes, 9 Groups)

Dip Protection (Decline Protection)

Protection TypeParameter CountMechanism
Normal Dip Protection4 thresholdsCheck current, 2-period, 12-period, 144-period max decline
Strict Dip Protection4 thresholdsStricter decline limits, prevents bottom-fishing during crashes
Loose Dip Protection4 thresholdsRelatively loose decline limits, allows larger fluctuations

Pump Protection (Surge Protection)

3 sets of time windows (24h/36h/48h), each with Normal/Strict/Loose:

Time WindowNormal ThresholdStrict ThresholdLoose Threshold
24 hours1.75 / 0.502.20 / 0.401.70 / 0.66
36 hours1.75 / 0.562.00 / 0.561.70 / 0.70
48 hours1.75 / 0.852.00 / 0.681.40 / 1.30

3.2 Multi-MA Offset Buy System

5 MA types with independent offset buy logic:

MA TypeBuy Offset ParameterSell Offset ParameterDescription
SMA0.9551.051Simple Moving Average
EMA0.9291.047Exponential Moving Average
TRIMA0.9491.096Triangular Moving Average
T30.9750.999T3 Smooth Moving Average
KAMA0.9721.070Kaufman Adaptive Moving Average

3.3 Classification of 21 Entry Conditions

Condition GroupCondition NumbersCore Logic
Basic Bottom-Fish1-4Dip protection + Pump protection, buy at safe decline
Strict Bottom-Fish5-8Stricter conditions, RSI, MFI, Bollinger Band
Loose Bottom-Fish9-12Relaxed conditions, capture more opportunities
Trend Pullback13-17EWO indicator combined with MA offset, capture trend pullbacks
Extreme Oversold Rebound18-21RSI extreme oversold + 1h RSI confirmation, bet on rebound

IV. Exit Conditions Details

4.1 Multi-Layer Take-Profit System

5-level custom take-profit + 3 trailing take-profit combination:

Profit RangeRSI ThresholdSignal Name
1% - 10%RSI < 33Custom take-profit level 0
1% - 10%RSI < 38Custom take-profit level 1
1% - 10%RSI < 43Custom take-profit level 2
6% - 30%RSI < 48Custom take-profit level 3
30% - 60%RSI < 50Custom take-profit level 4

4.2 Trailing Take-Profit System

Trailing SystemProfit RangeTrailing Drawback Threshold
Trailing System 115% - 46%18% drawback
Trailing System 21% - 12%14% drawback
Trailing System 35% - 10%1% drawback

V. Risk Management Highlights

5.1 Triple Dip Protection System

Protection LevelCurrent Candle2-Period12-Period144-PeriodApplicable Scenario
Normal<2%<14%<32%<50%Normal markets
Strict<1.5%<6%<24%<40%Ranging/bear markets
Loose<2.6%<24%<42%<66%Bull markets

5.2 EWO Trend Filtering

The strategy only enters when EWO is at extreme values:

# Entry condition
(ewo < -8.5) | (ewo > 4.3) # Extreme oversold or overbought

This ensures entries only when trends are clear, avoiding false signals in ranging markets.


VI. Strategy Pros & Cons

✅ Pros

  1. Rich Entry Conditions: 21 entry conditions covering various market scenarios
  2. Complete Protection: Triple Dip protection + nine Pump protection groups, effectively avoiding buying at highs and bottom-fishing in crashes
  3. Flexible Take-Profit System: 5-level custom take-profit + 3 trailing take-profit, balancing quick profit-taking and trend-following
  4. Multi-Timeframe Confirmation: Primary 5m + informational 1h, dual confirmation improves reliability
  5. Strong Optimizability: Large parameter count supports Hyperopt optimization

⚠️ Cons

  1. High Complexity: Code exceeds 600 lines, parameters exceed 100, extremely high understanding and tuning cost
  2. Overfitting Risk: Large parameter count optimized through Hyperopt, historical performance may be better than live performance
  3. Computationally Intensive: Requires computing many indicators, demanding on VPS performance
  4. Delay Risk: Complex logic may cause signal delays, missing optimal entry timing

VII. Summary

NFI5MOHO is a highly complex, parameter-rich multi-condition trend-following strategy. Its core value lies in:

  1. Rich Signals: 21 entry conditions capturing opportunities from multiple angles, "wide net" strategy
  2. Comprehensive Protection: Dip/Pump dual protection mechanism, effectively reducing risk exposure
  3. Flexible Take-Profit: Tiered take-profit + trailing take-profit combination, balancing profit locking and trend-following
  4. Strong Optimizability: Large parameter count supports Hyperopt, customizable to personal style

For quantitative traders, this strategy suits users with some experience who can understand complex logic, have sufficient hardware resources, and are willing to invest time in parameter tuning. Beginners should start with simplified versions and gradually understand before using the full version.