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 | import freqtrade.vendor.qtpylib.indicators as qtpylib import numpy as np import talib.abstract as ta from freqtrade.persistence import Trade from freqtrade.strategy.interface import IStrategy from pandas import DataFrame from datetime import datetime, timedelta from freqtrade.strategy import merge_informative_pair ########################################################################################################### ## CombinedBinHClucAndMADV3 by ilya ## ## ## ## https://github.com/i1ya/freqtrade-strategies ## ## The stratagy most inspired by iterativ (authors of the CombinedBinHAndClucV6) ## ## ## ########################################################################################################### ## GENERAL RECOMMENDATIONS ## ## ## ## For optimal performance, suggested to use between 2 and 4 open trades, with unlimited stake. ## ## With my pairlist which can be found in this repo. ## ## ## ## Ensure that you don't override any variables in your config.json. Especially ## ## the timeframe (must be 5m). ## ## ## ## sell_profit_only: ## ## True - risk more (gives you higher profit and higher Drawdown) ## ## False (default) - risk less (gives you less ~10-15% profit and much lower Drawdown) ## ## ## ########################################################################################################### class CombinedBinHClucAndMADV3(IStrategy): INTERFACE_VERSION = 3 minimal_roi = {'0': 0.021} stoploss = -0.99 # effectively disabled. timeframe = '5m' inf_1h = '1h' # Sell signal use_exit_signal = True exit_profit_only = False exit_profit_offset = 0.001 # it doesn't meant anything, just to guarantee there is a minimal profit. ignore_roi_if_entry_signal = True # Trailing stoploss trailing_stop = False trailing_only_offset_is_reached = False trailing_stop_positive = 0.01 trailing_stop_positive_offset = 0.025 # Custom stoploss use_custom_stoploss = True # Run "populate_indicators()" only for new candle. process_only_new_candles = False # Number of candles the strategy requires before producing valid signals startup_candle_count: int = 200 # Optional order type mapping. order_types = {'entry': 'limit', 'exit': 'limit', 'stoploss': 'market', 'stoploss_on_exchange': False} def custom_stoploss(self, pair: str, trade: 'Trade', current_time: datetime, current_rate: float, current_profit: float, **kwargs) -> float: # Manage losing trades and open room for better ones. if (current_profit < 0) & (current_time - timedelta(minutes=240) > trade.open_date_utc): return 0.01 return 0.99 def informative_pairs(self): pairs = self.dp.current_whitelist() informative_pairs = [(pair, '1h') for pair in pairs] return informative_pairs def informative_1h_indicators(self, dataframe: DataFrame, metadata: dict) -> DataFrame: assert self.dp, 'DataProvider is required for multiple timeframes.' # Get the informative pair informative_1h = self.dp.get_pair_dataframe(pair=metadata['pair'], timeframe=self.inf_1h) # EMA informative_1h['ema_50'] = ta.EMA(informative_1h, timeperiod=50) informative_1h['ema_200'] = ta.EMA(informative_1h, timeperiod=200) # RSI informative_1h['rsi'] = ta.RSI(informative_1h, timeperiod=14) return informative_1h def normal_tf_indicators(self, dataframe: DataFrame, metadata: dict) -> DataFrame: # strategy BinHV45 bb_40 = qtpylib.bollinger_bands(dataframe['close'], window=40, stds=2) dataframe['lower'] = bb_40['lower'] dataframe['mid'] = bb_40['mid'] dataframe['bbdelta'] = (bb_40['mid'] - dataframe['lower']).abs() dataframe['closedelta'] = (dataframe['close'] - dataframe['close'].shift()).abs() dataframe['tail'] = (dataframe['close'] - dataframe['low']).abs() # strategy ClucMay72018 bollinger = qtpylib.bollinger_bands(qtpylib.typical_price(dataframe), window=20, stds=2) dataframe['bb_lowerband'] = bollinger['lower'] dataframe['bb_middleband'] = bollinger['mid'] dataframe['bb_upperband'] = bollinger['upper'] dataframe['ema_slow'] = ta.EMA(dataframe, timeperiod=50) dataframe['volume_mean_slow'] = dataframe['volume'].rolling(window=30).mean() # EMA dataframe['ema_50'] = ta.EMA(dataframe, timeperiod=50) dataframe['ema_200'] = ta.EMA(dataframe, timeperiod=200) dataframe['ema_26'] = ta.EMA(dataframe, timeperiod=26) dataframe['ema_12'] = ta.EMA(dataframe, timeperiod=12) # RSI dataframe['rsi'] = ta.RSI(dataframe, timeperiod=14) return dataframe def populate_indicators(self, dataframe: DataFrame, metadata: dict) -> DataFrame: # The indicators for the 1h informative timeframe informative_1h = self.informative_1h_indicators(dataframe, metadata) dataframe = merge_informative_pair(dataframe, informative_1h, self.timeframe, self.inf_1h, ffill=True) # The indicators for the normal (5m) timeframe dataframe = self.normal_tf_indicators(dataframe, metadata) return dataframe def populate_entry_trend(self, dataframe: DataFrame, metadata: dict) -> DataFrame: # strategy BinHV45 # Make sure Volume is not 0 # strategy ClucMay72018 # Make sure Volume is not 0 # strategy MACD Low buy # Make sure Volume is not 0 dataframe.loc[(dataframe['close'] > dataframe['ema_200_1h']) & (dataframe['ema_50'] > dataframe['ema_200']) & (dataframe['ema_50_1h'] > dataframe['ema_200_1h']) & dataframe['lower'].shift().gt(0) & dataframe['bbdelta'].gt(dataframe['close'] * 0.031) & dataframe['closedelta'].gt(dataframe['close'] * 0.018) & dataframe['tail'].lt(dataframe['bbdelta'] * 0.233) & dataframe['close'].lt(dataframe['lower'].shift()) & dataframe['close'].le(dataframe['close'].shift()) & (dataframe['volume'] > 0) | (dataframe['close'] < dataframe['ema_slow']) & (dataframe['close'] < 0.985 * dataframe['bb_lowerband']) & (dataframe['volume'] < dataframe['volume_mean_slow'].shift(1) * 20) & (dataframe['volume'] < dataframe['volume'].shift() * 4) & (dataframe['volume'] > 0) | (dataframe['ema_26'] > dataframe['ema_12']) & (dataframe['ema_26'] - dataframe['ema_12'] > dataframe['open'] * 0.02) & (dataframe['ema_26'].shift() - dataframe['ema_12'].shift() > dataframe['open'] / 100) & (dataframe['volume'] < dataframe['volume'].shift() * 4) & (dataframe['close'] < dataframe['bb_lowerband']) & (dataframe['volume'] > 0), 'enter_long'] = 1 return dataframe def populate_exit_trend(self, dataframe: DataFrame, metadata: dict) -> DataFrame: # Make sure Volume is not 0 dataframe.loc[(dataframe['close'] > dataframe['bb_middleband'] * 1.01) & (dataframe['volume'] > 0), 'exit_long'] = 1 return dataframe |
Strategy League — fixed backtest that feeds the ranking
Export report Freqtrade logsRun finished · took 300.4s
ℹ️ This strategy uses a trailing stop / custom_stoploss() — 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 →
- did not beat simply holding the market
- statistically significant edge (p=0.00)
- 100% of resampled runs stayed profitable
- profitable across 81% of rolling 3-month windows
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 | 15 | -2.68 | -1.78 | 5 | 10 | 33.3 | -2.99 | 2h 53m |
| Nov 2025 | bearish trending high vol | 43 | +3.66 | 0.85 | 35 | 8 | 81.4 | -3.22 | 1h 38m |
| Oct 2025 | bearish trending low vol | 35 | -12.02 | -3.43 | 20 | 15 | 57.1 | -3.94 | 1h 21m |
| Sep 2025 | bullish choppy low vol | 8 | +1.42 | 1.77 | 8 | 0 | 100.0 | -0.06 | 1h 44m |
| Aug 2025 | bullish choppy low vol | 10 | +1.22 | 1.22 | 8 | 2 | 80.0 | -0.09 | 1h 48m |
| Jul 2025 | bullish choppy low vol | 16 | +2.72 | 1.70 | 14 | 2 | 87.5 | -0.13 | 1h 11m |
| Jun 2025 | bearish choppy low vol | 20 | -0.43 | -0.21 | 10 | 10 | 50.0 | -0.55 | 2h 32m |
| May 2025 | bullish trending low vol | 21 | +1.97 | 0.94 | 13 | 8 | 61.9 | -0.09 | 1h 27m |
| Apr 2025 | bullish choppy low vol | 19 | +1.67 | 0.88 | 14 | 5 | 73.7 | -0.18 | 1h 15m |
| Mar 2025 | bearish trending high vol | 43 | +3.02 | 0.70 | 35 | 8 | 81.4 | -1.35 | 1h 28m |
| Feb 2025 | bearish trending low vol | 76 | +0.24 | 0.03 | 51 | 25 | 67.1 | -2.11 | 1h 26m |
| Jan 2025 | bearish choppy low vol | 55 | +4.33 | 0.79 | 44 | 11 | 80.0 | -1.05 | 1h 09m |
| Dec 2024 | bullish trending low vol | 101 | +5.47 | 0.54 | 73 | 28 | 72.3 | -1.43 | 1h 24m |
| Nov 2024 | bullish trending low vol | 78 | +6.48 | 0.83 | 58 | 20 | 74.4 | -0.72 | 1h 29m |
| Oct 2024 | bullish choppy low vol | 24 | +0.30 | 0.13 | 13 | 11 | 54.2 | -0.9 | 2h 08m |
| Sep 2024 | bearish choppy low vol | 5 | +1.06 | 2.11 | 5 | 0 | 100.0 | -1.11 | 0h 14m |
| Aug 2024 | bearish choppy high vol | 39 | +4.35 | 1.12 | 34 | 5 | 87.2 | -2.67 | 0h 44m |
| Jul 2024 | bearish trending low vol | 27 | +1.13 | 0.42 | 22 | 5 | 81.5 | -3.2 | 1h 09m |
| Jun 2024 | bearish choppy low vol | 33 | +2.80 | 0.85 | 30 | 3 | 90.9 | -3.47 | 2h 10m |
| Apr 2024 | bearish choppy high vol | 55 | -8.59 | -1.56 | 31 | 24 | 56.4 | -3.53 | 2h 02m |
| Mar 2024 | bullish trending high vol | 41 | +3.41 | 0.83 | 31 | 10 | 75.6 | -0.2 | 1h 09m |
| Feb 2024 | bullish trending low vol | 19 | +1.96 | 1.03 | 15 | 4 | 78.9 | -0.58 | 1h 11m |
| Jan 2024 | bearish choppy high vol | 33 | -1.76 | -0.53 | 17 | 16 | 51.5 | -1.18 | 2h 07m |
| Dec 2023 | bullish trending low vol | 42 | +7.42 | 1.77 | 39 | 3 | 92.9 | -0.1 | 1h 20m |
| Nov 2023 | bullish trending low vol | 28 | +2.65 | 0.94 | 22 | 6 | 78.6 | -0.2 | 1h 41m |
| Oct 2023 | bullish trending low vol | 16 | +2.36 | 1.47 | 14 | 2 | 87.5 | -0.06 | 1h 55m |
| Sep 2023 | bearish choppy low vol | 3 | +0.32 | 1.07 | 2 | 1 | 66.7 | -0.03 | 4h 35m |
| Aug 2023 | bearish choppy low vol | 25 | +5.23 | 2.09 | 21 | 4 | 84.0 | -0.18 | 1h 19m |
| Jul 2023 | bullish trending low vol | 22 | +2.94 | 1.34 | 19 | 3 | 86.4 | -0.12 | 6h 11m |
| Jun 2023 | bullish trending low vol | 49 | +7.06 | 1.44 | 39 | 10 | 79.6 | -2.09 | 1h 37m |
| May 2023 | bearish choppy low vol | 18 | +2.44 | 1.36 | 15 | 3 | 83.3 | -2.92 | 2h 19m |
| Apr 2023 | bullish trending low vol | 30 | -0.38 | -0.13 | 16 | 14 | 53.3 | -2.9 | 2h 56m |
| Mar 2023 | bullish trending high vol | 48 | -0.56 | -0.12 | 28 | 20 | 58.3 | -3.59 | 3h 30m |
| Feb 2023 | bullish trending low vol | 33 | +1.58 | 0.48 | 23 | 10 | 69.7 | -3.28 | 2h 47m |
| Jan 2023 | bullish trending low vol | 42 | +3.28 | 0.78 | 31 | 11 | 73.8 | -4.01 | 2h 52m |
| Dec 2022 | bearish trending low vol | 23 | +3.46 | 1.50 | 17 | 6 | 73.9 | -5.09 | 2h 05m |
| Nov 2022 | bearish trending high vol | 115 | -5.91 | -0.51 | 68 | 47 | 59.1 | -6.44 | 1h 58m |
| Oct 2022 | bullish choppy low vol | 17 | +0.74 | 0.43 | 12 | 5 | 70.6 | -3.66 | 2h 37m |
| Sep 2022 | bearish choppy high vol | 33 | -8.32 | -2.52 | 8 | 25 | 24.2 | -3.56 | 4h 21m |
| Aug 2022 | bullish choppy high vol | 36 | -2.89 | -0.80 | 12 | 24 | 33.3 | -1.03 | 3h 41m |
| Jul 2022 | bearish trending high vol | 40 | +3.89 | 0.97 | 31 | 9 | 77.5 | -0.14 | 1h 32m |
| Jun 2022 | bearish trending high vol | 90 | +6.69 | 0.74 | 63 | 27 | 70.0 | -0.59 | 1h 22m |
| May 2022 | bearish trending high vol | 160 | +19.61 | 1.23 | 134 | 26 | 83.8 | -0.83 | 0h 50m |
| Apr 2022 | bearish choppy high vol | 39 | +3.40 | 0.87 | 30 | 9 | 76.9 | -1.53 | 3h 39m |
| Mar 2022 | bullish choppy high vol | 14 | +1.50 | 1.07 | 10 | 4 | 71.4 | -2.13 | 2h 50m |
| Feb 2022 | bearish trending high vol | 49 | -2.97 | -0.60 | 30 | 19 | 61.2 | -2.29 | 2h 23m |
| Jan 2022 | bearish trending high vol | 58 | +4.63 | 0.80 | 43 | 15 | 74.1 | -1.38 | 1h 09m |
| Dec 2021 | bearish trending high vol | 39 | -1.77 | -0.45 | 25 | 14 | 64.1 | -2.2 | 1h 21m |
| Nov 2021 | bullish trending high vol | 45 | +1.14 | 0.25 | 32 | 13 | 71.1 | -0.98 | 1h 54m |
| Oct 2021 | bullish trending high vol | 32 | +6.45 | 2.02 | 28 | 4 | 87.5 | -1.56 | 1h 09m |
| Sep 2021 | bearish trending high vol | 134 | +6.79 | 0.51 | 98 | 36 | 73.1 | -2.12 | 1h 13m |
| Aug 2021 | bullish trending high vol | 52 | +7.61 | 1.46 | 46 | 6 | 88.5 | -1.06 | 1h 20m |
| Jul 2021 | bearish trending high vol | 45 | -1.20 | -0.27 | 25 | 20 | 55.6 | -1.06 | 3h 14m |
| Jun 2021 | bearish trending high vol | 127 | +3.79 | 0.30 | 85 | 42 | 66.9 | -1.43 | 1h 39m |
| May 2021 | bearish trending high vol | 406 | +25.50 | 0.63 | 308 | 98 | 75.9 | -4.96 | 0h 59m |
| Apr 2021 | bearish choppy high vol | 264 | +34.27 | 1.30 | 224 | 40 | 84.8 | -1.61 | 0h 46m |
| Mar 2021 | bullish choppy high vol | 106 | +14.46 | 1.36 | 89 | 17 | 84.0 | -0.31 | 1h 26m |
| Feb 2021 | bullish trending high vol | 334 | +43.63 | 1.31 | 288 | 46 | 86.2 | -2.14 | 0h 45m |
| Jan 2021 | bullish trending high vol | 362 | +44.41 | 1.23 | 309 | 53 | 85.4 | -3.81 | 0h 49m |
Yearly breakdown
| Year | Trades | Profit % | Avg % | Win | Loss | Win % | DD % | Avg dur |
|---|---|---|---|---|---|---|---|---|
| 2025 | 361 | +5.12 | 0.14 | 257 | 104 | 71.2 | -3.94 | 1h 32m |
| 2024 | 455 | +16.61 | 0.37 | 329 | 126 | 72.3 | -3.53 | 1h 31m |
| 2023 | 356 | +34.34 | 0.96 | 269 | 87 | 75.6 | -4.01 | 2h 33m |
| 2022 | 674 | +23.83 | 0.36 | 458 | 216 | 68.0 | -6.44 | 1h 54m |
| 2021 | 1946 | +185.08 | 0.95 | 1557 | 389 | 80.0 | -4.96 | 1h 04m |
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 · 1 thing(s) worth reviewing before trusting the numbers
| Line | Pattern | Detail | |
|---|---|---|---|
| 49 | 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.