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 | # TrendRider Strategy — 15m multi-TF trend + dynamic leverage (2x-5x) + trailing stop # Entry: 4h trend EMA cross + 15m momentum + volume confirmation # Exit: trailing stop only (100% win rate on trailing exits) from freqtrade.strategy.interface import IStrategy from pandas import DataFrame import talib.abstract as ta import pandas as pd pd.options.mode.chained_assignment = None from functools import reduce from datetime import datetime import numpy as np from freqtrade.strategy import merge_informative_pair from freqtrade.persistence import Trade class TrendRiderStrategy(IStrategy): WHITELIST = ['BTC/USDT', 'ETH/USDT', 'BNB/USDT', 'SOL/USDT', 'XRP/USDT', 'DOGE/USDT', 'ADA/USDT', 'TRX/USDT', 'AVAX/USDT', 'LINK/USDT'] buy_params = { "ema_short": 20, "ema_long": 50, "adx_threshold": 20, "informative_timeframe": "4h", } # Wide stoploss. Leverage division auto-tightens: # At 5x: stoploss -0.25/5 = -5% price stop, trail +0.05/5 = 1% trail # At 3x: stoploss -0.25/3 = -8.3% price stop, trail +0.05/3 = 1.67% trail # At 2x: stoploss -0.25/2 = -12.5% price stop, trail +0.05/2 = 2.5% trail minimal_roi = {"0": 1.0} stoploss = -0.25 trailing_stop = True trailing_stop_positive = 0.05 trailing_stop_positive_offset = 0.10 trailing_only_offset_is_reached = True timeframe = '15m' startup_candle_count = 200 process_only_new_candles = False use_exit_signal = False exit_profit_only = False ignore_roi_if_entry_signal = False use_custom_stoploss = False def informative_pairs(self): pairs = self.dp.current_whitelist() return [(pair, self.buy_params['informative_timeframe']) for pair in pairs] def populate_indicators(self, dataframe: DataFrame, metadata: dict) -> DataFrame: # 4h informative for trend direction + ADX strength informative = self.dp.get_pair_dataframe(pair=metadata['pair'], timeframe=self.buy_params['informative_timeframe']) informative['ema_short'] = ta.EMA(informative, timeperiod=self.buy_params['ema_short']) informative['ema_long'] = ta.EMA(informative, timeperiod=self.buy_params['ema_long']) informative['adx'] = ta.ADX(informative, timeperiod=14) dataframe = merge_informative_pair(dataframe, informative, self.timeframe, self.buy_params['informative_timeframe'], ffill=True) # 15m indicators dataframe['ema_short'] = ta.EMA(dataframe, timeperiod=self.buy_params['ema_short']) dataframe['adx'] = ta.ADX(dataframe, timeperiod=14) dataframe['plus_di'] = ta.PLUS_DI(dataframe, timeperiod=14) dataframe['minus_di'] = ta.MINUS_DI(dataframe, timeperiod=14) dataframe['rsi'] = ta.RSI(dataframe, timeperiod=14) # Volume indicators dataframe['obv'] = ta.OBV(dataframe['close'], dataframe['volume']) dataframe['obv_ema'] = ta.EMA(dataframe['obv'], timeperiod=20) dataframe['volume_ratio'] = dataframe['volume'] / dataframe['volume'].rolling(20).mean() return dataframe def populate_entry_trend(self, dataframe: DataFrame, metadata: dict) -> DataFrame: inf = self.buy_params['informative_timeframe'] ema_short_4h = f"ema_short_{inf}" ema_long_4h = f"ema_long_{inf}" adx_4h = f"adx_{inf}" conditions = [ # 4h trend: bullish EMA cross dataframe[ema_short_4h] > dataframe[ema_long_4h], # 4h trend strength: must be trending dataframe[adx_4h] > 18, # 15m: price above EMA20 (short-term momentum) dataframe['close'] > dataframe['ema_short'], # 15m: ADX trending (avoid chop) dataframe['adx'] > self.buy_params['adx_threshold'], # 15m: DMI bullish dataframe['plus_di'] > dataframe['minus_di'], # 15m: RSI healthy dataframe['rsi'] > 35, dataframe['rsi'] < 75, # Volume: OBV rising (accumulation) dataframe['obv'] > dataframe['obv_ema'], # Volume: above average activity dataframe['volume_ratio'] > 0.7, ] dataframe.loc[reduce(lambda x, y: x & y, conditions), 'enter_long'] = 1 return dataframe def populate_exit_trend(self, dataframe: DataFrame, metadata: dict) -> DataFrame: return dataframe def leverage(self, pair: str, current_time: datetime, current_rate: float, proposed_leverage: float, max_leverage: float, entry_tag: str | None, side: str, **kwargs) -> float: dataframe, _ = self.dp.get_analyzed_dataframe(pair, self.timeframe) if len(dataframe) == 0: return 1.0 inf = self.buy_params['informative_timeframe'] adx_4h = f"adx_{inf}" last_candle = dataframe.iloc[-1].squeeze() adx = last_candle.get(adx_4h, 20) if adx > 35: return min(5.0, max_leverage) elif adx > 25: return min(3.0, max_leverage) return min(2.0, max_leverage) def custom_stake_amount(self, pair: str, current_time: datetime, current_rate: float, proposed_stake: float, min_stake: float, max_stake: float, entry_tag: str, **kwargs) -> float: dataframe, _ = self.dp.get_analyzed_dataframe(pair, self.timeframe) if len(dataframe) == 0: return proposed_stake inf = self.buy_params['informative_timeframe'] adx_4h = f"adx_{inf}" last_candle = dataframe.iloc[-1].squeeze() risk_factor = 1.0 adx = last_candle.get(adx_4h, 20) if adx > 30: risk_factor *= 1.5 elif adx < 20: risk_factor *= 0.6 rsi = last_candle.get('rsi', 50) if rsi < 30: risk_factor *= 1.3 risk_factor = max(0.3, min(1.5, risk_factor)) return max(min_stake, min(proposed_stake * risk_factor, max_stake)) |
Strategy League — fixed backtest that feeds the ranking
Export report Freqtrade logsRun finished · took 161.6s
ℹ️ 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=0.72) — hard to tell apart from luck
- only 21% of resampled runs were profitable
- did not beat simply holding the market
- very deep drawdown (-76%)
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 |
|---|---|---|---|---|---|---|---|---|---|
| Jan 2026 | bullish trending low vol | 7 | -8.04 | -13.33 | 1 | 6 | 14.3 | -71.6 | 1129h 21m |
| Dec 2025 | bearish trending low vol | 2 | +1.49 | 7.12 | 2 | 0 | 100.0 | -68.36 | 733h 15m |
| Nov 2025 | bearish trending high vol | 16 | -3.51 | -4.45 | 10 | 6 | 62.5 | -68.56 | 327h 03m |
| Oct 2025 | bearish trending low vol | 13 | -7.60 | -6.68 | 7 | 6 | 53.8 | -67.72 | 399h 16m |
| Sep 2025 | bullish choppy low vol | 3 | +5.20 | 13.44 | 3 | 0 | 100.0 | -65.27 | 577h 40m |
| Aug 2025 | bullish choppy low vol | 5 | +0.84 | 1.88 | 4 | 1 | 80.0 | -67.9 | 429h 27m |
| Jul 2025 | bullish choppy low vol | 13 | +12.61 | 8.86 | 13 | 0 | 100.0 | -71.69 | 530h 18m |
| Jun 2025 | bearish choppy low vol | 8 | +0.97 | 0.07 | 5 | 3 | 62.5 | -75.2 | 761h 19m |
| May 2025 | bullish trending low vol | 5 | +5.31 | 13.62 | 5 | 0 | 100.0 | -74.37 | 544h 12m |
| Apr 2025 | bullish choppy low vol | 6 | -5.20 | -7.70 | 3 | 3 | 50.0 | -76.02 | 310h 58m |
| Mar 2025 | bearish trending high vol | 8 | -7.98 | -8.41 | 4 | 4 | 50.0 | -72.54 | 410h 00m |
| Feb 2025 | bearish trending low vol | 11 | -18.45 | -16.33 | 3 | 8 | 27.3 | -68.85 | 287h 56m |
| Jan 2025 | bearish choppy low vol | 14 | -11.15 | -5.83 | 8 | 6 | 57.1 | -60.34 | 267h 14m |
| Dec 2024 | bullish trending low vol | 41 | -12.25 | -3.51 | 25 | 16 | 61.0 | -55.19 | 140h 42m |
| Nov 2024 | bullish trending low vol | 28 | +33.32 | 9.17 | 28 | 0 | 100.0 | -64.18 | 302h 45m |
| Oct 2024 | bullish choppy low vol | 6 | -0.10 | 3.15 | 5 | 1 | 83.3 | -65.4 | 276h 48m |
| Sep 2024 | bearish choppy low vol | 8 | +1.38 | 3.41 | 7 | 1 | 87.5 | -67.25 | 444h 06m |
| Aug 2024 | bearish choppy high vol | 14 | -20.90 | -12.99 | 5 | 9 | 35.7 | -66.21 | 580h 39m |
| Jul 2024 | bearish trending low vol | 10 | +1.31 | 1.48 | 7 | 3 | 70.0 | -60.07 | 676h 02m |
| Jun 2024 | bearish choppy low vol | 10 | -15.30 | -18.07 | 2 | 8 | 20.0 | -56.47 | 798h 03m |
| May 2024 | bullish choppy high vol | 7 | -2.69 | -3.05 | 5 | 2 | 71.4 | -50.32 | 284h 47m |
| Apr 2024 | bearish choppy high vol | 17 | -30.57 | -15.20 | 5 | 12 | 29.4 | -48.32 | 312h 56m |
| Mar 2024 | bullish trending high vol | 42 | +26.61 | 5.51 | 39 | 3 | 92.9 | -45.59 | 206h 18m |
| Feb 2024 | bullish trending low vol | 14 | +20.36 | 12.41 | 14 | 0 | 100.0 | -55.34 | 617h 43m |
| Jan 2024 | bearish choppy high vol | 17 | -7.54 | -5.48 | 10 | 7 | 58.8 | -56.14 | 161h 22m |
| Dec 2023 | bullish trending low vol | 18 | +25.12 | 12.32 | 18 | 0 | 100.0 | -62.93 | 467h 02m |
| Nov 2023 | bullish trending low vol | 7 | +8.64 | 10.60 | 7 | 0 | 100.0 | -67.39 | 660h 58m |
| Oct 2023 | bullish trending low vol | 7 | +1.76 | 2.33 | 6 | 1 | 85.7 | -69.8 | 792h 00m |
| Sep 2023 | bearish choppy low vol | 1 | -2.52 | -25.15 | 0 | 1 | 0.0 | -68.64 | 432h 15m |
| Aug 2023 | bearish choppy low vol | 6 | -20.61 | -25.13 | 0 | 6 | 0.0 | -67.48 | 551h 08m |
| Jul 2023 | bullish trending low vol | 11 | +11.16 | 10.00 | 11 | 0 | 100.0 | -62.89 | 388h 25m |
| Jun 2023 | bullish trending low vol | 14 | -5.69 | -2.74 | 9 | 5 | 64.3 | -67.02 | 873h 35m |
| May 2023 | bearish choppy low vol | 3 | -0.99 | -2.25 | 2 | 1 | 66.7 | -61.34 | 352h 55m |
| Apr 2023 | bullish trending low vol | 4 | -0.65 | -0.56 | 3 | 1 | 75.0 | -60.04 | 423h 45m |
| Mar 2023 | bullish trending high vol | 16 | -3.88 | -2.64 | 10 | 6 | 62.5 | -65.03 | 411h 34m |
| Feb 2023 | bullish trending low vol | 21 | +9.95 | 4.41 | 19 | 2 | 90.5 | -62.33 | 177h 11m |
| Jan 2023 | bullish trending low vol | 18 | +21.50 | 9.75 | 18 | 0 | 100.0 | -72.29 | 323h 08m |
| Dec 2022 | bearish trending low vol | 3 | -6.59 | -14.42 | 1 | 2 | 33.3 | -72.47 | 430h 25m |
| Nov 2022 | bearish trending high vol | 16 | -12.08 | -6.41 | 9 | 7 | 56.2 | -71.57 | 524h 39m |
| Oct 2022 | bullish choppy low vol | 8 | -8.02 | -8.99 | 4 | 4 | 50.0 | -64.93 | 521h 08m |
| Sep 2022 | bearish choppy high vol | 7 | +3.04 | 3.26 | 5 | 2 | 71.4 | -61.56 | 479h 58m |
| Aug 2022 | bullish choppy high vol | 9 | -1.79 | -2.17 | 6 | 3 | 66.7 | -61.55 | 388h 57m |
| Jul 2022 | bearish trending high vol | 15 | +9.69 | 5.97 | 14 | 1 | 93.3 | -66.1 | 268h 59m |
| Jun 2022 | bearish trending high vol | 24 | -24.57 | -8.62 | 12 | 12 | 50.0 | -66.08 | 176h 08m |
| May 2022 | bearish trending high vol | 13 | -8.37 | -3.77 | 8 | 5 | 61.5 | -56.72 | 273h 03m |
| Apr 2022 | bearish choppy high vol | 13 | -29.78 | -20.17 | 2 | 11 | 15.4 | -49.99 | 436h 22m |
| Mar 2022 | bullish choppy high vol | 20 | +17.83 | 7.24 | 19 | 1 | 95.0 | -44.77 | 342h 24m |
| Feb 2022 | bearish trending high vol | 22 | -16.07 | -3.40 | 13 | 9 | 59.1 | -44.48 | 201h 36m |
| Jan 2022 | bearish trending high vol | 29 | -33.66 | -11.30 | 12 | 17 | 41.4 | -37.58 | 252h 35m |
| Dec 2021 | bearish trending high vol | 31 | +0.09 | -0.51 | 21 | 10 | 67.7 | -32.74 | 147h 40m |
| Nov 2021 | bullish trending high vol | 29 | -15.99 | -3.22 | 19 | 10 | 65.5 | -21.79 | 215h 48m |
| Oct 2021 | bullish trending high vol | 34 | +22.03 | 5.02 | 30 | 4 | 88.2 | -23.55 | 187h 56m |
| Sep 2021 | bearish trending high vol | 60 | -26.34 | -2.78 | 40 | 20 | 66.7 | -25.36 | 127h 08m |
| Aug 2021 | bullish trending high vol | 46 | +58.54 | 10.48 | 46 | 0 | 100.0 | -38.77 | 122h 59m |
| Jul 2021 | bearish trending high vol | 33 | -8.19 | -2.08 | 23 | 10 | 69.7 | -43.7 | 165h 52m |
| Jun 2021 | bearish trending high vol | 27 | -41.67 | -15.10 | 8 | 19 | 29.6 | -36.51 | 151h 07m |
| May 2021 | bearish trending high vol | 61 | -9.87 | -1.88 | 42 | 19 | 68.9 | -16.2 | 87h 53m |
| Apr 2021 | bearish choppy high vol | 78 | +13.57 | 1.71 | 62 | 16 | 79.5 | -18.41 | 120h 52m |
| Mar 2021 | bullish choppy high vol | 29 | +12.24 | 4.07 | 25 | 4 | 86.2 | -21.3 | 145h 54m |
| Feb 2021 | bullish trending high vol | 101 | +22.64 | 1.46 | 80 | 21 | 79.2 | -21.35 | 80h 27m |
| Jan 2021 | bullish trending high vol | 79 | +42.96 | 4.22 | 69 | 10 | 87.3 | -11.39 | 57h 01m |
Yearly breakdown
| Year | Trades | Profit % | Avg % | Win | Loss | Win % | DD % | Avg dur |
|---|---|---|---|---|---|---|---|---|
| 2026 | 7 | -8.04 | -13.33 | 1 | 6 | 14.3 | -71.6 | 1129h 21m |
| 2025 | 104 | -27.47 | -2.74 | 67 | 37 | 64.4 | -76.02 | 418h 33m |
| 2024 | 214 | -6.37 | -0.73 | 152 | 62 | 71.0 | -67.25 | 325h 42m |
| 2023 | 126 | +43.79 | 3.37 | 103 | 23 | 81.7 | -72.29 | 457h 54m |
| 2022 | 179 | -110.37 | -5.03 | 105 | 74 | 58.7 | -72.47 | 317h 22m |
| 2021 | 608 | +70.01 | 0.85 | 465 | 143 | 76.5 | -43.7 | 117h 57m |
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
no lookahead patterns · 2 thing(s) worth reviewing before trusting the numbers
| Line | Pattern | Detail | |
|---|---|---|---|
| 64 | review | unbounded_recursive_indicator | uses OBV, which accumulates over the WHOLE series with no decay floor -- raising startup_candle_count doesn't converge it, so `freqtrade recursive-analysis` will keep flagging it no matter how large the warmup is. That's inherent to the indicator, not a misconfiguration; judge it on whether the strategy only ever compares it to itself (a running total drifting is fine) rather than to a fixed threshold (which it will eventually cross by drift alone) |
| 38 | review | unthrottled_candle_processing | process_only_new_candles is False, so populate_indicators/populate_entry_trend/populate_exit_trend re-run every throttle_secs (default 5s) even though their inputs -- closed candles -- haven't changed since the last run. This wastes CPU without changing any value; if the goal is order-book-level checks, put that logic in confirm_trade_entry/custom_exit instead, which already run every loop |
ran by Ron · took s
Lookahead analysis
freqtrade lookahead-analysis: detects strategies peeking at future candles.