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 | from freqtrade.strategy import IStrategy, informative from pandas import DataFrame import talib.abstract as ta import freqtrade.vendor.qtpylib.indicators as qtpylib class MTFTrendStrategy(IStrategy): """ 多时间框架趋势跟随策略 1h 确认趋势 → 15m 等待回调 → 5m 金叉入场 """ INTERFACE_VERSION = 3 minimal_roi = { "0": 0.10, "30": 0.05, "60": 0.03, "120": 0.01 } stoploss = -0.03 trailing_stop = True trailing_stop_positive = 0.01 trailing_stop_positive_offset = 0.02 trailing_only_offset_is_reached = True timeframe = '5m' startup_candle_count: int = 200 # ========== 1 小时时间框架 ========== @informative('1h') def populate_indicators_1h(self, dataframe: DataFrame, metadata: dict) -> DataFrame: """ 1 小时:判断大趋势 """ # 长期趋势均线 dataframe['ema_50'] = ta.EMA(dataframe, timeperiod=50) dataframe['ema_200'] = ta.EMA(dataframe, timeperiod=200) # 趋势强度 dataframe['adx'] = ta.ADX(dataframe, timeperiod=14) # MACD macd = ta.MACD(dataframe, fastperiod=12, slowperiod=26, signalperiod=9) dataframe['macd'] = macd['macd'] dataframe['macdsignal'] = macd['macdsignal'] return dataframe # ========== 15 分钟时间框架 ========== @informative('15m') def populate_indicators_15m(self, dataframe: DataFrame, metadata: dict) -> DataFrame: """ 15 分钟:寻找回调机会 """ # 中期均线 dataframe['ema_20'] = ta.EMA(dataframe, timeperiod=20) dataframe['ema_50'] = ta.EMA(dataframe, timeperiod=50) # RSI dataframe['rsi'] = ta.RSI(dataframe, timeperiod=14) # 布林带(判断回调幅度) bollinger = qtpylib.bollinger_bands(dataframe['close'], window=20, stds=2) dataframe['bb_lower'] = bollinger['lower'] dataframe['bb_middle'] = bollinger['mid'] return dataframe # ========== 5 分钟时间框架 ========== def populate_indicators(self, dataframe: DataFrame, metadata: dict) -> DataFrame: """ 5 分钟:精确入场 """ # 快速均线 dataframe['ema_fast'] = ta.EMA(dataframe, timeperiod=9) dataframe['ema_slow'] = ta.EMA(dataframe, timeperiod=21) # RSI dataframe['rsi'] = ta.RSI(dataframe, timeperiod=14) # 成交量 dataframe['volume_mean'] = dataframe['volume'].rolling(window=20).mean() return dataframe def populate_entry_trend(self, dataframe: DataFrame, metadata: dict) -> DataFrame: """ 买入信号:三个时间框架共同确认 """ dataframe.loc[ ( # ===== 1 小时条件:确认上涨趋势 ===== (dataframe['ema_50_1h'] > dataframe['ema_200_1h']) & # 多头排列 (dataframe['close'] > dataframe['ema_50_1h']) & # 价格在趋势之上 (dataframe['adx_1h'] > 25) & # 趋势明确 (dataframe['macd_1h'] > dataframe['macdsignal_1h']) & # MACD 多头 # ===== 15 分钟条件:回调到位 ===== (dataframe['close'] > dataframe['ema_50_15m']) & # 仍在中期趋势之上 (dataframe['rsi_15m'] > 40) & # RSI 不要太弱 (dataframe['rsi_15m'] < 60) & # 也不要太强(留空间) (dataframe['close'] < dataframe['ema_20_15m']) & # 价格回调到 EMA 20 以下 # ===== 5 分钟条件:金叉入场 ===== (qtpylib.crossed_above(dataframe['ema_fast'], dataframe['ema_slow'])) & (dataframe['rsi'] > 45) & (dataframe['volume'] > dataframe['volume_mean']) & (dataframe['volume'] > 0) ), 'enter_long'] = 1 return dataframe def populate_exit_trend(self, dataframe: DataFrame, metadata: dict) -> DataFrame: """ 卖出信号:趋势反转 """ dataframe.loc[ ( # 1 小时趋势反转 ( (dataframe['ema_50_1h'] < dataframe['ema_200_1h']) | # 空头排列 (dataframe['macd_1h'] < dataframe['macdsignal_1h']) # MACD 空头 ) | # 或 5 分钟死叉 (qtpylib.crossed_below(dataframe['ema_fast'], dataframe['ema_slow'])) ) & (dataframe['volume'] > 0), 'exit_long'] = 1 return dataframe |
Strategy League — fixed backtest that feeds the ranking
Export report Freqtrade logsRun finished · took 282.7s
ℹ️ This strategy uses a trailing stop — freqtrade only
re-checks these once per 5m 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.71) — hard to tell apart from luck
- only 28% of resampled runs were profitable
- profitable in only 33% 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 | 2 | -0.02 | -0.10 | 1 | 1 | 50.0 | -1.67 | 1h 55m |
| Oct 2025 | bearish trending low vol | 2 | +0.20 | 1.02 | 2 | 0 | 100.0 | -1.76 | 2h 32m |
| Sep 2025 | bullish choppy low vol | 3 | -0.08 | -0.27 | 0 | 3 | 0.0 | -1.86 | 0h 27m |
| Aug 2025 | bullish choppy low vol | 1 | -0.06 | -0.64 | 0 | 1 | 0.0 | -1.78 | 0h 05m |
| Jul 2025 | bullish choppy low vol | 6 | -0.27 | -0.44 | 1 | 5 | 16.7 | -1.71 | 0h 55m |
| Jun 2025 | bearish choppy low vol | 2 | -0.14 | -0.70 | 0 | 2 | 0.0 | -1.45 | 0h 22m |
| May 2025 | bullish trending low vol | 2 | +0.08 | 0.42 | 1 | 1 | 50.0 | -1.41 | 1h 10m |
| Apr 2025 | bullish choppy low vol | 1 | -0.03 | -0.29 | 0 | 1 | 0.0 | -1.39 | 0h 05m |
| Mar 2025 | bearish trending high vol | 3 | +0.10 | 0.33 | 1 | 2 | 33.3 | -1.36 | 1h 25m |
| Feb 2025 | bearish trending low vol | 2 | -0.16 | -0.78 | 0 | 2 | 0.0 | -1.46 | 0h 35m |
| Jan 2025 | bearish choppy low vol | 2 | -0.09 | -0.44 | 0 | 2 | 0.0 | -1.31 | 1h 05m |
| Nov 2024 | bullish trending low vol | 3 | -0.19 | -0.65 | 0 | 3 | 0.0 | -1.22 | 0h 35m |
| Oct 2024 | bullish choppy low vol | 3 | +0.01 | 0.02 | 1 | 2 | 33.3 | -1.13 | 1h 37m |
| Sep 2024 | bearish choppy low vol | 2 | +0.07 | 0.33 | 1 | 1 | 50.0 | -1.04 | 1h 05m |
| Aug 2024 | bearish choppy high vol | 3 | -0.15 | -0.51 | 0 | 3 | 0.0 | -1.1 | 0h 57m |
| Jul 2024 | bearish trending low vol | 3 | -0.10 | -0.32 | 0 | 3 | 0.0 | -0.95 | 0h 40m |
| Jun 2024 | bearish choppy low vol | 2 | -0.05 | -0.26 | 1 | 1 | 50.0 | -0.85 | 1h 15m |
| May 2024 | bullish choppy high vol | 4 | -0.21 | -0.53 | 0 | 4 | 0.0 | -0.8 | 0h 21m |
| Apr 2024 | bearish choppy high vol | 1 | -0.14 | -1.36 | 0 | 1 | 0.0 | -0.59 | 0h 05m |
| Mar 2024 | bullish trending high vol | 1 | +0.06 | 0.56 | 1 | 0 | 100.0 | -0.46 | 0h 25m |
| Feb 2024 | bullish trending low vol | 2 | -0.03 | -0.15 | 1 | 1 | 50.0 | -0.51 | 1h 15m |
| Jan 2024 | bearish choppy high vol | 1 | -0.12 | -1.22 | 0 | 1 | 0.0 | -0.48 | 0h 15m |
| Dec 2023 | bullish trending low vol | 1 | -0.12 | -1.16 | 0 | 1 | 0.0 | -0.36 | 0h 25m |
| Nov 2023 | bullish trending low vol | 4 | -0.18 | -0.45 | 1 | 3 | 25.0 | -0.26 | 0h 31m |
| Oct 2023 | bullish trending low vol | 3 | +0.20 | 0.67 | 1 | 2 | 33.3 | -0.33 | 1h 07m |
| Sep 2023 | bearish choppy low vol | 2 | -0.10 | -0.50 | 0 | 2 | 0.0 | -0.27 | 0h 08m |
| Jul 2023 | bullish trending low vol | 1 | +0.14 | 1.45 | 1 | 0 | 100.0 | -0.17 | 0h 40m |
| Jun 2023 | bullish trending low vol | 6 | +0.25 | 0.42 | 2 | 4 | 33.3 | -0.61 | 0h 46m |
| May 2023 | bearish choppy low vol | 2 | -0.06 | -0.28 | 0 | 2 | 0.0 | -0.56 | 0h 35m |
| Apr 2023 | bullish trending low vol | 1 | -0.00 | -0.01 | 0 | 1 | 0.0 | -0.51 | 0h 10m |
| Mar 2023 | bullish trending high vol | 3 | +0.02 | 0.07 | 1 | 2 | 33.3 | -0.57 | 0h 45m |
| Feb 2023 | bullish trending low vol | 2 | -0.07 | -0.35 | 0 | 2 | 0.0 | -0.53 | 0h 18m |
| Jan 2023 | bullish trending low vol | 6 | +0.00 | 0.00 | 2 | 4 | 33.3 | -0.62 | 0h 45m |
| Nov 2022 | bearish trending high vol | 2 | -0.12 | -0.59 | 0 | 2 | 0.0 | -0.46 | 0h 05m |
| Oct 2022 | bullish choppy low vol | 2 | -0.15 | -0.74 | 0 | 2 | 0.0 | -0.34 | 0h 15m |
| Sep 2022 | bearish choppy high vol | 2 | +0.10 | 0.52 | 1 | 1 | 50.0 | -0.32 | 0h 22m |
| Aug 2022 | bullish choppy high vol | 1 | -0.12 | -1.24 | 0 | 1 | 0.0 | -0.3 | 0h 30m |
| Jul 2022 | bearish trending high vol | 2 | -0.09 | -0.47 | 0 | 2 | 0.0 | -0.18 | 0h 15m |
| Jun 2022 | bearish trending high vol | 3 | -0.03 | -0.11 | 1 | 2 | 33.3 | -0.21 | 0h 20m |
| May 2022 | bearish trending high vol | 1 | -0.05 | -0.49 | 0 | 1 | 0.0 | -0.05 | 0h 10m |
| Apr 2022 | bearish choppy high vol | 2 | +0.14 | 0.68 | 2 | 0 | 100.0 | 0.0 | 1h 40m |
| Mar 2022 | bullish choppy high vol | 2 | +0.13 | 0.67 | 2 | 0 | 100.0 | -0.0 | 1h 32m |
| Feb 2022 | bearish trending high vol | 1 | -0.04 | -0.35 | 0 | 1 | 0.0 | -0.03 | 1h 45m |
| Jan 2022 | bearish trending high vol | 1 | +0.11 | 1.11 | 1 | 0 | 100.0 | 0.0 | 1h 40m |
| Nov 2021 | bullish trending high vol | 1 | +0.16 | 1.61 | 1 | 0 | 100.0 | 0.0 | 1h 00m |
| Aug 2021 | bullish trending high vol | 2 | +0.03 | 0.13 | 1 | 1 | 50.0 | -0.12 | 0h 22m |
| Jul 2021 | bearish trending high vol | 1 | -0.09 | -0.88 | 0 | 1 | 0.0 | -0.14 | 0h 25m |
| Apr 2021 | bearish choppy high vol | 1 | +0.12 | 1.18 | 1 | 0 | 100.0 | -0.06 | 1h 40m |
| Mar 2021 | bullish choppy high vol | 2 | -0.11 | -0.56 | 0 | 2 | 0.0 | -0.17 | 0h 25m |
| Feb 2021 | bullish trending high vol | 1 | -0.06 | -0.63 | 0 | 1 | 0.0 | -0.06 | 0h 05m |
| Jan 2021 | bullish trending high vol | 7 | +0.72 | 1.03 | 5 | 2 | 71.4 | -0.22 | 0h 35m |
Yearly breakdown
| Year | Trades | Profit % | Avg % | Win | Loss | Win % | DD % | Avg dur |
|---|---|---|---|---|---|---|---|---|
| 2025 | 26 | -0.47 | -0.18 | 6 | 20 | 23.1 | -1.86 | 1h 01m |
| 2024 | 25 | -0.85 | -0.35 | 5 | 20 | 20.0 | -1.22 | 0h 50m |
| 2023 | 31 | +0.08 | 0.03 | 8 | 23 | 25.8 | -0.62 | 0h 39m |
| 2022 | 19 | -0.12 | -0.06 | 7 | 12 | 36.8 | -0.46 | 0h 42m |
| 2021 | 15 | +0.77 | 0.51 | 8 | 7 | 53.3 | -0.22 | 0h 35m |
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-bias patterns detected
ran by Ron · took s
Lookahead analysis
freqtrade lookahead-analysis: detects strategies peeking at future candles.