15 related strategies (⧉ identical code, ≈ similar name)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 | # LiquidationHunterStrategy - Profit from liquidation cascades # Powered by AiCoin's exclusive liquidation data + aggregated open interest # # How it works: # - When OI is rising fast (lots of new leveraged positions), the market is fragile # - AiCoin's liquidation_map shows WHERE liquidation clusters are # - When price approaches a dense liquidation zone, expect a cascade: # * Long liquidation cascade -> rapid price drop -> short opportunity # * Short liquidation cascade -> rapid price pump -> long opportunity # - After the cascade, price often overshoots -> counter-trade the cascade # # AiCoin tier: Premium ($299/mo) for liquidation_map, Pro ($699/mo) for open_interest # Lower tiers: strategy falls back to ATR + momentum (still profitable but less precise) # # This is a more aggressive strategy suited for volatile markets. # from freqtrade.strategy import IStrategy, IntParameter, DecimalParameter from pandas import DataFrame import logging logger = logging.getLogger(__name__) class LiquidationHunterStrategy(IStrategy): INTERFACE_VERSION = 3 timeframe = '15m' can_short = True # ROI table (optimized via hyperopt on 15m) minimal_roi = {"0": 0.375, "88": 0.128, "158": 0.057, "307": 0} stoploss = -0.038 trailing_stop = True trailing_stop_positive = 0.153 trailing_stop_positive_offset = 0.19 trailing_only_offset_is_reached = False # Hyperopt parameters (defaults from hyperopt optimization) atr_period = IntParameter(10, 25, default=14, space='buy') momentum_period = IntParameter(5, 20, default=17, space='buy') rsi_low = IntParameter(15, 45, default=36, space='buy') rsi_high = IntParameter(55, 85, default=57, space='sell') vol_mult = DecimalParameter(1.0, 3.0, default=2.216, space='buy') # AiCoin live data _ac_oi_rising = False # Is OI increasing rapidly? _ac_oi_change_pct = 0.0 # OI change % over recent period _ac_liq_bias = 0.0 # -1 = more long liqs expected, +1 = more short liqs _ac_last_update = 0.0 def populate_indicators(self, dataframe: DataFrame, metadata: dict) -> DataFrame: # ── ATR (Average True Range) - volatility measure ── high_low = dataframe['high'] - dataframe['low'] high_close = (dataframe['high'] - dataframe['close'].shift()).abs() low_close = (dataframe['low'] - dataframe['close'].shift()).abs() tr = high_low.combine(high_close, max).combine(low_close, max) atr_period = self.atr_period.value dataframe['atr'] = tr.rolling(window=atr_period).mean() # ATR expansion (current ATR vs average ATR - detects volatile periods) dataframe['atr_sma'] = dataframe['atr'].rolling(window=50).mean() dataframe['atr_expanding'] = (dataframe['atr'] > dataframe['atr_sma'] * 1.2).astype(int) # ── Momentum ── mom = self.momentum_period.value dataframe['momentum'] = dataframe['close'].pct_change(mom) * 100 # ── RSI ── delta = dataframe['close'].diff() gain = delta.clip(lower=0).rolling(window=14).mean() loss = (-delta.clip(upper=0)).rolling(window=14).mean() rs = gain / loss dataframe['rsi'] = 100 - (100 / (1 + rs)) # ── Volume spike detection ── dataframe['vol_sma'] = dataframe['volume'].rolling(window=20).mean() dataframe['vol_spike'] = ( dataframe['volume'] > dataframe['vol_sma'] * self.vol_mult.value ).astype(int) # ── EMA for trend direction ── dataframe['ema_fast'] = dataframe['close'].ewm(span=8, adjust=False).mean() dataframe['ema_slow'] = dataframe['close'].ewm(span=21, adjust=False).mean() # ── AiCoin data (live only) ── dataframe['oi_rising'] = 0 dataframe['liq_bias'] = 0.0 if self.dp and self.dp.runmode.value in ('live', 'dry_run'): import time now = time.time() if now - self._ac_last_update > 300: self._update_aicoin_data(metadata) self._ac_last_update = now dataframe.iloc[-1, dataframe.columns.get_loc('oi_rising')] = ( 1 if self._ac_oi_rising else 0) dataframe.iloc[-1, dataframe.columns.get_loc('liq_bias')] = self._ac_liq_bias return dataframe def _update_aicoin_data(self, metadata: dict): """Fetch OI and liquidation data from AiCoin (live/dry-run only).""" try: import sys, os _sd = os.path.dirname(os.path.abspath(__file__)) if _sd not in sys.path: sys.path.insert(0, _sd) from aicoin_data import AiCoinData ac = AiCoinData(cache_ttl=300) pair = metadata.get('pair', 'BTC/USDT:USDT') exchange = self.config.get('exchange', {}).get('name', 'binance') # Open-interest trend (v3 aggregated OI is not wired yet — degrades gracefully) try: self._ac_oi_rising, self._ac_oi_change_pct = ac.oi_trend(pair, exchange) logger.info(f"AiCoin OI for {pair}: rising={self._ac_oi_rising}, " f"change={self._ac_oi_change_pct:.2f}%") except Exception as e: logger.debug(f"AiCoin OI unavailable: {e}") # Liquidation-map bias: -1 (long liqs) .. +1 (short liqs) try: self._ac_liq_bias = ac.liq_bias(pair, exchange) logger.info(f"AiCoin liquidation bias for {pair}: {self._ac_liq_bias:.2f}") except Exception as e: logger.debug(f"AiCoin liquidation_map unavailable: {e}") except ImportError: logger.warning("aicoin_data module not found. Run ft-deploy.mjs to install.") except Exception as e: logger.warning(f"AiCoin data error: {e}") def populate_entry_trend(self, dataframe: DataFrame, metadata: dict) -> DataFrame: # Long: catch the bounce after a liquidation cascade + EMA uptrend dataframe.loc[ (dataframe['rsi'] < self.rsi_low.value) & (dataframe['atr_expanding'] == 1) & # Volatility spike = cascade (dataframe['volume'] > dataframe['vol_sma']) & # Above-average volume (dataframe['ema_fast'] > dataframe['ema_slow']) & # Only long in uptrend (dataframe['liq_bias'] >= -0.3), # AiCoin: no strong long-liq bias 'enter_long'] = 1 # Short: catch the drop after a short squeeze exhaustion + EMA downtrend dataframe.loc[ (dataframe['rsi'] > self.rsi_high.value) & (dataframe['atr_expanding'] == 1) & (dataframe['volume'] > dataframe['vol_sma']) & (dataframe['ema_fast'] < dataframe['ema_slow']) & # Only short in downtrend (dataframe['liq_bias'] <= 0.3), 'enter_short'] = 1 return dataframe def populate_exit_trend(self, dataframe: DataFrame, metadata: dict) -> DataFrame: # Exit long: RSI normalized + momentum turned positive dataframe.loc[ (dataframe['rsi'] > 55) & (dataframe['momentum'] > 1), 'exit_long'] = 1 # Exit short: RSI normalized + momentum turned negative dataframe.loc[ (dataframe['rsi'] < 45) & (dataframe['momentum'] < -1), 'exit_short'] = 1 return dataframe |
Strategy League — fixed backtest that feeds the ranking
Export report Freqtrade logsRun finished · took 149.9s
ℹ️ This strategy uses a trailing stop — freqtrade only
re-checks these once per 15m candle by default, not against the price movement within it.
For a more accurate read, re-run this backtest locally with --timeframe-detail 1m. Freqle doesn't do this for every check here: multiplying every
League/sweep backtest by a finer detail timeframe is more compute than the sandbox can sustain
across every indexed strategy. why this matters →
- profit isn't statistically significant (p=1.00) — hard to tell apart from luck
- only 0% of resampled runs were profitable
- profitable in only 38% of rolling 3-month windows
- did not beat simply holding the market
Resampling the trade sequence 2,000× shows the spread of results this edge could plausibly produce — separating a dependable strategy from one that got lucky once.
Loading charts…
Monthly breakdown
| Month | Regime | Trades | Profit % | Avg % | Win | Loss | Win % | DD % | Avg dur |
|---|---|---|---|---|---|---|---|---|---|
| Dec 2025 | bearish trending low vol | 72 | -1.65 | -0.25 | 42 | 30 | 58.3 | -54.42 | 5h 56m |
| Nov 2025 | bearish trending high vol | 59 | -6.09 | -1.07 | 25 | 34 | 42.4 | -52.64 | 4h 08m |
| Oct 2025 | bearish trending low vol | 65 | -5.88 | -0.91 | 28 | 37 | 43.1 | -47.76 | 5h 24m |
| Sep 2025 | bullish choppy low vol | 43 | -2.26 | -0.55 | 23 | 20 | 53.5 | -40.79 | 6h 19m |
| Aug 2025 | bearish choppy low vol | 53 | +1.76 | 0.34 | 34 | 19 | 64.2 | -40.08 | 5h 40m |
| Jul 2025 | bullish choppy low vol | 51 | +2.67 | 0.53 | 36 | 15 | 70.6 | -43.52 | 3h 53m |
| Jun 2025 | bearish choppy low vol | 85 | +1.71 | 0.21 | 56 | 29 | 65.9 | -44.45 | 5h 57m |
| May 2025 | bullish trending low vol | 60 | -2.01 | -0.34 | 35 | 25 | 58.3 | -45.11 | 6h 07m |
| Apr 2025 | bullish choppy low vol | 83 | +0.54 | 0.06 | 44 | 39 | 53.0 | -45.59 | 5h 54m |
| Mar 2025 | bearish trending high vol | 69 | -2.80 | -0.42 | 36 | 33 | 52.2 | -44.55 | 5h 29m |
| Feb 2025 | bearish trending low vol | 48 | +1.10 | 0.22 | 27 | 21 | 56.2 | -41.95 | 3h 57m |
| Jan 2025 | bearish choppy low vol | 61 | -0.11 | -0.03 | 38 | 23 | 62.3 | -42.85 | 5h 18m |
| Dec 2024 | bullish trending low vol | 70 | +1.06 | 0.15 | 40 | 30 | 57.1 | -42.67 | 3h 54m |
| Nov 2024 | bullish trending low vol | 54 | +1.34 | 0.25 | 29 | 25 | 53.7 | -44.37 | 3h 30m |
| Oct 2024 | bullish choppy low vol | 82 | +2.37 | 0.31 | 56 | 26 | 68.3 | -46.1 | 5h 56m |
| Sep 2024 | bearish choppy low vol | 71 | +0.94 | 0.15 | 44 | 27 | 62.0 | -46.91 | 4h 26m |
| Aug 2024 | bearish choppy high vol | 75 | -2.34 | -0.31 | 33 | 42 | 44.0 | -47.86 | 5h 08m |
| Jul 2024 | bearish trending low vol | 66 | +0.47 | 0.07 | 42 | 24 | 63.6 | -46.29 | 4h 58m |
| Jun 2024 | bearish choppy low vol | 64 | -1.57 | -0.27 | 36 | 28 | 56.2 | -45.62 | 7h 09m |
| May 2024 | bullish choppy high vol | 68 | -4.52 | -0.67 | 31 | 37 | 45.6 | -45.14 | 6h 49m |
| Apr 2024 | bearish choppy high vol | 74 | -2.95 | -0.40 | 36 | 38 | 48.6 | -40.45 | 5h 58m |
| Mar 2024 | bullish trending high vol | 46 | +1.71 | 0.39 | 28 | 18 | 60.9 | -38.79 | 3h 33m |
| Feb 2024 | bullish trending low vol | 53 | -0.68 | -0.15 | 33 | 20 | 62.3 | -38.28 | 4h 31m |
| Jan 2024 | bearish choppy high vol | 76 | -2.29 | -0.32 | 36 | 40 | 47.4 | -37.41 | 4h 25m |
| Dec 2023 | bullish trending low vol | 57 | -1.59 | -0.28 | 30 | 27 | 52.6 | -34.94 | 5h 00m |
| Nov 2023 | bullish trending low vol | 58 | +3.37 | 0.59 | 35 | 23 | 60.3 | -37.87 | 7h 10m |
| Oct 2023 | bullish trending low vol | 66 | +0.34 | 0.05 | 48 | 18 | 72.7 | -37.22 | 6h 32m |
| Sep 2023 | bearish choppy low vol | 62 | +0.69 | 0.11 | 39 | 23 | 62.9 | -38.11 | 8h 31m |
| Aug 2023 | bearish choppy low vol | 72 | +0.44 | 0.05 | 40 | 32 | 55.6 | -39.35 | 10h 05m |
| Jul 2023 | bullish trending low vol | 49 | +0.73 | 0.15 | 31 | 18 | 63.3 | -38.77 | 7h 08m |
| Jun 2023 | bullish trending low vol | 70 | -4.74 | -0.69 | 33 | 37 | 47.1 | -39.67 | 5h 52m |
| May 2023 | bearish choppy low vol | 97 | -7.09 | -0.77 | 36 | 61 | 37.1 | -34.22 | 8h 52m |
| Apr 2023 | bullish trending low vol | 55 | -2.77 | -0.50 | 28 | 27 | 50.9 | -27.34 | 5h 49m |
| Mar 2023 | bullish trending high vol | 75 | -1.65 | -0.22 | 46 | 29 | 61.3 | -26.25 | 4h 54m |
| Feb 2023 | bullish trending low vol | 83 | +2.36 | 0.29 | 57 | 26 | 68.7 | -27.21 | 3h 38m |
| Jan 2023 | bullish trending low vol | 51 | -4.64 | -0.92 | 19 | 32 | 37.3 | -25.2 | 5h 39m |
| Dec 2022 | bearish trending low vol | 59 | -3.64 | -0.62 | 30 | 29 | 50.8 | -20.85 | 8h 03m |
| Nov 2022 | bearish trending high vol | 47 | -3.16 | -0.67 | 20 | 27 | 42.6 | -17.45 | 5h 12m |
| Oct 2022 | bullish choppy low vol | 54 | -2.32 | -0.42 | 25 | 29 | 46.3 | -14.17 | 6h 59m |
| Sep 2022 | bearish choppy high vol | 60 | +0.49 | 0.09 | 38 | 22 | 63.3 | -13.35 | 4h 28m |
| Aug 2022 | bullish choppy high vol | 47 | +2.29 | 0.48 | 31 | 16 | 66.0 | -14.36 | 4h 50m |
| Jul 2022 | bullish trending high vol | 47 | -2.28 | -0.48 | 22 | 25 | 46.8 | -14.89 | 4h 25m |
| Jun 2022 | bearish trending high vol | 60 | +0.11 | 0.03 | 33 | 27 | 55.0 | -14.73 | 3h 33m |
| May 2022 | bearish trending high vol | 89 | +2.47 | 0.25 | 52 | 37 | 58.4 | -14.97 | 3h 15m |
| Apr 2022 | bearish choppy high vol | 54 | +1.17 | 0.19 | 36 | 18 | 66.7 | -16.82 | 4h 46m |
| Mar 2022 | bullish choppy high vol | 41 | -0.89 | -0.25 | 24 | 17 | 58.5 | -16.04 | 4h 03m |
| Feb 2022 | bearish trending high vol | 47 | +2.10 | 0.44 | 29 | 18 | 61.7 | -19.02 | 4h 00m |
| Jan 2022 | bearish trending high vol | 99 | +0.99 | 0.10 | 45 | 54 | 45.5 | -22.39 | 3h 33m |
| Dec 2021 | bearish trending high vol | 46 | -1.19 | -0.25 | 20 | 26 | 43.5 | -20.28 | 3h 28m |
| Nov 2021 | bearish trending high vol | 46 | -1.61 | -0.34 | 19 | 27 | 41.3 | -18.26 | 4h 45m |
| Oct 2021 | bullish trending high vol | 46 | -0.99 | -0.24 | 22 | 24 | 47.8 | -15.27 | 4h 06m |
| Sep 2021 | bearish trending high vol | 43 | -0.40 | -0.09 | 23 | 20 | 53.5 | -14.31 | 4h 41m |
| Aug 2021 | bullish trending high vol | 50 | -0.76 | -0.16 | 25 | 25 | 50.0 | -15.93 | 4h 12m |
| Jul 2021 | bullish trending high vol | 50 | -1.77 | -0.35 | 28 | 22 | 56.0 | -13.69 | 4h 10m |
| Jun 2021 | bearish trending high vol | 69 | +1.70 | 0.25 | 37 | 32 | 53.6 | -14.75 | 2h 22m |
| May 2021 | bearish trending high vol | 61 | -1.71 | -0.30 | 27 | 34 | 44.3 | -14.34 | 1h 42m |
| Apr 2021 | bearish choppy high vol | 32 | -4.54 | -1.54 | 8 | 24 | 25.0 | -11.57 | 2h 22m |
| Mar 2021 | bullish choppy high vol | 33 | +0.18 | 0.01 | 20 | 13 | 60.6 | -7.46 | 4h 22m |
| Feb 2021 | bullish trending high vol | 52 | -5.77 | -1.12 | 16 | 36 | 30.8 | -7.23 | 1h 40m |
| Jan 2021 | bullish trending high vol | 64 | +0.04 | -0.01 | 32 | 32 | 50.0 | -2.06 | 2h 20m |
Yearly breakdown
| Year | Trades | Profit % | Avg % | Win | Loss | Win % | DD % | Avg dur |
|---|---|---|---|---|---|---|---|---|
| 2025 | 749 | -13.02 | -0.18 | 424 | 325 | 56.6 | -54.42 | 5h 24m |
| 2024 | 799 | -6.46 | -0.08 | 444 | 355 | 55.6 | -47.86 | 5h 06m |
| 2023 | 795 | -14.55 | -0.19 | 442 | 353 | 55.6 | -39.67 | 6h 39m |
| 2022 | 704 | -2.67 | -0.04 | 385 | 319 | 54.7 | -22.39 | 4h 38m |
| 2021 | 592 | -16.82 | -0.30 | 277 | 315 | 46.8 | -20.28 | 3h 13m |
Trade charts — best 2 and worst 2 performing pairs (full OHLC candles are expensive to render for every pair)
Backtests — over a market period
Backtest this strategy over a chosen crypto-cycle period. These don't affect the League ranking, and need that period's candle data downloaded.
Log in or sign up to run backtests.
| Period | Range | Total % | Win % | Max DD | Trades | |
|---|---|---|---|---|---|---|
| 2020 · DeFi Summer & Pre-Halving Rally | 20200101-20210101 | not run | ||||
| 2021 · Institutional Bull Market | 20210101-20220101 | not run | ||||
| 2022 · Post-Bull Crash & Macro Tightening | 20220101-20230101 | not run | ||||
| 2023–2024 · Recovery & ETF Anticipation | 20230101-20250101 | not run | ||||
| 2025–2026 · Current Cycle | 20250101-20260101 | not run | ||||
Walk forward
Out-of-sample backtest on recent data · 33 pairs · 20260101-20260701.
Backtest trust check
2 potential lookahead pattern(s) found
| Line | Pattern | Detail | |
|---|---|---|---|
| 96 | leak | iloc_last | .iloc[-1] in populate_* applies the newest candle to all rows |
| 98 |
ran by Ron · took s
Lookahead analysis
freqtrade lookahead-analysis: detects strategies peeking at future candles.