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
| Feature | Description |
|---|---|
| Entry Conditions | 25+ independent buy signals (inheriting v7) + SMA trend filtering |
| Exit Conditions | 12-level dynamic take-profit + SMA trend state adjustment |
| Protection Mechanisms | 25+ sets of entry protection parameters + SMA trend confirmation layer |
| Timeframe | 5-minute primary + 1-hour informational timeframe |
| Dependencies | TA-Lib, technical, qtpylib, pandas, numpy |
| SMA Periods | SMA50, 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 Type | Period | Filtering Logic | Function |
|---|---|---|---|
| SMA50 | 50 periods | Price > SMA50 | Mid-term trend confirmation |
| SMA100 | 100 periods | Price > SMA100 | Medium-long term trend |
| SMA200 | 200 periods | Price > SMA200 | Long-term trend confirmation |
| SMA Multi-Alignment | Multi | SMA50 > SMA100 > SMA200 | Strong 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 Group | Condition Numbers | SMA Filtering Role |
|---|---|---|
| SMA Trend Confirmation | 1, 5, 8, 14 | Core filtering layer |
| Oversold Rebound | 1, 7, 8, 18, 20, 24 | Avoid counter-trend bottom-fishing |
| Bollinger Strategy | 2, 3, 4, 5, 6, 9, 10, 21 | Ensure uptrend |
| EMA Trend | 5, 6, 7, 14, 15, 22 | Dual trend confirmation |
| SMA Offset | 9, 10, 11, 12, 13, 23 | Mean reversion |
| Advanced Combos | 19, 21, 22, 23, 24, 25 | Comprehensive 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
| Scenario | SMA Role |
|---|---|
| SMA Trend Reversal | SMA trend exit |
| SMA Death Cross | SMA death cross exit |
| Below EMA200 take-profit | Weak take-profit |
| Pump protection | Prevent high pullback |
| Declining trend | Trend 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
- SMA smooth filtering: Further reduces false signals on top of v7's precision
- Dual trend confirmation: EMA short-term + SMA long-term, dual guarantee
- Reduced noise: SMA lag filters short-term volatility noise
- Highest signal quality: Inherits v7's 25+ entry conditions, parameters optimized
- Multi-layer protection: SMA + original + v7's 12-level dip protection
- Suitable for steady-advanced: Pursues higher certainty on top of v7's precision
- Stronger risk control: Additional SMA layer reduces counter-trend operations
⚠️ Cons
- Cumulative lag: v7's precision + SMA lag, entry may be even later
- Trend slippage: In fast rallies, SMA filtering may delay entry
- Fewer signals: Stricter filtering means fewer actionable signals
- Data dependent: Needs sufficient historical data
- Computationally intensive: SMA + EMA + v7 conditions, higher resource use
- 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:
- SMA smooth filtering: Adds SMA trend confirmation on v7's precise signals, reducing false signals
- Dual trend confirmation: EMA short-term + SMA long-term, dual guarantee
- Certainty priority: "Rather miss it than be wrong" philosophy
- 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