Skip to main content

NfiNextModded Strategy Analysis

Strategy ID: #282 (282nd of 465 strategies)
Strategy Type: Multi-Condition Trend Following + Community-Optimized Protection Mechanisms
Timeframe: 5 Minutes (5m)


I. Strategy Overview

NfiNextModded is a community-modified version of NostalgiaForInfinityNext, featuring multiple optimizations and enhancements over the original Next version. "Modded" means modified, typically revised by community developers based on live-trading experience, including parameter tuning, condition additions/deletions, and bug fixes.

Core Features

FeatureDescription
Entry Conditions42 independent buy signals (4 more than the original Next)
Exit ConditionsMulti-layer dynamic take-profit + community-optimized exit logic
Protection Mechanisms42 sets of buy protection parameters + enhanced risk control module
Timeframe5-minute primary timeframe + 1-hour/1-day informational timeframes
DependenciesTA-Lib, technical, qtpylib, pandas_ta

II. Strategy Configuration Analysis

2.1 Basic Risk Parameters

# ROI Exit Table (time: minimum profit rate)
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:

  • Uses a time-decaying ROI strategy: the longer the holding period, the lower the exit threshold
  • Pairs with trailing stop to lock in profits, suitable for trending markets
  • Hard stop-loss at -10% controls maximum loss per trade
  • Modded version may have adjusted trailing stop parameters for different market conditions

2.2 Order Type Configuration

order_types = {
'entry': 'limit',
'exit': 'limit',
'stoploss': 'limit',
'stoploss_on_exchange': False,
'stoploss_on_exchange_interval': 60,
'stoploss_on_exchange_limit_ratio': 0.99
}

III. Entry Conditions Details

3.1 Protection Mechanisms (42 Sets)

Each entry condition has an independent protection parameter set, with the Modded version enhancing the following protections:

Protection TypeParameter DescriptionModded Optimization
Fast EMAWhether fast EMA is above EMA200Adjusted period parameters
Slow EMAWhether 1h slow EMA is above EMA200Added trend filtering
Close Price ProtectionWhether close price is above EMAOptimized threshold calculation
SMA200 RisingWhether SMA200 is in an uptrendAdded stability check
Safe DipDip magnitude threshold protectionExtended protection levels
Safe PumpPump magnitude threshold protection (anti-chase)Optimized pump detection
BTC TrendWhether BTC 1h is not in a downtrendEnhanced market correlation
Volume FilterVolume confirmation mechanismNew community optimization

3.2 Typical Entry Condition Examples

Condition #1: RSI Oversold + Low MFI

# Logic
- RSI(1h) between 30-84
- RSI(14) < 36 (oversold zone)
- MFI < 44 (low money flow)
- Price has minimum rise from 36-period low

Condition #2: Bollinger Band Lower Band Breakout

# Logic
- RSI < RSI(1h) - 39 (relatively weak)
- MFI < 49
- Close price < BB lower band × 0.983 (deep break)

Condition #3: Bollinger Band 40-Period Reversal

# Logic
- BB40 lower band > 0
- BB40 bandwidth change > close price × 5.9%
- Close change > close price × 2.3%
- Tail < BB40 bandwidth × 41.8%
- Close price < previous BB40 lower band

Conditions #5-7: EMA Crossover + Bollinger Band

# Common Logic
- EMA26 > EMA12 (golden cross)
- EMA difference > open price × coefficient
- Close price < BB lower band × offset coefficient

3.3 42 Entry Conditions Classification

Condition GroupCondition NumbersCore Logic
Oversold Rebound1, 7, 8, 18, 20, 21, 38RSI/MFI low value + oversold signal
Bollinger Band Strategy2, 3, 4, 5, 6, 9, 10, 14, 18, 22, 23Price breaks BB lower band
EMA Trend5, 6, 7, 14, 15, 39, 40EMA golden cross + price position
SMA Offset9, 10, 11, 12, 13, 16, 17Price below SMA at specific ratio
EWO Momentum12, 13, 16, 17, 22, 23Elliott Wave Oscillator
Special Conditions19, 24, 25, 26, 27, 41, 42Combined indicators (Chopiness, Zema, Hull, Williams %R)
Modded New Additions38, 39, 40, 41, 42Community-optimized conditions

