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
| Feature | Description |
|---|---|
| Entry Conditions | 29 independent buy signals, each independently enableable/disableable |
| Exit Conditions | 8 basic sell signals + numerous custom tiered take-profit logics |
| Protection Mechanisms | Dip Protection (3 types) + Pump Protection (9 types) |
| Timeframe | 5m primary + 1h informational |
| Dependencies | talib, 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 Type | Parameter Range | Default Values |
|---|---|---|
| Normal | 4-level decline threshold checks | 0.014 ~ 0.5 |
| Strict | Stricter decline limits | 0.009 ~ 0.487 |
| Loose | Looser decline limits | 0.008 ~ 0.8 |
Pump Protection (Surge Protection)
| Protection Type | Time Window | Description |
|---|---|---|
| Normal 24h | 24 hours | Surge threshold + pullback threshold |
| Normal 36h | 36 hours | Surge threshold + pullback threshold |
| Normal 48h | 48 hours | Surge threshold + pullback threshold |
| Strict 24h/36h/48h | Same windows | Stricter limits |
| Loose 24h/36h/48h | Same windows | Looser limits |
3.2 Classification of 29 Entry Conditions
| Condition Group | Condition Numbers | Core Logic |
|---|---|---|
| Trend Pullback Type | #1, #5, #9, #10, #14 | Major trend up + short-term oversold |
| Bollinger Band Breakout Type | #2, #3, #4, #6, #18, #21, #22, #23, #24, #25, #26 | BB lower band breakout + trend/RSI confirmation |
| EMA Difference Type | #5, #6, #7, #14, #15 | EMA26-EMA12 difference detection (MACD-like logic) |
| Alligator Type | #8 | Alligator indicator breakout |
| EWO Bottom-Fishing Type | #12, #13, #16, #17 | Elliott Wave extreme values |
| Oversold Rebound Type | #19, #20 | Consecutive narrow range or RSI extreme oversold |
| Pure RSI + Pump Type | #24, #27, #28, #29 | 1h 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 Type | Trigger Condition | Effect |
|---|---|---|
| Safe Dips | Decline exceeds threshold | Prevents "catching falling knives" |
| Safe Pump | Surge exceeds threshold + insufficient pullback | Prevents chasing highs |
| EMA Trend | Multiple EMA conditions not met | Ensures trend environment |
| Volume Check | Abnormal volume | Filters false breakouts |
VI. Strategy Pros & Cons
✅ Pros
- Multi-Layer Protection System: Dip + Pump dual protection, effectively prevents chasing highs and catching falling knives
- Refined Take-Profit: 12+12+15 level take-profit logic, more flexible profit realization
- Dual Timeframe: 5m execution + 1h trend judgment, reduces false signals
- Highly Configurable: 29 entry conditions independently switchable, suitable for optimization
- Dynamic Stop-Loss: Intelligent stop-loss based on RSI and EMA status
⚠️ Cons
- Extremely Many Parameters: 200+ parameters, high optimization space but also easy to overfit
- High Computational Load: 400 candle warm-up, multi-indicator calculations, hardware-demanding
- Steep Learning Curve: Understanding all conditions requires significant time
- 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:
- Multi-Layer Protection: Dip + Pump dual protection, significantly improving entry quality
- Refined Take-Profit: Dozens of levels of take-profit logic, more intelligent profit realization
- 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.