Skip to main content

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​

FeatureDescription
Entry Conditions17 independent buy signals, each independently optimizable
Exit Conditions8 basic sell signals + custom dynamic take-profit system
Protection Mechanisms2 Dip Protection groups (normal/strict) + 6 Pump Protection groups
Timeframe5m primary + 1h informational
Dependenciesqtpylib, talib, finta, cachetools, skopt
Special IndicatorsHeiken 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)​

TypeParametersDefault ValuesDescription
Normalbuy_dip_threshold_1-40.02/0.14/0.32/0.50Standard decline thresholds
Strictbuy_dip_threshold_5-80.015/0.06/0.24/0.40Stricter thresholds

Logic: When market decline exceeds the threshold, the strategy considers "decline hasn't ended" and refuses to buy.

Pump Protection (Surge Protection)​

Time WindowTypepump_thresholdpump_pull_threshold
12 hoursNormal0.461.75
36 hoursNormal0.561.75
48 hoursNormal0.851.75
12 hoursStrict0.402.20
36 hoursStrict0.562.00
48 hoursStrict0.682.00

3.2 Classification of 17 Entry Conditions​

Condition GroupCondition NumbersCore Logic
Trend Pullback#1, #111h trend confirmation + 5m oversold
BB Lower Band Rebound#2, #3, #4, #5, #6, #14Buy near BB lower band
EMA Difference#5, #6, #7, #14, #15EMA12/26 difference detecting downward momentum
Alligator#8Alligator upward alignment
SMA/MA Offset#9, #10, #12, #13, #16Price below SMA offset threshold
EWO Signals#12, #13, #16, #17Elliott Wave Oscillator positive/negative values
Pure Protection#17Only 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)​

SignalConditionDescription
#1RSI > 79.5 + 5 consecutive above BB upperExtreme overbought + sustained strength
#3RSI > 82Pure RSI overbought
#4RSI > 73.4 + RSI_1h > 79.6Dual timeframe overbought
#7RSI_1h > 81.7 + EMA death cross1h overbought + death cross

V. Technical Indicators​

5.1 Core Indicators​

Indicator CategorySpecific IndicatorsPurpose
TrendEMA(12,20,26,50,100,200), SMA(5,30,200), AlligatorTrend direction identification
MomentumRSI(14), Stoch Fast, StochRSIOverbought/oversold identification
VolatilityBB(20,2), BB(40,2), BB Width, ATR(14)Volatility and channels
VolumeMFI, VFI, Volume MeanMoney flow analysis
SpecialEWO, SSL Channels, RMI, SROC, SAR, SQZMIAdvanced signals

VI. Strategy Pros & Cons​

✅ Pros​

  1. Multi-Layer Protection: Dip + Pump dual protection, effectively avoids chasing highs and catching falling knives
  2. Condition Independence: 17 entry conditions switchable independently, easy optimization and debugging
  3. Informational Framework Support: 1h trend confirmation improves signal quality
  4. Dynamic Take-Profit: 5-level RSI take-profit + profit trailing + drawdown protection
  5. Rich Custom Indicators: EWO, RMI, SSL Channels and other advanced indicators

⚠️ Cons​

  1. Extremely Many Parameters: 80+ optimizable parameters, easy to overfit historical data
  2. High Computational Load: 17 conditions + multi-framework indicators, high VPS requirements
  3. Live vs. Backtest Discrepancy: Many conditions result in "perfect" backtesting, live results may be discounted
  4. 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:

  1. Multi-Layer Protection: Dip and Pump dual filtering, significantly reducing wrong entry probability
  2. Trend Confirmation Priority: 1h framework assisting judgment, only trading in trend direction
  3. Flexible Condition Control: Each condition independently switchable, convenient targeted optimization
  4. 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.