3 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 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 | # --- Do not remove these libs --- from freqtrade.strategy import ( IStrategy, merge_informative_pair, DecimalParameter, IntParameter, ) from pandas import DataFrame import talib.abstract as ta import freqtrade.vendor.qtpylib.indicators as qtpylib from freqtrade.persistence import Trade from datetime import datetime # --- Do not remove these libs --- ######################################################################################################################################################## class BearBull4(IStrategy): ######################################################################################################################################################## """ FIXED VERSION (preserves the "old good" trailing behavior, adds a rare backstop) What was fixed: - Keep trailing as the primary exit engine (do NOT tighten further). - Make thesis invalidation strict and data-safe (no reliance on analyzed inf columns that may not exist). - Do NOT accidentally create extra losing exits from trailing by changing offsets. - Keep existing entry logic and exit_hint logic unchanged. """ buy_params = { "bbdelta_close": 0.023, "bbdelta_close_2": 0.05, "closedelta_close": 0.014, "closedelta_close_2": 0.003, "tail_bbdelta": 0.104, "tail_bbdelta_2": 0.21, } sell_params = { "base_nb_candles_sell": 16, "high_offset": 1.02, "high_offset_2": 1.04, "tp_min_profit": 0.012, "runner_arm_profit": 0.04, "runner_retrace": 0.02, # backstop params (kept, but logic is stricter below) "dead_max_days": 3, "dead_min_loss": -0.06, "dead_recover_profit": -0.02, } can_short = False minimal_roi = {} ignore_roi_if_entry_signal = False # Keep the wide hard stop (this strategy relies on trailing for exits) stoploss = -0.25 use_custom_stoploss = False # IMPORTANT: keep trailing exactly at the "good" baseline trailing_stop = True trailing_stop_positive = 0.0015 trailing_stop_positive_offset = 0.008 trailing_only_offset_is_reached = True use_entry_signal = True use_exit_signal = False # exits via custom_exit + trailing_stop_loss exit_profit_only = False exit_profit_offset = 0.0 timeframe = '5m' informative = '1h' process_only_new_candles = False startup_candle_count = 200 order_types = { 'entry': 'market', 'exit': 'market', 'trailing_stop_loss': 'market', 'emergency_exit': 'market', 'force_entry': 'market', 'force_exit': 'market', 'stoploss': 'market', 'stoploss_on_exchange': False, 'stoploss_on_exchange_interval': 60, 'stoploss_on_exchange_limit_ratio': 0.99 } order_time_in_force = { 'entry': 'gtc', 'exit': 'gtc' } plot_config = { 'main_plot': { 'mid': {}, 'lower': {}, 'upper': {}, 'ema_50': {}, 'ema_200': {}, }, 'subplots': { 'rsi': { 'rsi': {}, 'rsi_fast': {}, 'rsi_slow': {}, }, 'macd_inf': { f'macdhist_{informative}': {}, }, 'exit': { 'exit_hint': {}, } } } ######################################################################################################################################################## # Trade Protections ######################################################################################################################################################## @property def protections(self): return [ {"method": "CooldownPeriod", "stop_duration_candles": 5}, { "method": "MaxDrawdown", "lookback_period_candles": 72, "trade_limit": 20, "stop_duration_candles": 6, "max_allowed_drawdown": 0.03 }, { "method": "StoplossGuard", "lookback_period_candles": 48, "trade_limit": 4, "stop_duration_candles": 4, "only_per_pair": False }, { "method": "LowProfitPairs", "lookback_period_candles": 24, "trade_limit": 2, "stop_duration_candles": 12, "required_profit": 0.02 }, { "method": "LowProfitPairs", "lookback_period_candles": 144, "trade_limit": 4, "stop_duration_candles": 24, "required_profit": 0.04 } ] ######################################################################################################################################################## # Parameters ######################################################################################################################################################## is_optimize_buy1 = True is_optimize_buy2 = True is_optimize_sell = True is_optimize_backstop = True bbdelta_close = DecimalParameter(0.016, 0.030, default=buy_params['bbdelta_close'], space='buy', optimize=is_optimize_buy1) closedelta_close = DecimalParameter(0.010, 0.020, default=buy_params['closedelta_close'], space='buy', optimize=is_optimize_buy1) tail_bbdelta = DecimalParameter(0.08, 0.15, default=buy_params['tail_bbdelta'], space='buy', optimize=is_optimize_buy1) bbdelta_close_2 = DecimalParameter(0.035, 0.065, default=buy_params['bbdelta_close_2'], space='buy', optimize=is_optimize_buy2) closedelta_close_2 = DecimalParameter(0.0015, 0.0045, default=buy_params['closedelta_close_2'], space='buy', optimize=is_optimize_buy2) tail_bbdelta_2 = DecimalParameter(0.16, 0.28, default=buy_params['tail_bbdelta_2'], space='buy', optimize=is_optimize_buy2) base_nb_candles_sell = IntParameter(10, 24, default=sell_params['base_nb_candles_sell'], space='sell', optimize=is_optimize_sell) high_offset = DecimalParameter(1.005, 1.06, default=sell_params['high_offset'], space='sell', optimize=is_optimize_sell) high_offset_2 = DecimalParameter(1.01, 1.10, default=sell_params['high_offset_2'], space='sell', optimize=is_optimize_sell) tp_min_profit = DecimalParameter(0.003, 0.03, default=sell_params['tp_min_profit'], space='sell', optimize=is_optimize_sell) runner_arm_profit = DecimalParameter(0.02, 0.10, default=sell_params['runner_arm_profit'], space='sell', optimize=is_optimize_sell) runner_retrace = DecimalParameter(0.008, 0.05, default=sell_params['runner_retrace'], space='sell', optimize=is_optimize_sell) dead_max_days = IntParameter(2, 10, default=sell_params['dead_max_days'], space='sell', optimize=is_optimize_backstop) dead_min_loss = DecimalParameter(-0.15, -0.03, default=sell_params['dead_min_loss'], space='sell', optimize=is_optimize_backstop) dead_recover_profit = DecimalParameter(-0.05, 0.0, default=sell_params['dead_recover_profit'], space='sell', optimize=is_optimize_backstop) ######################################################################################################################################################## # Informative pairs ######################################################################################################################################################## def informative_pairs(self): pairs = self.dp.current_whitelist() return [(pair, self.informative) for pair in pairs] ######################################################################################################################################################## # Indicators ######################################################################################################################################################## def populate_indicators(self, dataframe: DataFrame, metadata: dict) -> DataFrame: inf_tf = self.informative macd_df = self.dp.get_pair_dataframe(pair=metadata['pair'], timeframe=inf_tf) if macd_df is None or macd_df.empty or 'close' not in macd_df.columns: dataframe[f'macdhist_{inf_tf}'] = 0.0 else: macd = ta.MACD(macd_df, fastperiod=10, slowperiod=20, signalperiod=10) macd_df['macdhist'] = macd['macdhist'] dataframe = merge_informative_pair(dataframe, macd_df, self.timeframe, inf_tf, ffill=True) mh = dataframe[f'macdhist_{inf_tf}'] dataframe[f'macdhist_rising_{inf_tf}'] = mh > mh.shift(1) dataframe[f'macdhist_falling_{inf_tf}'] = mh < mh.shift(1) for val in self.base_nb_candles_sell.range: dataframe[f'ma_sell_{val}'] = ta.EMA(dataframe, timeperiod=val) dataframe['ema_50'] = ta.EMA(dataframe, timeperiod=50) dataframe['ema_200'] = ta.EMA(dataframe, timeperiod=200) dataframe['rsi'] = ta.RSI(dataframe, timeperiod=14) dataframe['rsi_slow'] = ta.RSI(dataframe, timeperiod=20) dataframe['rsi_fast'] = ta.RSI(dataframe, timeperiod=4) bb = ta.BBANDS(dataframe, timeperiod=40, nbdevup=2.0, nbdevdn=2.0) dataframe['mid'] = bb['middleband'] dataframe['lower'] = bb['lowerband'] dataframe['upper'] = bb['upperband'] dataframe['bbdelta'] = (dataframe['mid'] - dataframe['lower']).abs() dataframe['closedelta'] = (dataframe['close'] - dataframe['close'].shift()).abs() dataframe['tail'] = (dataframe['close'] - dataframe['low']).abs() dataframe['atr'] = ta.ATR(dataframe, timeperiod=14) dataframe['sma_9'] = ta.SMA(dataframe, timeperiod=9) dataframe['hma_50'] = qtpylib.hull_moving_average(dataframe['close'], window=50) return dataframe ######################################################################################################################################################## # Entry ######################################################################################################################################################## def populate_entry_trend(self, dataframe: DataFrame, metadata: dict) -> DataFrame: dataframe['enter_long'] = 0 dataframe['enter_tag'] = None inf_tf = self.informative mh = dataframe[f'macdhist_{inf_tf}'] # Hardened regime: # - If mh > 0: OK # - If mh < 0: require mh rising for 2 consecutive informative steps mh_r1 = mh > mh.shift(1) mh_r2 = mh.shift(1) > mh.shift(2) regime_ok = (mh > 0) | ((mh < 0) & mh_r1 & mh_r2) bearish = ( (mh < 0) & (dataframe['lower'].shift() > 0) & (dataframe['bbdelta'] > dataframe['close'] * self.bbdelta_close.value) & (dataframe['closedelta'] > dataframe['close'] * self.closedelta_close.value) & (dataframe['tail'] < dataframe['bbdelta'] * self.tail_bbdelta.value) & (dataframe['close'] < dataframe['lower'].shift()) & (dataframe['close'] <= dataframe['close'].shift()) ) bullish = ( (mh > 0) & (dataframe['lower'].shift() > 0) & (dataframe['bbdelta'] > dataframe['close'] * self.bbdelta_close_2.value) & (dataframe['closedelta'] > dataframe['close'] * self.closedelta_close_2.value) & (dataframe['tail'] < dataframe['bbdelta'] * self.tail_bbdelta_2.value) & (dataframe['close'] < dataframe['lower'].shift()) & (dataframe['close'] <= dataframe['close'].shift()) ) entry_condition = (bearish | bullish) & regime_ok & (dataframe['volume'] > 0) dataframe.loc[entry_condition, ['enter_long', 'enter_tag']] = [1, 'dip_macdhist_regime_v2'] return dataframe ######################################################################################################################################################## # Exit hints (NOT actual exits) ######################################################################################################################################################## def populate_exit_trend(self, dataframe: DataFrame, metadata: dict) -> DataFrame: dataframe['exit_long'] = 0 dataframe['exit_tag'] = None dataframe['exit_hint'] = 0 ma_key = f'ma_sell_{self.base_nb_candles_sell.value}' exit_reversion_hint = ( (dataframe['close'] > dataframe['mid']) & (dataframe['close'] > dataframe[ma_key] * self.high_offset.value) & (dataframe['rsi_fast'] < dataframe['rsi_slow']) & (dataframe['volume'] > 0) ) dataframe.loc[exit_reversion_hint, 'exit_hint'] = 1 return dataframe ######################################################################################################################################################## # Custom exit (actual exits) ######################################################################################################################################################## def custom_exit( self, pair: str, trade: Trade, current_time: datetime, current_rate: float, current_profit: float, **kwargs ): tp_min = float(self.tp_min_profit.value) # Peak profit tracking max_rate = trade.max_rate if trade.max_rate else trade.open_rate peak_profit = (max_rate / trade.open_rate) - 1.0 arm = float(self.runner_arm_profit.value) retr = float(self.runner_retrace.value) # 1) Runner retrace: profit-gated + giveback-based if peak_profit >= arm and current_profit > 0: giveback = peak_profit - current_profit if giveback >= retr: return 'runner_retrace' # 2) Profit-take on exit_hint (profit-gated) if current_profit >= tp_min: df, _ = self.dp.get_analyzed_dataframe(pair, self.timeframe) if df is not None and not df.empty: if int(df.iloc[-1].get('exit_hint', 0)) == 1: return 'reversion_takeprofit' # 3) Thesis invalidation (STRICT + RARE) # Goal: reduce worst-tail WITHOUT touching the trailing engine. held_days = (current_time - trade.open_date_utc).total_seconds() / 86400.0 # Make this stricter than before to avoid killing good trades: # - Must be held for at least max_days # - Must still be meaningfully red # - Must be below EMA200 on 5m # - Must have worsening bearish MACD hist for TWO consecutive 1h steps max_days = float(self.dead_max_days.value) min_loss = float(self.dead_min_loss.value) # "recover_floor" as a guard: if it has recovered above this, do not kill it recover_floor = float(self.dead_recover_profit.value) if held_days >= max_days and current_profit <= min_loss and current_profit <= recover_floor: # 5m condition: below EMA200 df_5m, _ = self.dp.get_analyzed_dataframe(pair, self.timeframe) if df_5m is None or len(df_5m) < 2: return None last_5m = df_5m.iloc[-1] close_5m = float(last_5m.get('close', 0.0)) ema200_5m = float(last_5m.get('ema_200', 0.0)) below_ema200 = close_5m > 0.0 and ema200_5m > 0.0 and (close_5m < ema200_5m) if not below_ema200: return None # 1h MACD hist: compute directly from raw 1h df (robust in backtest/live) inf_tf = self.informative inf_df = self.dp.get_pair_dataframe(pair=pair, timeframe=inf_tf) if inf_df is None or len(inf_df) < 60 or 'close' not in inf_df.columns: return None macd = ta.MACD(inf_df, fastperiod=10, slowperiod=20, signalperiod=10) mh = macd.get('macdhist', None) if mh is None or len(mh) < 4: return None mh_now = float(mh.iloc[-1]) mh_prev = float(mh.iloc[-2]) mh_prev2 = float(mh.iloc[-3]) macd_bearish_and_worsening = (mh_now < 0) and (mh_now < mh_prev) and (mh_prev < mh_prev2) if macd_bearish_and_worsening: return 'thesis_invalidation' return None |
Strategy League — fixed backtest that feeds the ranking
Export report Freqtrade logsRun finished · took 284.0s
ℹ️ 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 →
- did not beat simply holding the market
- statistically significant edge (p=0.00)
- 100% of resampled runs stayed profitable
- profitable across 92% 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 | 2 | +0.18 | 0.92 | 2 | 0 | 100.0 | 0.0 | 9h 52m |
| Nov 2025 | bearish trending high vol | 12 | +1.41 | 1.17 | 12 | 0 | 100.0 | 0.0 | 1h 37m |
| Oct 2025 | bearish trending low vol | 12 | +1.20 | 1.00 | 12 | 0 | 100.0 | 0.0 | 0h 29m |
| Sep 2025 | bullish choppy low vol | 1 | +0.04 | 0.43 | 1 | 0 | 100.0 | 0.0 | 0h 00m |
| Jul 2025 | bullish choppy low vol | 1 | +0.07 | 0.68 | 1 | 0 | 100.0 | 0.0 | 0h 25m |
| Jun 2025 | bearish choppy low vol | 2 | +0.13 | 0.63 | 2 | 0 | 100.0 | 0.0 | 0h 05m |
| Apr 2025 | bullish choppy low vol | 7 | +0.65 | 0.93 | 7 | 0 | 100.0 | 0.0 | 1h 10m |
| Mar 2025 | bearish trending high vol | 9 | +0.88 | 0.98 | 9 | 0 | 100.0 | 0.0 | 0h 16m |
| Feb 2025 | bearish trending low vol | 4 | +0.34 | 0.84 | 4 | 0 | 100.0 | 0.0 | 0h 08m |
| Jan 2025 | bearish choppy low vol | 20 | +1.43 | 0.71 | 20 | 0 | 100.0 | 0.0 | 2h 26m |
| Dec 2024 | bullish trending low vol | 37 | +2.98 | 0.80 | 37 | 0 | 100.0 | -1.11 | 0h 09m |
| Nov 2024 | bullish trending low vol | 19 | +1.24 | 0.65 | 19 | 0 | 100.0 | -1.95 | 0h 47m |
| Sep 2024 | bearish choppy low vol | 1 | +0.08 | 0.84 | 1 | 0 | 100.0 | -1.98 | 368h 25m |
| Aug 2024 | bearish choppy high vol | 5 | +0.38 | 0.76 | 5 | 0 | 100.0 | -2.25 | 0h 09m |
| Jul 2024 | bearish trending low vol | 6 | +0.38 | 0.63 | 6 | 0 | 100.0 | -2.5 | 14h 50m |
| Jun 2024 | bearish choppy low vol | 7 | +0.31 | 0.45 | 7 | 0 | 100.0 | -2.7 | 0h 00m |
| Apr 2024 | bearish choppy high vol | 13 | -4.20 | -3.23 | 11 | 2 | 84.6 | -2.73 | 5h 20m |
| Mar 2024 | bullish trending high vol | 11 | +0.96 | 0.87 | 11 | 0 | 100.0 | 0.0 | 0h 10m |
| Feb 2024 | bullish trending low vol | 2 | +0.17 | 0.83 | 2 | 0 | 100.0 | 0.0 | 1h 02m |
| Jan 2024 | bearish choppy high vol | 13 | +0.96 | 0.74 | 13 | 0 | 100.0 | 0.0 | 1h 17m |
| Dec 2023 | bullish trending low vol | 19 | +2.14 | 1.12 | 19 | 0 | 100.0 | 0.0 | 1h 27m |
| Nov 2023 | bullish trending low vol | 7 | +0.69 | 0.99 | 7 | 0 | 100.0 | 0.0 | 4h 22m |
| Aug 2023 | bearish choppy low vol | 8 | +0.36 | 0.45 | 8 | 0 | 100.0 | 0.0 | 0h 00m |
| Jul 2023 | bullish trending low vol | 2 | +0.15 | 0.74 | 2 | 0 | 100.0 | 0.0 | 0h 05m |
| Jun 2023 | bullish trending low vol | 2 | +0.18 | 0.91 | 2 | 0 | 100.0 | 0.0 | 0h 02m |
| Apr 2023 | bullish trending low vol | 2 | +0.23 | 1.13 | 2 | 0 | 100.0 | -0.08 | 0h 20m |
| Mar 2023 | bullish trending high vol | 14 | +1.36 | 0.97 | 14 | 0 | 100.0 | -1.04 | 0h 43m |
| Feb 2023 | bullish trending low vol | 3 | +0.22 | 0.74 | 3 | 0 | 100.0 | -1.16 | 0h 13m |
| Jan 2023 | bullish trending low vol | 12 | +0.86 | 0.72 | 12 | 0 | 100.0 | -1.77 | 1h 28m |
| Nov 2022 | bearish trending high vol | 58 | +0.21 | 0.04 | 56 | 2 | 96.6 | -3.04 | 12h 14m |
| Sep 2022 | bearish choppy high vol | 7 | +0.89 | 1.27 | 7 | 0 | 100.0 | 0.0 | 2h 00m |
| Aug 2022 | bullish choppy high vol | 4 | +0.24 | 0.60 | 4 | 0 | 100.0 | 0.0 | 0h 52m |
| Jul 2022 | bearish trending high vol | 10 | +0.84 | 0.84 | 10 | 0 | 100.0 | 0.0 | 0h 40m |
| Jun 2022 | bearish trending high vol | 24 | +2.34 | 0.98 | 24 | 0 | 100.0 | 0.0 | 0h 35m |
| May 2022 | bearish trending high vol | 49 | +5.63 | 1.15 | 49 | 0 | 100.0 | -0.24 | 1h 41m |
| Apr 2022 | bearish choppy high vol | 2 | +0.15 | 0.75 | 2 | 0 | 100.0 | -0.4 | 9h 10m |
| Mar 2022 | bullish choppy high vol | 1 | +0.07 | 0.72 | 1 | 0 | 100.0 | -0.46 | 1h 50m |
| Feb 2022 | bearish trending high vol | 4 | +0.25 | 0.61 | 4 | 0 | 100.0 | -0.66 | 0h 04m |
| Jan 2022 | bearish trending high vol | 8 | +0.42 | 0.52 | 8 | 0 | 100.0 | -0.97 | 0h 08m |
| Dec 2021 | bearish trending high vol | 5 | +0.51 | 1.02 | 5 | 0 | 100.0 | -1.34 | 0h 58m |
| Nov 2021 | bullish trending high vol | 4 | +0.60 | 1.51 | 4 | 0 | 100.0 | -1.63 | 5h 15m |
| Oct 2021 | bullish trending high vol | 1 | +0.04 | 0.45 | 1 | 0 | 100.0 | -1.82 | 0h 00m |
| Sep 2021 | bearish trending high vol | 33 | -0.48 | -0.14 | 32 | 1 | 97.0 | -1.85 | 4h 54m |
| Aug 2021 | bullish trending high vol | 2 | +0.18 | 0.88 | 2 | 0 | 100.0 | -0.59 | 0h 02m |
| Jul 2021 | bearish trending high vol | 7 | +0.55 | 0.79 | 7 | 0 | 100.0 | -1.06 | 0h 13m |
| Jun 2021 | bearish trending high vol | 40 | +3.54 | 0.88 | 40 | 0 | 100.0 | -3.67 | 0h 21m |
| May 2021 | bearish trending high vol | 174 | +8.02 | 0.46 | 171 | 3 | 98.3 | -5.58 | 0h 51m |
| Apr 2021 | bearish choppy high vol | 48 | +3.82 | 0.80 | 48 | 0 | 100.0 | 0.0 | 1h 00m |
| Mar 2021 | bullish choppy high vol | 16 | +1.76 | 1.10 | 16 | 0 | 100.0 | 0.0 | 0h 08m |
| Feb 2021 | bullish trending high vol | 97 | +7.64 | 0.79 | 97 | 0 | 100.0 | 0.0 | 0h 12m |
| Jan 2021 | bullish trending high vol | 88 | +8.39 | 0.95 | 88 | 0 | 100.0 | 0.0 | 0h 09m |
Yearly breakdown
| Year | Trades | Profit % | Avg % | Win | Loss | Win % | DD % | Avg dur |
|---|---|---|---|---|---|---|---|---|
| 2025 | 70 | +6.33 | 0.90 | 70 | 0 | 100.0 | 0.0 | 1h 30m |
| 2024 | 114 | +3.26 | 0.28 | 112 | 2 | 98.2 | -2.73 | 4h 59m |
| 2023 | 69 | +6.19 | 0.90 | 69 | 0 | 100.0 | -1.77 | 1h 16m |
| 2022 | 167 | +11.04 | 0.66 | 165 | 2 | 98.8 | -3.04 | 5h 06m |
| 2021 | 515 | +34.57 | 0.67 | 511 | 4 | 99.2 | -5.58 | 0h 51m |
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 · 3 thing(s) worth reviewing before trusting the numbers
| Line | Pattern | Detail | |
|---|---|---|---|
| 77 | review | startup_candles_too_small | startup_candle_count is 200, but EMA(timeperiod=200) needing 3x warmup needs at least 600 candles -- so the first 400+ candles of every backtest use an indicator that hasn't warmed up. Recursive indicators (EMA/RSI/ADX/ATR) want several times their period, not exactly it |
| 299 | review | dead_callback | custom_exit() is defined but use_exit_signal is False, and freqtrade only consults it inside that flag -- the method never runs |
| 76 | 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.