NFI4Frog Strategy Analysis
Strategy ID: #268 (268th of 465 strategies)
Strategy Type: Multi-condition Trend Following + Multi-layer Protection Mechanisms
Timeframe: 5 Minutes (5m) + 1 Hour (1h) Informational Layer
I. Strategy Overview
NFI4Frog is the Frog variant version of the NostalgiaForInfinityV4 series, a highly complex multi-condition trend-following strategy. It integrates 17 independent entry conditions and 8 sell conditions, paired with multi-layer Dip/Pump protection mechanisms and a dynamic take-profit system, capturing pullback entry opportunities within trends at the 5-minute level.
The core design philosophy is "better to miss than to be wrong" — filtering out deep declines through Dip protection, avoiding chasing at highs through Pump protection, and only trading in "relatively safe" zones.
Core Features
| Feature | Description |
|---|---|
| Entry Conditions | 17 independent buy signals, each independently optimizable |
| Exit Conditions | 8 basic sell signals + custom dynamic take-profit system |
| Protection Mechanisms | 2 Dip Protection groups (normal/strict) + 6 Pump Protection groups |
| Timeframe | 5m primary + 1h informational |
| Dependencies | qtpylib, talib, finta, cachetools, skopt |
| Special Indicators | Heiken Ashi smoothing, EWO, SSL Channels, RMI, SROC |
II. Strategy Configuration Analysis
2.1 Basic Risk Parameters
# ROI Exit Table
minimal_roi = {
"0": 0.10, # Immediate: 10% profit exit
"30": 0.05, # After 30 min: 5% profit exit
"60": 0.02, # After 60 min: 2% profit exit
}
# Stop Loss
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 distance
trailing_stop_positive_offset = 0.03 # Activates at 3% profit
III. Entry Conditions Details
3.1 Protection Mechanisms (8 Groups)
Dip Protection (Decline Protection)
| Type | Parameters | Default Values | Description |
|---|---|---|---|
| Normal | buy_dip_threshold_1-4 | 0.02/0.14/0.32/0.50 | Standard decline thresholds |
| Strict | buy_dip_threshold_5-8 | 0.015/0.06/0.24/0.40 | Stricter thresholds |
Logic: When market decline exceeds the threshold, the strategy considers "decline hasn't ended" and refuses to buy.
Pump Protection (Surge Protection)
| Time Window | Type | pump_threshold | pump_pull_threshold |
|---|---|---|---|
| 12 hours | Normal | 0.46 | 1.75 |
| 36 hours | Normal | 0.56 | 1.75 |
| 48 hours | Normal | 0.85 | 1.75 |
| 12 hours | Strict | 0.40 | 2.20 |
| 36 hours | Strict | 0.56 | 2.00 |
| 48 hours | Strict | 0.68 | 2.00 |
3.2 Classification of 17 Entry Conditions
| Condition Group | Condition Numbers | Core Logic |
|---|---|---|
| Trend Pullback | #1, #11 | 1h trend confirmation + 5m oversold |
| BB Lower Band Rebound | #2, #3, #4, #5, #6, #14 | Buy near BB lower band |
| EMA Difference | #5, #6, #7, #14, #15 | EMA12/26 difference detecting downward momentum |
| Alligator | #8 | Alligator upward alignment |
| SMA/MA Offset | #9, #10, #12, #13, #16 | Price below SMA offset threshold |
| EWO Signals | #12, #13, #16, #17 | Elliott Wave Oscillator positive/negative values |
| Pure Protection | #17 | Only Dip protection + EWO negative (bottom-fishing) |
IV. Exit Conditions Details
4.1 Multi-Layer Take-Profit System
Profit Range RSI Threshold Signal Name
──────────────────────────────────────────────────────
> 25% RSI < 50 signal_profit_4
> 8% RSI < 48 signal_profit_3
> 5% RSI < 43 signal_profit_2
> 3% RSI < 36 signal_profit_1
> 1% RSI < 30 signal_profit_0
4.2 Basic Sell Signals (8)
| Signal | Condition | Description |
|---|---|---|
| #1 | RSI > 79.5 + 5 consecutive above BB upper | Extreme overbought + sustained strength |
| #3 | RSI > 82 | Pure RSI overbought |
| #4 | RSI > 73.4 + RSI_1h > 79.6 | Dual timeframe overbought |
| #7 | RSI_1h > 81.7 + EMA death cross | 1h overbought + death cross |
V. Technical Indicators
5.1 Core Indicators
| Indicator Category | Specific Indicators | Purpose |
|---|---|---|
| Trend | EMA(12,20,26,50,100,200), SMA(5,30,200), Alligator | Trend direction identification |
| Momentum | RSI(14), Stoch Fast, StochRSI | Overbought/oversold identification |
| Volatility | BB(20,2), BB(40,2), BB Width, ATR(14) | Volatility and channels |
| Volume | MFI, VFI, Volume Mean | Money flow analysis |
| Special | EWO, SSL Channels, RMI, SROC, SAR, SQZMI | Advanced signals |
VI. Strategy Pros & Cons
✅ Pros
- Multi-Layer Protection: Dip + Pump dual protection, effectively avoids chasing highs and catching falling knives
- Condition Independence: 17 entry conditions switchable independently, easy optimization and debugging
- Informational Framework Support: 1h trend confirmation improves signal quality
- Dynamic Take-Profit: 5-level RSI take-profit + profit trailing + drawdown protection
- Rich Custom Indicators: EWO, RMI, SSL Channels and other advanced indicators
⚠️ Cons
- Extremely Many Parameters: 80+ optimizable parameters, easy to overfit historical data
- High Computational Load: 17 conditions + multi-framework indicators, high VPS requirements
- Live vs. Backtest Discrepancy: Many conditions result in "perfect" backtesting, live results may be discounted
- Requires Thorough Testing: At least 1 year of historical data backtesting + dry-run validation recommended
VII. Summary
NFI4Frog is a typical "better to miss than to be wrong" strategy. Its core value lies in:
- Multi-Layer Protection: Dip and Pump dual filtering, significantly reducing wrong entry probability
- Trend Confirmation Priority: 1h framework assisting judgment, only trading in trend direction
- Flexible Condition Control: Each condition independently switchable, convenient targeted optimization
- Mature Take-Profit System: Dynamic RSI take-profit + profit trailing + drawdown protection
For quantitative traders, this is a strategy template worth deep research — but please note, complexity is a double-edged sword. Before using, ensure sufficient backtesting validation and dry-run testing.