NFI_Close Strategy Analysis
Strategy ID: #240 (Strategy #240 of 465)
Strategy Type: NFI Series - Close Price Driven Mode
Timeframe: 5 Minutes (5m)
I. Strategy Overview
NFI_Close is a variant of the NFI (Nostalgia For Infinity) series specifically focused on close price analysis. The "Close" in the strategy name clearly indicates that the strategy uses close price as its core analysis object and signal trigger condition.
In technical analysis, close price is recognized as the most important price data. It represents the final outcome of buyer-seller博弈 at the end of a specific time period, reflecting market participants' final consensus. Compared to open, high, and low prices, close price carries stronger signal significance and stability.
NFI_Close deeply integrates the NFI series' mature multi-condition architecture with close-price-driven trading logic, generating high-quality entry signals through the relationship between close price and moving averages, Bollinger Bands, and key levels, while using close price confirmation mechanisms to filter false breakouts and intraday noise.
Core Characteristics
| Characteristic | Description |
|---|---|
| Buy Conditions | 17 independent buy signals (independently enableable/disableable) |
| Sell Conditions | 8 base sell signals + multi-layer dynamic take-profit logic |
| Protection | 17 sets of buy protection parameters (close price filtering, trend protection, overbought protection, etc.) |
| Timeframe | 5-minute primary timeframe + 1-hour informational timeframe |
| Dependencies | pandas, numpy, TA-Lib, qtpylib |
1.1 Strategic Significance of Close Price
The core position of close price in technical analysis stems from:
| Dimension | Description |
|---|---|
| Final Pricing | Represents the market's final pricing result within that time period |
| Psychological Anchor | Traders and investors habitually use close price as reference benchmark |
| Signal Stability | Close price more stable compared to intraday price fluctuations |
| Confirmation Mechanism | Close price confirmation effectively filters false breakouts |
| Institutional Recognition | Institutional investors and fund managers calculate performance based on close price |
II. Strategy Configuration Analysis
2.1 Basic Risk Parameters
# ROI Exit Table
minimal_roi = {
"0": 0.10, # Immediate exit: 10% profit
"30": 0.05, # After 30 minutes: 5% profit
"60": 0.02 # After 60 minutes: 2% profit
}
# Stoploss Settings
stoploss = -0.10 # -10% hard stoploss
# Trailing Stop
trailing_stop = True
trailing_only_offset_is_reached = False
trailing_stop_positive = 0.01 # 1% trailing start
trailing_stop_positive_offset = 0.025 # 2.5% offset trigger
Design Philosophy:
- Medium Take-Profit Target: 10% initial target, balances return and risk
- Symmetric Stoploss: -10% stoploss, symmetric with take-profit target
- Conservative Trailing: 1% trailing start, gives ample volatility room
- Close Price Oriented: Uses close price analysis as core decision-making basis
III. Entry Conditions Details
3.1 Protection Mechanisms (17 Sets)
Each buy condition has an independent protection parameter set, forming a multi-layer protection network:
| Protection Type | Parameter Description | Default Example |
|---|---|---|
| Close Price Filter | Close price position relative to Bollinger lower band | buy_bb20_close_bblowerband_4: 0.909 |
| Volume Protection | Min volume multiple | buy_volume_2: 9.8 |
| RSI Protection | RSI oversold threshold | buy_rsi_1: 21.6 |
| MFI Protection | Money flow indicator threshold | buy_mfi_1: 47.4 |
| MA Offset | Close price position relative to MA | buy_ma_offset_9: 0.979 |
| BB Offset | Close price position relative to BB | buy_bb_offset_2: 0.989 |
| 1h RSI Range | 1-hour RSI zone limit | buy_rsi_1h_min_1: 33.5 |
| EWO Filter | Elliott Wave Oscillator | buy_ewo_12: 5.9 |
3.2 17 Buy Conditions Classification
| Condition Group | Condition Numbers | Core Logic |
|---|---|---|
| Deep Dip Class | 1, 2, 3, 4 | Close price significant dip, RSI/MFI oversold |
| Bollinger Support Class | 5, 6, 7, 8 | Close price touches Bollinger lower band zone |
| MA Offset Class | 9, 10, 11, 12 | Close price below MA by certain percentage |
| EWO Pattern Class | 13, 14 | Elliott Wave pattern confirmation |
| Comprehensive Confirmation Class | 15, 16, 17 | Multi-indicator comprehensive confirmation |
3.3 Close-Price-Driven Core Logic
All buy conditions center on close price:
- Close Price Relative to MA Position: Judge if current price in reasonable range
- Close Price Relative to BB Position: Judge if touching support zone
- Close Price Pattern Analysis: Judge trend through consecutive close price changes
- Close Price Confirmation Mechanism: Avoid intraday false breakouts triggering signals
IV. Risk Management Highlights
4.1 Close Price Confirmation Mechanism
# Core logic: all signals need close price confirmation
- Buy signal: triggers only after close price meets conditions
- Sell signal: executes only after close price breakdown
- Avoids erroneous trades caused by intraday false breakouts
V. Strategy Pros & Cons
Pros
- Close Price Driven: Uses most important price data as core, signals more reliable
- High Signal Quality: Close price confirmation effectively filters false breakouts
- Complete Protection: 17 independent protection parameter sets, multi-layer protection
- Mature NFI Architecture: Inherits NFI series' long-term live-tested framework
- Flexible Configuration: Each buy condition independently enableable/disableable
- Multi-Dimensional Confirmation: RSI, MFI, BB, EMA, EWO multi-indicator resonance
Cons
- Sparse Signals: Close price confirmation + multi-condition limits, low frequency
- High Complexity: 17 buy conditions + numerous protection parameters, difficult optimization
- Overfitting Risk: Complex logic may overfit historical data
- Delayed Entry: Waiting for close price confirmation may miss optimal entry points
- High Learning Curve: Needs deep understanding of close price analysis methods
VI. Applicable Market Environment Details
NFI_Close is the "conservative" member of the NFI series. Based on its close price confirmation mechanism and multi-condition architecture, it is best suited for markets with clear trends and signal-quality priority, and may underperform in high-frequency volatility or frequently false-breakout markets.
6.1 Performance Across Market Environments
| Market Type | Performance Rating | Analysis |
|---|---|---|
| Slow Bull | ⭐⭐⭐⭐⭐ | Close price confirms trend, pullback entries effective |
| Ranging | ⭐⭐⭐☆☆ | Close price touching support tradable, but few signals |
| Unilateral Drop | ⭐⭐☆☆☆ | Close price continuously breaks down, frequent stoploss |
| High Volatility | ⭐⭐☆☆☆ | Close price confirmation may miss optimal entry |
VII. Summary
NFI_Close is a variant of the NFI series specifically focused on close price analysis. Its core value lies in:
- Close Price Driven: Uses most important price data in technical analysis as core
- High Signal Quality: Close price confirmation effectively filters false breakouts
- Complete Protection: 17 independent protection parameter sets, multi-layer protection
- NFI Architecture: Inherits mature multi-condition confirmation framework
For quantitative traders, NFI_Close provides a close-price-centric trading framework suitable for traders pursuing signal quality over quantity. But also note:
- Signal frequency is low
- Parameter optimization is complex
- Needs patience waiting for close price confirmation
Remember: Close price is the most important price data, but "important" doesn't equal "profitable." Balance between signal quality and entry timing.