Skip to main content

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

CharacteristicDescription
Buy Conditions17 independent buy signals (independently enableable/disableable)
Sell Conditions8 base sell signals + multi-layer dynamic take-profit logic
Protection17 sets of buy protection parameters (close price filtering, trend protection, overbought protection, etc.)
Timeframe5-minute primary timeframe + 1-hour informational timeframe
Dependenciespandas, numpy, TA-Lib, qtpylib

1.1 Strategic Significance of Close Price

The core position of close price in technical analysis stems from:

DimensionDescription
Final PricingRepresents the market's final pricing result within that time period
Psychological AnchorTraders and investors habitually use close price as reference benchmark
Signal StabilityClose price more stable compared to intraday price fluctuations
Confirmation MechanismClose price confirmation effectively filters false breakouts
Institutional RecognitionInstitutional 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 TypeParameter DescriptionDefault Example
Close Price FilterClose price position relative to Bollinger lower bandbuy_bb20_close_bblowerband_4: 0.909
Volume ProtectionMin volume multiplebuy_volume_2: 9.8
RSI ProtectionRSI oversold thresholdbuy_rsi_1: 21.6
MFI ProtectionMoney flow indicator thresholdbuy_mfi_1: 47.4
MA OffsetClose price position relative to MAbuy_ma_offset_9: 0.979
BB OffsetClose price position relative to BBbuy_bb_offset_2: 0.989
1h RSI Range1-hour RSI zone limitbuy_rsi_1h_min_1: 33.5
EWO FilterElliott Wave Oscillatorbuy_ewo_12: 5.9

3.2 17 Buy Conditions Classification

Condition GroupCondition NumbersCore Logic
Deep Dip Class1, 2, 3, 4Close price significant dip, RSI/MFI oversold
Bollinger Support Class5, 6, 7, 8Close price touches Bollinger lower band zone
MA Offset Class9, 10, 11, 12Close price below MA by certain percentage
EWO Pattern Class13, 14Elliott Wave pattern confirmation
Comprehensive Confirmation Class15, 16, 17Multi-indicator comprehensive confirmation

3.3 Close-Price-Driven Core Logic

All buy conditions center on close price:

  1. Close Price Relative to MA Position: Judge if current price in reasonable range
  2. Close Price Relative to BB Position: Judge if touching support zone
  3. Close Price Pattern Analysis: Judge trend through consecutive close price changes
  4. 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

  1. Close Price Driven: Uses most important price data as core, signals more reliable
  2. High Signal Quality: Close price confirmation effectively filters false breakouts
  3. Complete Protection: 17 independent protection parameter sets, multi-layer protection
  4. Mature NFI Architecture: Inherits NFI series' long-term live-tested framework
  5. Flexible Configuration: Each buy condition independently enableable/disableable
  6. Multi-Dimensional Confirmation: RSI, MFI, BB, EMA, EWO multi-indicator resonance

Cons

  1. Sparse Signals: Close price confirmation + multi-condition limits, low frequency
  2. High Complexity: 17 buy conditions + numerous protection parameters, difficult optimization
  3. Overfitting Risk: Complex logic may overfit historical data
  4. Delayed Entry: Waiting for close price confirmation may miss optimal entry points
  5. 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 TypePerformance RatingAnalysis
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:

  1. Close Price Driven: Uses most important price data in technical analysis as core
  2. High Signal Quality: Close price confirmation effectively filters false breakouts
  3. Complete Protection: 17 independent protection parameter sets, multi-layer protection
  4. 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.