3.4 Modded New Conditions (#38-42)

# Condition #38: Enhanced RSI Rebound
- RSI(14) < 30 (extreme oversold)
- RSI(1h) > 25 (1h level not extreme)
- Volume > average × 1.2

# Condition #39: EMA Trend Confirmation
- EMA20 > EMA50 > EMA100 (bullish alignment)
- Price pulls back to EMA20 area

# Condition #40: Multi-Timeframe Resonance
- 5m RSI < 35
- 1h RSI in 40-60 range
- 1d trend upward

# Condition #41: Volume Breakout Confirmation
- Price breaks BB middle band
- Volume > average × 1.5
- OBV rising

# Condition #42: Comprehensive Oversold Rebound
- RSI < 35
- MFI < 30
- Price < EMA50
- But close price > low × 1.02 (price stabilization signal)

IV. Exit Logic Details

4.1 Multi-Layer Take-Profit System

The strategy uses a tiered take-profit mechanism, dynamically adjusting exit conditions based on profit rate:

Profit Range          RSI Threshold    Signal Name
─────────────────────────────────────────────────────
> 20% < 34 signal_profit_11
16%-20% < 42 signal_profit_10
14%-16% < 54 signal_profit_9
12%-14% < 55 signal_profit_8
10%-12% < 54 signal_profit_7
8%-10% < 52 signal_profit_6
7%-8% < 45 signal_profit_5
6%-7% < 43 signal_profit_4
5%-6% < 42 signal_profit_3
4%-5% < 37 signal_profit_2
3%-4% < 35 signal_profit_1
2%-3% < 34 signal_profit_0

4.2 Special Exit Scenarios

ScenarioTrigger ConditionSignal Name
EMA200 Below ExitPrice < EMA200 + profit threshold metsignal_profit_u_*
Pump Protection48h/36h/24h pump detection + profitsignal_profit_p_*
DowntrendSMA200 declining + profit rangesignal_profit_d_*
Trailing Take-ProfitMax profit drawdown + RSI rangesignal_profit_t_*
Holding DurationHeld > 900 minutes + profitsignal_profit_l_1
Williams %RR(480) > threshold + profitsignal_profit_w_*

4.3 Base Sell Signals

# Sell Signal 1: Continuous BB upper band breakout
- RSI > 79.5
- Close price > BB20 upper band (5 consecutive candles)

# Sell Signal 2: Short-term overbought
- RSI > 81
- Close price > BB20 upper band (2 consecutive candles)

# Sell Signal 4: Dual RSI overbought
- RSI > 73.4
- RSI(1h) > 79.6

# Sell Signal 6: EMA below overbought
- Close price < EMA200
- Close price > EMA50
- RSI > 79

# Sell Signal 7: 1h RSI extreme + EMA death cross
- RSI(1h) > 81.7
- EMA12 crosses below EMA26

4.4 Modded Optimized Exits

The Modded version may include the following exit optimizations:

  • More sensitive take-profit trigger conditions
  • Optimized trailing stop parameters
  • Enhanced market state detection

V. Technical Indicator System

5.1 Core Indicators

Indicator CategorySpecific IndicatorsPurpose
Trend IndicatorsEMA(12,15,20,25,26,35,50,100,200)Trend judgment, protection mechanisms
Momentum IndicatorsRSI(4,14,20), MFI, EWOOverbought/oversold, momentum strength
Volatility IndicatorsBollinger Bands(20,2), BB(40,2)Price boundaries, breakout signals
Money FlowCMF(20)Capital inflow/outflow
Special IndicatorsWilliams %R(480), StochRSI(96)Extreme market identification
Custom IndicatorsTSI, Hull(75), Zema(61), Zlema(68)Smoothed trends, lag reduction

5.2 Informational Timeframe Indicators (1h / 1d)

The strategy uses multi-timeframe as an information layer, providing higher-dimensional trend judgment:

  • EMA/SMA trend confirmation
  • RSI overbought/oversold (1h level)
  • Pump/dip protection detection (24h/36h/48h)
  • BTC trend correlation analysis
  • 1d level long-term trend confirmation

VI. Risk Management Features

6.1 Dip Protection (Safe Dips)

11 levels of dip threshold protection, from strict to relaxed:

Level    Threshold 1    Threshold 2    Threshold 3    Threshold 4
──────────────────────────────────────────────────────────────────
10 1.5% 10% 24% 42%
50 2.0% 14% 32% 50%
80 2.4% 22% 38% 66%
100 2.6% 24% 42% 80%
110 2.7% 26% 44% 84%

6.2 Pump Protection (Safe Pump)

12 levels of pump detection to prevent chasing:

  • Detection periods: 24h / 36h / 48h
  • Threshold range: 0.42 - 2.0 (42% - 200% rise)
  • Drawdown threshold: 1.4 - 3.0

6.3 Hold Trades

Supports external config file hold-trades.json to specify certain trading pairs to hold until target profit rate:

{
"profit_ratio": 0.005,
"trade_ids": [123, 456]
}

6.4 Modded Enhanced Risk Control

The Modded version may include:

  • Optimized stop-loss trigger mechanism
  • Enhanced market state detection
  • Improved position management logic

VII. Strategy Pros & Cons

Advantages

  1. Community Optimized: Incorporates community live-trading experience, fixes known issues
  2. Richer Conditions: 42 entry conditions, 4 more than the original
  3. More Complete Protection: Enhanced risk control module
  4. Multi-Timeframe: 5m execution + 1h trend confirmation + 1d long-term trend + BTC correlation analysis
  5. Classic Indicator Combinations: Integrates Bollinger Bands, RSI, EMA, EWO and other classic indicators

Limitations

  1. Higher Complexity: 42 conditions, many parameters, difficult optimization
  2. Depends on Historical Data: Requires sufficient 1h and 5m historical data
  3. External Dependencies: Requires TA-Lib and technical library support
  4. Overfitting Risk: 42 conditions may lead to overfitting historical data
  5. Computationally Intensive: Each cycle calculates many indicators, demanding on performance
  6. Version Maintenance: Modded versions may have multiple branches, source verification needed

VIII. Applicable Scenarios

Market EnvironmentRecommended ConfigurationDescription
Ranging MarketEnable conditions 2,3,4,9,10,14,18Bollinger Band strategy dominant
UptrendEnable conditions 1,5,6,7,15,16EMA trend + oversold rebound
DowntrendEnable conditions 12,13,17,26,27EWO negative + extreme oversold
High VolatilityEnable all protection parametersStrict dip/pump protection
Low VolatilityRelax protection thresholdsReduce false filtering

IX. Applicable Market Environment Details

NfiNextModded is a community-optimized version of the NFI series, inheriting the original's complexity and adding community-contributed improvements. Based on its code architecture and community long-term live-trading verification, it is best suited for ranging markets with clear trends, while performance is poor during one-sided selloffs or sideways consolidation.

9.1 Strategy Core Logic

  • Multi-Dimensional Entry Conditions: The strategy has 42 different entry conditions (including 5 Modded additions), automatically triggering corresponding entry logic based on current market environment.
  • Strict Risk Filtering: Real-time detection of "24h/36h/48h rises" prevents chasing; via "BTC 1h trend detection", if Bitcoin's broader market is in a downtrend, the strategy pauses most entries.
  • Dynamic Position Management: Supports "Hold Support" feature, allowing "won't exit until profitable" rules for specific losing trades.

9.2 Performance in Different Market Environments

Market TypePerformance RatingAnalysis
Slow Bull/Ranging UpwardStarsStarsStarsStarsStars (Best)When trend is up, more entry conditions open, accumulates positions via pullback buying
Wide RangingStarsStarsStars (Neutral)Catches band profits but more false breakouts, may increase trade frequency and wear costs
One-Sided SelloffStarsStars (Poor)Though has stop-loss and BTC filtering, liquidity may be poor during selloffs causing large slippage
Extreme SidewaysStar (Extremely Poor)When volatility is low, most entry conditions don't trigger, strategy goes dormant

9.3 Key Configuration Recommendations

Config ItemRecommended ValueDescription
Number of Trading Pairs40-80 USDT trading pairsSuch as BTC/USDT, ETH/USDT, etc.
Maximum Open Trades4-12 ordersmax_open_trades recommended at 4-12
Position ModeFull margin modestake_amount: unlimited
Timeframe5mMandatory, cannot be changed
Sell Signaluse_exit_signal: trueUse strategy's custom sell signals
Exit Profit Onlyexit_profit_only: falseExecute when sell signal appears
Ignore ROIignore_roi_if_entry_signal: trueSell signal takes priority over ROI

X. Important Reminder: The Cost of Complexity

10.1 Extremely High Learning Curve

This strategy is nearly impossible to fine-tune by just tweaking a few parameters. Without Python basics, it's very difficult to understand its complex logic nesting. Modded versions may have multiple community branches, requiring source and update frequency verification.

10.2 Hardware Requirements

With 40-80 trading pairs calculating multiple indicators, VPS memory demands are high. Official recommendation is at least 4GB RAM.

Number of PairsMinimum RAMRecommended RAM
20-40 pairs2GB4GB
40-80 pairs4GB8GB
80+ pairs8GB16GB

10.3 Backtesting vs. Live Trading Differences

NFI Modded includes dynamic position adjustment and Hold Support features, which are difficult to fully simulate in regular backtesting. It is recommended to run in Dry-Run mode for 1-3 months first, observe live performance, then consider investing real money.

10.4 Manual Trader Advice

For manual traders, NfiNextModded is suitable when the broader market is above MA20 and MAs are in bullish alignment; for fully automated operation, it is recommended to enable Bitcoin trend filtering, which helps automatically "lie flat" for defense when the broader market turns bearish.

10.5 Modded Version Precautions

  • Confirm Modded source is trustworthy (official community or known developers)
  • Check for update logs and change descriptions
  • Understand main differences from the original
  • Backtest and compare original vs. Modded performance

XI. Summary

NfiNextModded is a community-optimized multi-strategy fusion system. Its core value lies in:

  1. Community Verified: Incorporates community live-trading experience, fixes known issues
  2. Richer Conditions: 42 entry conditions, 5 Modded-exclusive conditions added
  3. More Complete Protection: Enhanced risk control module, optimized protection parameters
  4. Continuous Optimization: Modded versions typically maintained by active communities

For quantitative traders, this is a strategy template worth deep research. Recommendations:

  • Confirm Modded source is trustworthy first
  • Backtest-verify with fewer conditions
  • Adjust protection parameters based on target trading pair characteristics
  • Follow 1h timeframe trend confirmation signals
  • Regularly evaluate each entry condition's contribution, optimize combinations
  • Compare original and Modded actual performance