Skip to main content

NFI46Z Strategy Analysis

Strategy ID: #266 (266th of 465 strategies)
Strategy Type: Multi-condition Trend Following + Multi-layer Protection + Tiered Take-Profit System
Timeframe: 5 Minutes (5m) + 1 Hour (1h) Informational Layer


I. Strategy Overview

NFI46Z (NostalgiaForInfinity 46Z) is an extremely complex trend-following strategy and a deep evolutionary version of the NFI series. Through up to 29 independent entry conditions, multi-layer protection mechanisms, and a refined take-profit system, it attempts to capture trend reversal and continuation opportunities across different market environments.

Core Features

FeatureDescription
Entry Conditions29 independent buy signals, each independently enableable/disableable
Exit Conditions8 basic sell signals + numerous custom tiered take-profit logics
Protection MechanismsDip Protection (3 types) + Pump Protection (9 types)
Timeframe5m primary + 1h informational
Dependenciestalib, qtpylib, numpy, pandas

II. Strategy Configuration Analysis

2.1 Basic Risk Parameters

# ROI Exit Table
minimal_roi = {
"0": 0.028, # Immediate take-profit: 2.8%
"10": 0.018, # After 10 minutes: 1.8%
"40": 0.005, # After 40 minutes: 0.5%
"180": 0.018, # After 3 hours: 1.8%
}

# Stop Loss
stoploss = -0.10 # Fixed stop loss: 10%

# Trailing Stop
trailing_stop = True
trailing_stop_positive = 0.01
trailing_stop_positive_offset = 0.025

Design Philosophy:

  • ROI table uniquely designed: initially (0 minutes) allows greedy holding; later (180 minutes) gives another chance if price recovers
  • 10% fixed stop loss relatively loose, paired with trailing stop for profit protection
  • Trailing stop activates after 2.5% profit, triggers on 1% drawdown

III. Entry Conditions Details

3.1 Protection Mechanisms (3 Groups Dip + 9 Groups Pump)

Dip Protection (Decline Protection)

Protection TypeParameter RangeDefault Values
Normal4-level decline threshold checks0.014 ~ 0.5
StrictStricter decline limits0.009 ~ 0.487
LooseLooser decline limits0.008 ~ 0.8

Pump Protection (Surge Protection)

Protection TypeTime WindowDescription
Normal 24h24 hoursSurge threshold + pullback threshold
Normal 36h36 hoursSurge threshold + pullback threshold
Normal 48h48 hoursSurge threshold + pullback threshold
Strict 24h/36h/48hSame windowsStricter limits
Loose 24h/36h/48hSame windowsLooser limits

3.2 Classification of 29 Entry Conditions

Condition GroupCondition NumbersCore Logic
Trend Pullback Type#1, #5, #9, #10, #14Major trend up + short-term oversold
Bollinger Band Breakout Type#2, #3, #4, #6, #18, #21, #22, #23, #24, #25, #26BB lower band breakout + trend/RSI confirmation
EMA Difference Type#5, #6, #7, #14, #15EMA26-EMA12 difference detection (MACD-like logic)
Alligator Type#8Alligator indicator breakout
EWO Bottom-Fishing Type#12, #13, #16, #17Elliott Wave extreme values
Oversold Rebound Type#19, #20Consecutive narrow range or RSI extreme oversold
Pure RSI + Pump Type#24, #27, #28, #291h RSI extremely low + Pump detection

IV. Exit Conditions Details

4.1 Multi-Layer Take-Profit System

12-level profit take-profit + 12-level below-EMA200 take-profit:

Profit Range           RSI Threshold      Signal Name
───────────────────────────────────────────────────────
> 31.3% < 34.0 signal_profit_11
20%~31.3% < 38.5 signal_profit_10
11.1%~20% < 55.9 signal_profit_9
...
1%~2% < 31.1 signal_profit_0

Core Logic: Higher profit yields looser RSI thresholds, implementing "the more you earn, the earlier you exit" strategy.

4.2 Basic Sell Signals (8)

# Sell Signal 1: BB + RSI Overbought
- RSI > 73.3
- Close above BB upper band for 6 consecutive candles

# Sell Signal 3: Pure RSI Overbought
- RSI > 84.2

# Sell Signal 7: 1h RSI + EMA Cross
- RSI_1h > 92.0
- EMA12 crosses below EMA26

# Default Sell Signal: Above BB Middle Band
- Close > BB middle band × 1.01

V. Risk Management Highlights

5.1 Dynamic Stop-Loss System

def custom_stoploss(...):
if current_profit > 0:
return 0.99 # Profitable positions given more room

# Loss positions held over 50 minutes
if trade_time_50 > trade.open_date_utc:
if candle['rsi_1h'] < 35:
return 0.99 # RSI 1h extremely low, wait for rebound

5.2 Multi-Layer Protection

Protection TypeTrigger ConditionEffect
Safe DipsDecline exceeds thresholdPrevents "catching falling knives"
Safe PumpSurge exceeds threshold + insufficient pullbackPrevents chasing highs
EMA TrendMultiple EMA conditions not metEnsures trend environment
Volume CheckAbnormal volumeFilters false breakouts

VI. Strategy Pros & Cons

✅ Pros

  1. Multi-Layer Protection System: Dip + Pump dual protection, effectively prevents chasing highs and catching falling knives
  2. Refined Take-Profit: 12+12+15 level take-profit logic, more flexible profit realization
  3. Dual Timeframe: 5m execution + 1h trend judgment, reduces false signals
  4. Highly Configurable: 29 entry conditions independently switchable, suitable for optimization
  5. Dynamic Stop-Loss: Intelligent stop-loss based on RSI and EMA status

⚠️ Cons

  1. Extremely Many Parameters: 200+ parameters, high optimization space but also easy to overfit
  2. High Computational Load: 400 candle warm-up, multi-indicator calculations, hardware-demanding
  3. Steep Learning Curve: Understanding all conditions requires significant time
  4. Market Dependent: Suitable for trending markets, may underperform in ranging and extreme conditions

VII. Summary

NFI46Z is a trend-following strategy that trades refined control for complexity. Its core value lies in:

  1. Multi-Layer Protection: Dip + Pump dual protection, significantly improving entry quality
  2. Refined Take-Profit: Dozens of levels of take-profit logic, more intelligent profit realization
  3. Highly Configurable: 29 conditions independently switchable, adapting to different market environments

For quantitative traders, this is a strategy worthy of deep research and optimization, but be vigilant about overfitting risks. It is recommended to fully test in a simulated environment before gradually deploying real funds.