Skip to main content

NostalgiaForInfinityNextGen_TSL Strategy Analysis

Strategy ID: #288 (288th of 465 strategies)
Strategy Type: NFI Series - Multi-Condition Trend Following + Trailing Stop Enhanced Version
Timeframe: 15 Minutes (15m) + 1 Hour (1h)


I. Strategy Overview

NostalgiaForInfinityNextGen_TSL (abbreviated NFI NextGen TSL) is the "Trailing Stop Enhanced Version" of NostalgiaForInfinityNextGen. Building on NextGen's core multi-condition architecture, the TSL version comprehensively enhances the trailing stop mechanism, aiming to better protect profits and reduce drawdowns.

"TSL" stands for Trailing Stop Loss (追踪止损), which is this strategy's core differentiating feature. Compared to the original NextGen, the TSL version is more aggressive in profit protection, suited for traders pursuing steady profitability and drawdown control.

Core Features

FeatureDescription
Entry Conditions16 independent buy signals, each condition can be independently enabled/disabled
Exit Conditions6 base sell signals + enhanced trailing stop logic
Protection Mechanisms16 sets of buy protection parameters + enhanced trailing stop parameters
Timeframe15-minute primary timeframe + 1-hour informational timeframe
Dependenciespandas, numpy, TA-Lib, technical, qtpylib, pandas_ta
Core DifferenceTrailing stop parameter optimization, stronger profit protection

II. Strategy Configuration Analysis

2.1 Basic Risk Parameters

# ROI Exit Table (time: minimum profit rate)
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
}

# Stop-Loss Settings
stoploss = -0.10 # -10% hard stop-loss

# Trailing Stop (TSL version core parameter - Enhanced)
trailing_stop = True
trailing_only_offset_is_reached = True
trailing_stop_positive = 0.015 # 1.5% trailing activation point (original 1%)
trailing_stop_positive_offset = 0.025 # 2.5% offset trigger (original 3%)
trailing_stop_negative = -0.02 # -2% negative trailing threshold (new)

Design Philosophy:

  • Uses a time-decaying ROI strategy
  • Enhanced Trailing Stop: TSL version raises trailing activation from 1% to 1.5%, lowers offset trigger from 3% to 2.5%
  • Adds trailing_stop_negative parameter, more sensitive negative trailing
  • Trailing stop activates earlier, locks in profits faster
  • Hard stop-loss at -10% controls maximum loss per trade

2.2 TSL Parameter Comparison vs. NextGen Original

ParameterNextGen OriginalTSL EnhancedChange Description
trailing_stop_positive0.01 (1%)0.015 (1.5%)Trailing activation raised
trailing_stop_positive_offset0.03 (3%)0.025 (2.5%)Offset trigger lowered
trailing_stop_negativeNone-0.02 (-2%)Negative trailing added

Change Interpretation:

  • Trailing Activation Raised: From 1% to 1.5%, meaning trailing starts when profit reaches 1.5%
  • Offset Trigger Lowered: From 3% to 2.5%, enters trailing state earlier
  • Negative Trailing Added: Allows triggering trailing stop when profit drawdown reaches 2%

III. Entry Conditions Details

3.1 Protection Mechanisms (16 Sets)

Each entry condition has an independent protection parameter set:

Protection TypeParameter DescriptionOptions
Fast EMAWhether fast EMA is enabled and its length26/50/100/200
Slow EMAWhether slow EMA is enabled and its length26/50/100/200
Close Price ProtectionWhether close price is above EMA12/20/26/50/100/200
SMA200 RisingWhether SMA200 is in an uptrend20/30/36/44/50 period verification
SMA200 1h Rising1h period SMA200 trend confirmation20/30/36/44/50
Safe DipDip magnitude threshold protection10/50/80/100/130 etc.
Safe PumpPump magnitude threshold protection10/20/30/50/70/100/120 etc.
Safe Pump PeriodDetection period24h/36h/48h
BTC TrendWhether BTC 1h is not in a downtrendTrue/False

3.2 16 Entry Conditions Classification

Condition GroupCondition NumbersCore Logic
Strict Protection Group1-3Multi-protection + trend confirmation
Trend Following Group4-6EMA trend + momentum confirmation
Relaxed Entry Group7-9Fewer protection conditions
1h Confirmation Group10-12High-period trend verification
Aggressive Entry Group13-14Fast signal response
BTC Correlation Group15-16BTC trend filtering

IV. Exit Logic Details

4.1 Multi-Layer Take-Profit System

Profit Range          Threshold        Exit Strategy
───────────────────────────────────────────────────────
> 10% Immediate ROI initial exit
5%-10% 30 minutes ROI secondary exit
2%-5% 60 minutes ROI tertiary exit
< 2% Hold Wait for signal or stop-loss

4.2 Trailing Stop Mechanism (TSL Version Core)

TSL version's trailing stop mechanism is the core differentiating feature:

Trailing activation condition: profit >= 1.5%
Trailing trigger condition: profit >= 2.5% after which trailing begins
Trailing stop trigger: profit drawdown triggers trailing
Negative trailing threshold: profit drawdown >= 2%

