NFI_UO Strategy: In-Depth Analysis
Strategy ID: #242 (Strategy #242 of 465)
Strategy Type: NFI Series - Ultimate Oscillator Mode
Timeframe: 15 Minutes (15m)
I. Strategy Overview
NFI_UO is a strategy variant within the NFI (Nostalgia For Infinity) series that specifically uses the Ultimate Oscillator (UO). The Ultimate Oscillator, developed by Larry Williams in 1985, is a multi-period momentum indicator that reduces false signals by synthesizing data from multiple timeframes.
The "UO" in the strategy name directly points to the Ultimate Oscillator indicator, meaning this strategy uses UO as its core analytical tool, combined with NFI's multi-condition architecture to achieve more reliable trade signal filtering.
Core Characteristics
| Feature | Description |
|---|
| Entry Conditions | Multiple UO-based entry signal groups |
| Exit Conditions | Multi-layer take-profit + stop-loss protection |
| Protection Mechanisms | UO trend filtering + multi-layer protection |
| Timeframe | 15-minute primary + higher-period information |
| Dependencies | pandas, numpy, TA-Lib |
II. Strategy Configuration Analysis
2.1 Core Risk Parameters
minimal_roi = {
"0": 0.13,
"30": 0.09,
"60": 0.05,
"120": 0.02
}
stoploss = -0.11
trailing_stop = True
trailing_only_offset_is_reached = True
trailing_stop_positive = 0.045
trailing_stop_positive_offset = 0.075
Design Philosophy:
- Higher Initial ROI (13%): Expects to capture larger price movements
- Moderate Stop-Loss (-11%): Between conservative and aggressive
- Trailing Stop: 4.5% activation, 7.5% offset, suitable for trending markets
2.2 Order Type Configuration
order_types = {
"entry": "limit",
"exit": "limit",
"stoploss": "limit",
"stoploss_on_exchange": False,
"exit_timeout_count": 0,
}
III. Entry Conditions Details
3.1 Protection Mechanisms (Multiple Groups)
NFI_UO's protection mechanisms are centered on the UO indicator, combined with other technical indicators:
| Protection Type | Parameters | Function |
|---|
| UO Trend Protection | UO vs. MA relationship | Filters counter-trend signals |
| Multi-Period Confirmation | 15m + 1h UO crossover | Reduces false breakouts |
| RSI Confirmation | RSI auxiliary judgment | Verifies momentum |
| Volume Verification | OBV trend | Confirms fund flow direction |
3.2 Core Entry Conditions
Condition Group 1: UO Bullish Divergence
- UO makes a new low but price does not make a new low
- Classic bullish divergence signal
- Confirmed with RSI oversold
Condition Group 2: UO Zero-Line Crossover Up
- UO crosses above the zero line from below
- Momentum strengthening signal
- Confirmed with volume expansion
Condition Group 3: UO Oversold Zone Reversal
- UO enters oversold zone (< 30)
- Subsequently reverses upward
- Confirmed with other indicators
3.3 Entry Conditions Summary
| Condition Group | Core Logic | Signal Type |
|---|
| Bullish Divergence | UO divergence + price support | Reversal signal |
| Zero-Line Crossover | UO zero-line breakout | Momentum signal |
| Oversold Reversal | UO oversold bounce | Rebound signal |
IV. Exit Logic Details
4.1 Multi-Layer Take-Profit System
Profit Rate Zone Threshold Signal Name
─────────────────────────────────────────────
0-30 minutes 13% Quick Profit
30-60 minutes 9% Medium-term Target
60-120 minutes 5% Conservative Exit
120+ minutes 2% End-of-Session Breakeven
4.2 Special Exit Scenarios
| Scenario | Trigger Condition | Signal Name |
|---|
| UO Bearish Divergence | UO makes new high but price does not | Divergence Exit |
| UO Zero-Line Crossover Down | UO crosses below zero from above | Momentum Exit |
| UO Overbought | UO > 70 | Overbought Exit |
| Stop-Loss Triggered | Loss exceeds 11% | Hard Stop |
4.3 Basic Exit Signals
- UO Bearish Divergence: Momentum weakening, potential trend reversal
- UO Zero-Line Crossover Down: Momentum weakening
- Price Breaks Below MA Group: Trend turns bearish
V. Technical Indicator System
5.1 Core Indicator: Ultimate Oscillator
| Indicator | Calculation | Period Parameters |
|---|
| UO | (7-period AVG × 4) + (14-period AVG × 2) + (28-period AVG) / 7 | 7, 14, 28 |
5.2 Auxiliary Indicators
| Indicator Category | Specific Indicators | Purpose |
|---|
| Momentum | RSI, UO | Measure momentum |
| Trend | EMA, SMA | Determine direction |
| Volume | OBV | Verify fund flow |
5.3 UO Signal Interpretation
| Signal | UO Position | Meaning |
|---|
| Buy | UO < 30 and rising | Oversold bounce |
| Sell | UO > 70 and falling | Overbought pullback |
| Divergence | UO diverges from price | Trend reversal |
VI. Risk Management Features
6.1 UO-Specific Risk Control
| Risk Control Type | Description |
|---|
| Multi-Period Confirmation | Reduces false signals |
| Divergence Detection | Early warning of reversals |
| Overbought/Oversold | Avoids chasing highs and lows |
6.2 Traditional Risk Control Retained
| Type | Parameters |
|---|
| Fixed Stop-Loss | -11% |
| Trailing Stop | 4.5-7.5% |
| ROI Take-Profit | Tiered exit |
VII. Strategy Pros & Cons
✅ Pros
- UO Multi-Period Design: Reduces false signals, improves signal quality
- Divergence Detection: Early warning of trend reversals
- Momentum Confirmation: RSI verifies signals
- NFI Architecture: Mature multi-condition system
⚠️ Cons
- Indicator Lag: UO calculation has a longer cycle
- Parameter Sensitivity: Period parameters significantly affect results
- Average Ranging Market Performance: Common trend strategy weakness
- Requires Trends: Momentum indicators fail in ranging markets
VIII. Applicable Scenarios
| Market Environment | Recommended Config | Description |
|---|
| Trending Up | Enable long conditions | Trend trading |
| Trending Down | Enable short conditions | Capture declines |
| Ranging Market | Reduce trading frequency | Filter false signals |
| High Volatility | Participate moderately | Amplify returns |
IX. Applicable Market Environment Details
9.1 NFI_UO Positioning
NFI_UO is a strategy variant within the NFI series with Ultimate Oscillator as its core. UO's biggest feature is synthesizing short-term, medium-term, and long-term momentum data across three periods, effectively reducing false signals from single-period indicators.
Its Profit Philosophy: Use multi-period momentum indicators to filter noise, use divergence detection to capture turning points.
- UO Core: Multi-period comprehensive momentum
- Divergence Detection: Early warning
- Multi-Condition Confirmation: Improves win rate
- NFI Architecture: Mature and reliable
| Market Type | Rating | Analysis |
|---|
| 📈 Trending Up | ⭐⭐⭐⭐⭐ | UO zero-line crossover confirms trend |
| 🔄 Ranging Market | ⭐⭐⭐☆☆ | Fewer false signals but trading frequency decreases |
| 📉 Downtrend | ⭐⭐⭐⭐☆ | Divergence detection catches bottoms |
| ⚡️ Extreme Volatility | ⭐⭐⭐☆☆ | High volatility but direction is clear |
9.3 Key Configuration Recommendations
| Config Item | Recommended Value | Description |
|---|
| Number of Pairs | 5-15 | Diversify risk |
| UO Period Parameters | 7, 14, 28 | Default values are optimal |
| Backtest Period | 6+ months | Sufficient sample validation |
X. Summary
NFI_UO is a professional strategy within the NFI series that integrates the Ultimate Oscillator. Its core value lies in:
- Multi-Period Momentum: UO synthesizes multi-period data, reducing false signals
- Divergence Detection: Early warning of trend reversals
- Momentum Confirmation: RSI verifies signal strength
- NFI Architecture: Mature multi-condition trading system
For quantitative traders, NFI_UO provides unique UO-driven trading logic, suitable for investors pursuing momentum trading. UO's multi-period design makes it excel in trending markets.
This document is written based on the NFI series strategy common architecture