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
| Feature | Description |
|---|---|
| Entry Conditions | 42 independent buy signals (4 more than the original Next) |
| Exit Conditions | Multi-layer dynamic take-profit + community-optimized exit logic |
| Protection Mechanisms | 42 sets of buy protection parameters + enhanced risk control module |
| Timeframe | 5-minute primary timeframe + 1-hour/1-day informational timeframes |
| Dependencies | TA-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 Type | Parameter Description | Modded Optimization |
|---|---|---|
| Fast EMA | Whether fast EMA is above EMA200 | Adjusted period parameters |
| Slow EMA | Whether 1h slow EMA is above EMA200 | Added trend filtering |
| Close Price Protection | Whether close price is above EMA | Optimized threshold calculation |
| SMA200 Rising | Whether SMA200 is in an uptrend | Added stability check |
| Safe Dip | Dip magnitude threshold protection | Extended protection levels |
| Safe Pump | Pump magnitude threshold protection (anti-chase) | Optimized pump detection |
| BTC Trend | Whether BTC 1h is not in a downtrend | Enhanced market correlation |
| Volume Filter | Volume confirmation mechanism | New 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 Group | Condition Numbers | Core Logic |
|---|---|---|
| Oversold Rebound | 1, 7, 8, 18, 20, 21, 38 | RSI/MFI low value + oversold signal |
| Bollinger Band Strategy | 2, 3, 4, 5, 6, 9, 10, 14, 18, 22, 23 | Price breaks BB lower band |
| EMA Trend | 5, 6, 7, 14, 15, 39, 40 | EMA golden cross + price position |
| SMA Offset | 9, 10, 11, 12, 13, 16, 17 | Price below SMA at specific ratio |
| EWO Momentum | 12, 13, 16, 17, 22, 23 | Elliott Wave Oscillator |
| Special Conditions | 19, 24, 25, 26, 27, 41, 42 | Combined indicators (Chopiness, Zema, Hull, Williams %R) |
| Modded New Additions | 38, 39, 40, 41, 42 | Community-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
| Scenario | Trigger Condition | Signal Name |
|---|---|---|
| EMA200 Below Exit | Price < EMA200 + profit threshold met | signal_profit_u_* |
| Pump Protection | 48h/36h/24h pump detection + profit | signal_profit_p_* |
| Downtrend | SMA200 declining + profit range | signal_profit_d_* |
| Trailing Take-Profit | Max profit drawdown + RSI range | signal_profit_t_* |
| Holding Duration | Held > 900 minutes + profit | signal_profit_l_1 |
| Williams %R | R(480) > threshold + profit | signal_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 Category | Specific Indicators | Purpose |
|---|---|---|
| Trend Indicators | EMA(12,15,20,25,26,35,50,100,200) | Trend judgment, protection mechanisms |
| Momentum Indicators | RSI(4,14,20), MFI, EWO | Overbought/oversold, momentum strength |
| Volatility Indicators | Bollinger Bands(20,2), BB(40,2) | Price boundaries, breakout signals |
| Money Flow | CMF(20) | Capital inflow/outflow |
| Special Indicators | Williams %R(480), StochRSI(96) | Extreme market identification |
| Custom Indicators | TSI, 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
- Community Optimized: Incorporates community live-trading experience, fixes known issues
- Richer Conditions: 42 entry conditions, 4 more than the original
- More Complete Protection: Enhanced risk control module
- Multi-Timeframe: 5m execution + 1h trend confirmation + 1d long-term trend + BTC correlation analysis
- Classic Indicator Combinations: Integrates Bollinger Bands, RSI, EMA, EWO and other classic indicators
Limitations
- Higher Complexity: 42 conditions, many parameters, difficult optimization
- Depends on Historical Data: Requires sufficient 1h and 5m historical data
- External Dependencies: Requires TA-Lib and technical library support
- Overfitting Risk: 42 conditions may lead to overfitting historical data
- Computationally Intensive: Each cycle calculates many indicators, demanding on performance
- Version Maintenance: Modded versions may have multiple branches, source verification needed
VIII. Applicable Scenarios
| Market Environment | Recommended Configuration | Description |
|---|---|---|
| Ranging Market | Enable conditions 2,3,4,9,10,14,18 | Bollinger Band strategy dominant |
| Uptrend | Enable conditions 1,5,6,7,15,16 | EMA trend + oversold rebound |
| Downtrend | Enable conditions 12,13,17,26,27 | EWO negative + extreme oversold |
| High Volatility | Enable all protection parameters | Strict dip/pump protection |
| Low Volatility | Relax protection thresholds | Reduce 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 Type | Performance Rating | Analysis |
|---|---|---|
| Slow Bull/Ranging Upward | StarsStarsStarsStarsStars (Best) | When trend is up, more entry conditions open, accumulates positions via pullback buying |
| Wide Ranging | StarsStarsStars (Neutral) | Catches band profits but more false breakouts, may increase trade frequency and wear costs |
| One-Sided Selloff | StarsStars (Poor) | Though has stop-loss and BTC filtering, liquidity may be poor during selloffs causing large slippage |
| Extreme Sideways | Star (Extremely Poor) | When volatility is low, most entry conditions don't trigger, strategy goes dormant |
9.3 Key Configuration Recommendations
| Config Item | Recommended Value | Description |
|---|---|---|
| Number of Trading Pairs | 40-80 USDT trading pairs | Such as BTC/USDT, ETH/USDT, etc. |
| Maximum Open Trades | 4-12 orders | max_open_trades recommended at 4-12 |
| Position Mode | Full margin mode | stake_amount: unlimited |
| Timeframe | 5m | Mandatory, cannot be changed |
| Sell Signal | use_exit_signal: true | Use strategy's custom sell signals |
| Exit Profit Only | exit_profit_only: false | Execute when sell signal appears |
| Ignore ROI | ignore_roi_if_entry_signal: true | Sell 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 Pairs | Minimum RAM | Recommended RAM |
|---|---|---|
| 20-40 pairs | 2GB | 4GB |
| 40-80 pairs | 4GB | 8GB |
| 80+ pairs | 8GB | 16GB |
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:
- Community Verified: Incorporates community live-trading experience, fixes known issues
- Richer Conditions: 42 entry conditions, 5 Modded-exclusive conditions added
- More Complete Protection: Enhanced risk control module, optimized protection parameters
- 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