NostalgiaForInfinityNext_maximizer Strategy Analysis
Chapter 1: Strategy Overview
1.1 Strategy Background
NostalgiaForInfinityNext_maximizer is a high-performance Freqtrade trading strategy evolved from the NostalgiaForInfinity series developed by iterativ. The strategy is designed for the cryptocurrency market, aiming to achieve stable profitability across various market environments through multi-layered entry conditions, refined stoploss/take-profit mechanisms, and a comprehensive risk control system.
The name "ChangeToTower" reflects its layered defense architecture — like a tower with layers upon layers of protection.
1.2 Core Design Philosophy
"Muti-Dimensional Resonance, Trend is King, Risk is Paramount"
- Multi-Dimensional Resonance: 40 independent buy conditions + 8 sell conditions spanning multiple dimensions (technical indicators, price patterns, volume changes)
- Trend is King: Multiple trend tools (EMA, SMA, Ichimoku, SSL channels) ensure trade direction aligns with the prevailing trend
- Risk is Paramount: Multi-layered risk control including dynamic stoploss, trailing stop, profit protection, and BTC market trend filtering
1.3 Key Parameters
- Timeframe: 5m primary + 1h auxiliary
- Stoploss: -10% fixed
- Trailing Stop: Activates at 3% profit, trails 1%
- ROI: {"0": 0.10, "30": 0.05, "60": 0.02}
- Dependencies: talib, pandas_ta, technical.util, numpy, pandas
Chapter 2: Technical Indicator System
2.1 Trend Indicators
- EMA: 12, 13, 15, 20, 25, 26, 35, 50, 100, 200
- SMA: 5, 15, 20, 21, 30, 68, 75, 200
- MODERI (32/64/96): Volume-weighted trend indicator
- HMA (Hull Moving Average): Low-lag MA
- Ichimoku: Cloud system on 1h timeframe
2.2 Oscillators
- RSI: 4, 14, 20 periods
- Williams %R: 480-period (ultra-long-cycle)
- CTI (20-period): Trend strength
- StochRSI (96-period)
2.3 Volatility
- Bollinger Bands: BB20(2), BB40(2)
- ATR: Dynamic volatility
2.4 Money Flow
- CMF (20-period): Chaikin Money Flow
- MFI (14-period): Money Flow Index
- EFI (13-period): Money flow strength
2.5 Advanced
- PMAX: Profit Maximizer (MA + ATR combination)
- Kalman Filter: Adaptive price smoothing
- SSL Channels (10-period): Trend channels
- ZLEMA (68-period): Zero-lag EMA
Chapter 3: Buy Protection Mechanisms
3.1 EMA Trend Protection
- Fast EMA protection: Fast EMA must be above EMA200
- Slow EMA protection: 1h EMA must be above EMA200
3.2 Price Position Protection
- Close must be above specified EMA
3.3 SMA Slope Protection
- SMA200 must be rising over specified periods
3.4 Safe Dips (13 levels: 10-130)
Four time-window checks (current, 2, 12, 144 candles):
- Level 10 (strictest): 1.5%, 10%, 24%, 42%
- Level 50 (normal): 2.0%, 14%, 32%, 50%
- Level 100 (loose): 2.6%, 24%, 42%, 80%
- Level 130 (most permissive): 2.8%, 30%, 48%, 90%
3.5 Safe Pump (12 levels: 10-130)
Three time windows (24h/36h/48h), checking OC range vs. threshold with pullback allowance.
3.6 BTC Trend Protection
btc_not_downtrend = ((close > close.shift(2)) | (rsi > 50))
Chapter 4: 40 Buy Conditions Summary
| Category | Conditions | Core Logic |
|---|---|---|
| Trend Pullback | 1, 9, 10, 11, 14, 15, 18 | Pullback entries in uptrends |
| Bollinger Oversold | 2, 3, 4, 5, 6, 7, 8, 14, 22, 23 | Price at/below BB lower band |
| EMA Difference | 5, 6, 7, 14, 15, 42 | EMA26-EMA12 differential |
| EWO Signals | 12, 13, 16, 17, 22, 23, 28, 29, 30, 31, 33, 34 | Elliott Wave Oscillator |
| Extreme Oversold | 20, 21, 27, 31 | RSI/Williams deep oversold |
| Trend Shift | 24, 25 | EMA crossover shifts |
| Quick Mode | 32, 33, 34 | Fast in/fast out |
| PMax System | 35, 36, 37, 38 | Profit Maximizer |
| Ichimoku | 39 | Cloud system breakout |
| ZLEMA | 40 | Zero-lag EMA crossover |
Chapter 5: Exit System
5.1 Profit Target System (12 levels)
Above EMA200 (Bull Mode):
| Profit | RSI Condition |
|---|---|
| >= 20% | < 30 |
| 12%-20% | < 42 |
| 10%-12% | < 46 |
| 9%-10% | < 50 |
| 8%-9% | < 54 |
| 7%-8% | < 48 + CMF<0 |
| 6%-7% | < 45 + CMF<0 |
| 5%-6% | < 42 + CMF<0 |
| 4%-5% | < 37 + CMF<0 |
| 3%-4% | < 36 + CMF<0 |
| 2%-3% | < 35 + CMF<0 |
| 1.2%-2% | < 34 + CMF<0 |
Below EMA200 (Bear Mode): More conservative with additional RSI upper bounds.
MODERI_96 Impact: Bull mode (MODERI_96=True) uses bull parameters; bear mode uses stricter parameters.
5.2 Trailing Stops (4 sets)
| Set | Profit Range | RSI Range | Additional Condition |
|---|---|---|---|
| TS1 | 3%-5% | 10-20 | max_profit - profit > 5%, MODERI_96=False |
| TS2 | 10%-40% | 20-50 | max_profit - profit > 3%, EMA25 < EMA50 |
| TS3 | 6%-20% | — | max_profit - profit > 5%, SMA200_1h falling |
| TS4 | 3%-6% | — | max_profit - profit > 2%, SMA200 falling + CMF<0 |
5.3 ATR Dynamic Stoploss
| Loss Range | ATR Multiplier |
|---|---|
| -8% to -12% | 5.4x ATR |
| -12% to -16% | 5.2x ATR |
| -16% to -20% | 5.0x ATR |
| < -20% | 2.0x ATR |
5.4 Base Sell Signals (8 total)
- RSI > 79.5 + 6 consecutive candles above BB upper
- RSI > 81 + 3 consecutive candles above BB upper
- RSI > 73.4 + RSI_1h > 79.6 (dual overbought)
- Price between EMA50-200 + RSI > 79
- RSI_1h > 81.7 + EMA12 crosses below EMA26
- Price > 1h BB upper × 1.1
5.5 Pump Special Handling
For coins that pumped 48h > 90%, 36h > 72%, 24h > 68%:
| Profit | RSI |
|---|---|
| >= 20% | < 30 |
| 10%-20% | < 34 |
| 4%-10% | < 42 |
| 2%-4% | < 40 |
| 1%-2% | < 34 |
Chapter 6: Special Features
6.1 Hold Trades Support
{"trade_ids": {"1": 0.001, "3": -0.005, "7": 0.05}}
6.2 Quick Mode (Conditions 32-38)
- Profit 2%-6% + RSI > 80 → immediate sell
- CTI > 0.95 → immediate sell
- ATR threshold breach → sell
- PMax reversal → sell
6.3 Williams %R Sell System (4 sets)
Based on 480-period Williams %R with profit tiering.
6.4 Recovery Stoploss
If max loss > 12% and recovery profit reaches 6% → sell.
Chapter 7: Risk Control Summary
- Fixed Stoploss: -10%
- Trailing Stop: Activates at 3%, trails 1%
- BTC Filtering: Suppresses buys when BTC is in downtrend
- Hold Trades: Per-trade profit targets
- Multi-layer exits: ROI + signals + trailing + ATR
- Max concurrent trades: 4-6 recommended
Chapter 8: Strategy Pros and Limitations
Pros
- 40 buy conditions covering diverse market patterns
- 20+ sell logics for dynamic profit management
- Multi-layer protection (Dips + Pump + BTC + EMA)
- All conditions independently toggleable
- Hyperopt-optimizable
Limitations
- Extreme complexity: 400+ parameters
- High computational load (480 candle warmup)
- Backtest vs. live trading deviation risk
- Requires active maintenance
For the plain-English explanation, please refer to the Strategy Explained version.