Skip to main content

NFI_v7_SMA Strategy Analysis

Strategy Number: #254 (254th of 465 strategies) Strategy Type: NFI Series - v7 SMA Trend Filter Variant Timeframe: 5 Minutes (5m) + 1 Hour Informational Timeframe


I. Strategy Overview

NFI_v7_SMA is the SMA (Simple Moving Average) trend filter variant of the NFI Series v7 version. Inheriting NFI_v7's core 25+ entry condition architecture, it introduces SMA trend filtering for smoother signal confirmation. It represents the mature steady-advanced form of the NFI V series.

SMA gives equal weight to all prices, reacting slower but providing more reliable signals. NFI_v7_SMA leverages this characteristic to further filter noise on top of v7's precise signals, suitable for advanced investors pursuing steady trading.

Core Features

FeatureDescription
Entry Conditions25+ independent buy signals (inheriting v7) + SMA trend filtering
Exit Conditions12-level dynamic take-profit + SMA trend state adjustment
Protection Mechanisms25+ sets of entry protection parameters + SMA trend confirmation layer
Timeframe5-minute primary + 1-hour informational timeframe
DependenciesTA-Lib, technical, qtpylib, pandas, numpy
SMA PeriodsSMA50, SMA100, SMA200 multi-period moving averages

II. Strategy Configuration Analysis

2.1 Basic Risk Parameters

# ROI exit table
minimal_roi = {
"0": 0.085, # Immediate exit: 8.5% profit
"42": 0.045, # After 42 minutes: 4.5% profit
"88": 0.025, # After 88 minutes: 2.5% profit
}

# Stop-loss settings
stoploss = -0.105 # -10.5% hard stop-loss

# Trailing stop
trailing_stop = True
trailing_stop_positive = 0.022 # 2.2% trailing activation
trailing_stop_positive_offset = 0.042 # 4.2% lock-in

Design Philosophy:

  • Steady-aggressive ROI: First-tier at 8.5%, between v7's 9% and v5's 8%, reflecting SMA variant's positioning
  • Moderate stop-loss: -10.5%, inheriting v7's precision characteristics
  • SMA filteringenhanced: SMA trend confirmation as an additional filtering layer

III. Entry Conditions Details

3.1 SMA Trend Filtering Mechanism

SMA TypePeriodFiltering LogicFunction
SMA5050 periodsPrice > SMA50Mid-term trend confirmation
SMA100100 periodsPrice > SMA100Medium-long term trend
SMA200200 periodsPrice > SMA200Long-term trend confirmation
SMA Multi-AlignmentMultiSMA50 > SMA100 > SMA200Strong trend confirmation

SMA Filtering Advantages:

  • Reduces false breakouts through SMA lag
  • Multi-alignment confirms trend strength
  • Avoids counter-trend operations

3.2 Entry Conditions Classification

Condition GroupCondition NumbersSMA Filtering Role
SMA Trend Confirmation1, 5, 8, 14Core filtering layer
Oversold Rebound1, 7, 8, 18, 20, 24Avoid counter-trend bottom-fishing
Bollinger Strategy2, 3, 4, 5, 6, 9, 10, 21Ensure uptrend
EMA Trend5, 6, 7, 14, 15, 22Dual trend confirmation
SMA Offset9, 10, 11, 12, 13, 23Mean reversion
Advanced Combos19, 21, 22, 23, 24, 25Comprehensive confirmation

IV. Exit Conditions Details

4.1 Multi-Layer Take-Profit with SMA Adjustment

Profit Zone          RSI Threshold    SMA Check
────────────────────────────────────────────────
> 20% < 30 Price > SMA50
16%-20% < 35 Price > SMA50
12%-16% < 42 Price > SMA50
... (12 levels total)

SMA Exit Enhancement:

  • When price breaks below SMA50, take-profit thresholds relax
  • When SMA200 declines, prioritize profit-taking
  • When multi-alignment breaks, trigger protective selling

4.2 Special Exit Scenarios

ScenarioSMA Role
SMA Trend ReversalSMA trend exit
SMA Death CrossSMA death cross exit
Below EMA200 take-profitWeak take-profit
Pump protectionPrevent high pullback
Declining trendTrend reversal protection

V. Risk Management Features

5.1 SMA Trend Filtering Layer

if price < SMA200:
# Most buy signals prohibited
sma_filter = "bearish"

if price > SMA50 > SMA100 > SMA200:
# All buy signals open
sma_filter = "bullish"

5.2 Dip & Pump Protection

Inherits v7's 12-level dip protection and 14-level pump protection with SMA confirmation.


VI. Strategy Pros & Cons

✅ Pros

  1. SMA smooth filtering: Further reduces false signals on top of v7's precision
  2. Dual trend confirmation: EMA short-term + SMA long-term, dual guarantee
  3. Reduced noise: SMA lag filters short-term volatility noise
  4. Highest signal quality: Inherits v7's 25+ entry conditions, parameters optimized
  5. Multi-layer protection: SMA + original + v7's 12-level dip protection
  6. Suitable for steady-advanced: Pursues higher certainty on top of v7's precision
  7. Stronger risk control: Additional SMA layer reduces counter-trend operations

⚠️ Cons

  1. Cumulative lag: v7's precision + SMA lag, entry may be even later
  2. Trend slippage: In fast rallies, SMA filtering may delay entry
  3. Fewer signals: Stricter filtering means fewer actionable signals
  4. Data dependent: Needs sufficient historical data
  5. Computationally intensive: SMA + EMA + v7 conditions, higher resource use
  6. Most parameter sensitive: SMA period selection greatly impacts performance

VII. Summary

NFI_v7_SMA is the steady-precision variant of NFI V series. Its core value lies in:

  1. SMA smooth filtering: Adds SMA trend confirmation on v7's precise signals, reducing false signals
  2. Dual trend confirmation: EMA short-term + SMA long-term, dual guarantee
  3. Certainty priority: "Rather miss it than be wrong" philosophy
  4. Inherits v7 advantages: 25+ entry conditions, 12-level dip protection, 14-level pump protection

For quantitative traders, NFI_v7_SMA is a choice pursuing certainty:

  • More conservative and steady than v7 original
  • Fewer but more reliable signals than aggressive strategies
  • Suitable for advanced investors pursuing stable returns and unwilling to trade frequently

Recommendation:

  • Use in markets with clear trends
  • Consider relaxing SMA filtering in fast markets
  • Accept "missing some profit" as the cost of using SMA
  • Monitor SMA multi/null alignment changes