Trailing Stop Flow:

  1. When profit reaches 2.5%, trailing stop activates
  2. Price continues rising, stop-loss line follows upward
  3. Price pulls back, stop-loss line remains stationary
  4. Profit drawdown reaches threshold, trigger stop-loss sell

TSL Version Advantages:

  • Trailing activates earlier (1.5% vs 1%)
  • Enters trailing state earlier (2.5% vs 3%)
  • Negative trailing protection (-2% threshold)
  • More aggressive profit protection

4.3 Special Exit Scenarios

ScenarioTrigger ConditionSignal Name
BB Upper Band BreakoutContinuous upper band breakoutOverbought exit
RSI ExtremeRSI overbought thresholdMomentum exit
Below EMAPrice breaks below EMA200Trend exit
Trailing StopProfit drawdown triggersProtection exit (TSL enhanced)

V. Risk Management Features

5.1 Enhanced Trailing Stop (TSL Core Feature)

TSL version's core advantage is trailing stop enhancement:

FeatureDescriptionAdvantage
Earlier Activation1.5% profit activates trailingProtects profit earlier
Earlier Trailing2.5% offset triggersEnters trailing state faster
Negative Protection-2% drawdown thresholdPrevents large profit drawdowns
Dynamic AdjustmentStop-loss line follows upwardLocks in floating profit

5.2 Multi-Level Dip Protection (Safe Dips)

Dip threshold protection from levels 10 to 130:

Level    Protection Strength    Applicable Scenario
─────────────────────────────────────────────────────
10 Relaxed Strong trending market
50 Medium General market
80 Relatively Strict Volatile market
100 Strict High-risk environment
130 Extremely Strict Extreme market

5.3 BTC Trend Filtering

Some entry conditions require BTC 1h not in a downtrend:

  • Conditions 15-16 have this protection enabled by default

VI. Strategy Pros & Cons

Advantages

  1. Enhanced Trailing Stop: More aggressive profit protection, better drawdown control
  2. Refined Conditions: 16 entry conditions covering main market environments
  3. Period Adaptation: 15-minute timeframe suitable for medium-short-term trend following
  4. Complete Protection: 16 sets of protection parameters, refined risk management
  5. Multi-Period Verification: 15m execution + 1h trend confirmation
  6. Flexible Configuration: Each condition can be independently enabled/disabled
  7. TSL Parameter Optimization: Compared to original, locks in profits faster

Limitations

  1. Lower Signal Frequency: Signal frequency relatively lower on 15-minute timeframe
  2. Trailing Stop Sensitivity: May exit prematurely, missing larger gains
  3. Depends on Historical Data: Requires sufficient 1h and 15m historical data
  4. Ranging Market Risk: Trailing stop may trigger frequently in ranging markets

VII. Applicable Scenarios

Market EnvironmentRecommended ConfigurationDescription
Trending UpwardEnable all conditionsTrailing stop maximizes profit
Ranging MarketEnable protection groups 1-6Strict protection filters false signals
High VolatilityEnable BTC filtering conditionsPrevent systemic risk
Low VolatilityRelax protection thresholdsIncrease trading opportunities

TSL Version Especially Suitable For:

  • Traders pursuing steady profitability
  • Conservative style focused on profit protection
  • Investors wanting to reduce drawdowns

VIII. Applicable Market Environment Details

NostalgiaForInfinityNextGen_TSL is the trailing stop enhanced version of the NFI series. It is best suited for medium-long-term trends with clear direction, especially in scenarios with higher profit protection needs.

8.1 Strategy Core Logic

  • Enhanced Trailing Stop: TSL parameters optimized, locks in profit earlier
  • Refined Entry Conditions: 16 different entry conditions, optimized for 15-minute timeframe
  • Strict Risk Filtering: Real-time detection of "24h/36h/48h rises" prevents chasing
  • Multi-Period Confirmation: 15m execution + 1h trend confirmation, double insurance
  • BTC Trend Correlation: Via "BTC 1h trend detection" reduces systemic risk

8.2 Performance in Different Market Environments

Market TypePerformance RatingAnalysis
Slow Bull/Ranging UpwardStarsStarsStarsStarsStarsTrailing stop maximizes profit, excellent drawdown control
Wide RangingStarsStarsStarsStarsProtection filters false breakouts, TSL reduces drawdowns
One-Sided SelloffStarsStarsStarsBTC trend filtering + hard stop-loss double protection
Extreme SidewaysStarsStarsFew signal triggers, trailing stop may trigger frequently

IX. Summary

NostalgiaForInfinityNextGen_TSL is the trailing stop enhanced version of the NFI series. Its core value lies in:

  1. Enhanced Trailing Stop: Activates trailing earlier, locks in profit faster
  2. Refined Conditions: 16 entry conditions covering main market environments
  3. Complete Protection: 16 sets of protection parameters, refined risk management
  4. Drawdown Control: TSL parameter optimization, reduces profit drawdowns

For quantitative traders, this is a strategy focused on profit protection. Recommendations:

  • Understand trailing stop working principles and parameter impacts
  • Adjust TSL parameters based on target trading pair characteristics
  • Follow 1h timeframe trend confirmation signals
  • Enjoy smaller drawdowns and more stable profitability