Basics
mode: futures
timeframe: 1h
interface version: 3
1h
Settings
stoploss: -0.05
has minimal roi
protections
process only new candles
startup candle count: 250
Indicators
ADX
RSI
SMA
talib
Concepts
breakout
mean_reversion
risk_management
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 | """ BearRegimeShortV1 — Regime-gated short, 6-bar confirmed bear + failed rally + volume flush. Hypothesis (2026-04-20): Shorts fail in crypto because fixed-threshold signals fire during the 77% of time BTC is NOT in confirmed bear. Solution: dormant 77% of time, only fire on strict regime confirmation + failed bounce + capitulation volume. Signal (futures SHORT): - REGIME GATE (BTC 1h): close < SMA50 AND close < SMA200 AND 20d-mom < 0, confirmed by 6 consecutive bars (smooth out flicker). - ANCHOR (pair 1h): RSI touched >=50 in prior 3 bars AND rolled over to <48 now (failed rally rejection). - CONFIRM: volume > 1.5x 20-SMA (capitulation flush), close < SMA50 (pair), ADX > 20 (trend has teeth). - ANTI-SQUEEZE: F&G >= 15 (not in "max fear" capitulation zone where squeezes fire). Exit: - EXIT SIGNAL: BTC 1h close > SMA50 (regime flip) OR pair RSI < 30 (oversold bounce risk). - ROI: aggressive — crypto crashes are fast, take profits. - SL: -5% hard, no trailing. - Hard time exit: 36h. Sizing: $100 stake / $200 wallet, 2x leverage, max 2 concurrent. Known enemies this design attacks: - FundingShortV1 (killed): fired on z-score alone, 52% DD from squeeze-fires. - BearCrashShortV1 (killed): bear regime too loose (RSI<45 alone), entered grinds. Generated 2026-04-20 for short-side research. """ import logging from datetime import datetime from pathlib import Path import talib.abstract as ta from freqtrade.strategy import IStrategy, informative from pandas import DataFrame logger = logging.getLogger(__name__) class BearRegimeShortV1(IStrategy): INTERFACE_VERSION = 3 can_short = True trading_mode = "futures" margin_mode = "isolated" timeframe = "1h" # Aggressive ROI — crashes are fast minimal_roi = { "0": 0.06, # 6% immediate take "360": 0.04, # 4% after 6h "720": 0.025, # 2.5% after 12h "1440": 0.015, # 1.5% after 24h "2160": 0.0, # break-even at 36h } stoploss = -0.05 trailing_stop = False process_only_new_candles = True use_exit_signal = True exit_profit_only = False ignore_roi_if_entry_signal = False startup_candle_count = 250 # 200 + buffer for 20d mom @property def protections(self): return [ {"method": "CooldownPeriod", "stop_duration_candles": 4}, {"method": "StoplossGuard", "lookback_period_candles": 48, "trade_limit": 3, "stop_duration_candles": 24, "only_per_pair": False}, {"method": "MaxDrawdown", "lookback_period_candles": 72, "max_allowed_drawdown": 0.12, "stop_duration_candles": 48, "trade_limit": 2}, ] 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: return min(2.0, max_leverage) # -- BTC informative -- @informative("1h", "BTC/USDT:USDT") def populate_indicators_btc_1h(self, dataframe: DataFrame, metadata: dict) -> DataFrame: dataframe["sma50"] = ta.SMA(dataframe, timeperiod=50) dataframe["sma200"] = ta.SMA(dataframe, timeperiod=200) dataframe["mom20d"] = dataframe["close"].pct_change(20 * 24) dataframe["rsi"] = ta.RSI(dataframe, timeperiod=14) # BTC making fresh 7d low = accelerating bear (filters sideways bear-flicker) dataframe["low_7d"] = dataframe["low"].rolling(168).min().shift(1) dataframe["btc_fresh_low"] = (dataframe["close"] <= dataframe["low_7d"] * 1.02).astype(int) return dataframe # -- Indicators -- def populate_indicators(self, dataframe: DataFrame, metadata: dict) -> DataFrame: dataframe["rsi"] = ta.RSI(dataframe, timeperiod=14) 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["sma50"] = ta.SMA(dataframe, timeperiod=50) dataframe["sma200"] = ta.SMA(dataframe, timeperiod=200) dataframe["vol_sma20"] = dataframe["volume"].rolling(20).mean() # Donchian low: new 5-day low breakout (momentum short) dataframe["donch_low_120"] = dataframe["low"].rolling(120).min().shift(1) # BTC confirmed bear regime (6-bar smoothing) btc_bear_raw = ( (dataframe["btc_usdt_close_1h"] < dataframe["btc_usdt_sma50_1h"]) & (dataframe["btc_usdt_close_1h"] < dataframe["btc_usdt_sma200_1h"]) & (dataframe["btc_usdt_mom20d_1h"] < 0) ).astype(int) dataframe["btc_bear_confirmed"] = ( btc_bear_raw.rolling(6).sum() >= 6 ).astype(int) # Failed rally: RSI was >=50 in prior 3 bars but now <48 rsi_prior_high = ( (dataframe["rsi"].shift(1) >= 50) | (dataframe["rsi"].shift(2) >= 50) | (dataframe["rsi"].shift(3) >= 50) ) dataframe["failed_rally"] = ( rsi_prior_high & (dataframe["rsi"] < 48) & (dataframe["rsi"] >= 30) ).astype(int) return dataframe # -- Entry -- def populate_entry_trend(self, dataframe: DataFrame, metadata: dict) -> DataFrame: # PRIMARY SIGNAL: Momentum-short in confirmed bear # Require pair to break below 5-day low AND BTC confirmed bear # (Turtle-style short breakout gated by regime) dataframe.loc[ ( # Regime: confirmed bear (6-bar BTC confirmation) (dataframe["btc_bear_confirmed"] == 1) # BTC also making fresh 7d low (accelerating, not flickering) & (dataframe["btc_usdt_btc_fresh_low_1h"] == 1) # Momentum: pair breaks 5-day low (true downtrend acceleration) & (dataframe["close"] < dataframe["donch_low_120"]) # Pair below its SMA50 (trend alignment) & (dataframe["close"] < dataframe["sma50"]) # Volume expansion (not dying breakout) & (dataframe["volume"] > 1.2 * dataframe["vol_sma20"]) # Trend teeth & (dataframe["adx"] > 20) & (dataframe["minus_di"] > dataframe["plus_di"]) # Anti-squeeze: BTC not at panic low (prevents capitulation-bounce fires) & (dataframe["btc_usdt_rsi_1h"] > 25) & (dataframe["volume"] > 0) ), ["enter_short", "enter_tag"], ] = (1, "bear_5d_low_break") return dataframe # -- Exit -- def populate_exit_trend(self, dataframe: DataFrame, metadata: dict) -> DataFrame: dataframe.loc[ ( # Regime flip: BTC back above SMA50 (dataframe["btc_usdt_close_1h"] > dataframe["btc_usdt_sma50_1h"]) # OR pair oversold (bounce risk) | (dataframe["rsi"] < 28) # OR bulls retook DI | ( (dataframe["plus_di"] > dataframe["minus_di"]) & (dataframe["plus_di"].shift(1) > dataframe["minus_di"].shift(1)) ) ) & (dataframe["volume"] > 0), ["exit_short", "exit_tag"], ] = (1, "regime_flip_or_oversold") return dataframe # -- Time exit -- def custom_exit(self, pair: str, trade, current_time, current_rate, current_profit, **kwargs): if not trade.is_short: return None hours = (current_time - trade.open_date_utc).total_seconds() / 3600 if hours >= 36: return "time_exit_36h" if hours >= 24 and current_profit > 0.01: return "time_profit_24h" return None |
Strategy League — fixed backtest that feeds the ranking
Export report Freqtrade logsRun finished · took 43.8s
pairs 33 pairs
timerange 20210101-20260101
mode futures
timeframe 1h
stake 100 USDT
wallet 1000 USDT
max open trades 10
fee exchange lowest tier
total profit+14.37%
final wallet1144 USDT
win rate54.4%
max drawdown-15.47%
market change+442.71%
vs market-428.34%
timeframe1h
profit factor1.12
expectancy ratio0.053
break-even fee0.1623%
sharpe0.322
sortino1.238
CAGR+2.7%
calmar0.972
avg leverage2.0x
avg MFE+2.44%
avg MAE-1.86%
avg profit/trade0.25%
avg duration4h 37m
best trade+6.07%
worst trade-5.52%
win/loss streak30 / 14
positive months20/45
consistent (3-mo)55.8%
worst 3-mo-10.42%
trades588
revision1
likely annual return+3%
range (5th–95th)-0% … +7%
chance of profit92.0%
worst-5% outcome-1%
significance (p)0.1119
risk of ruin0.0%
- profit isn't statistically significant (p=0.11) — hard to tell apart from luck
- did not beat simply holding the market
- 92% of resampled runs stayed profitable
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 |
|---|---|---|---|---|---|---|---|---|---|
| Nov 2025 | bearish trending high vol | 28 | -7.28 | -2.55 | 8 | 20 | 28.6 | -15.47 | 4h 54m |
| Oct 2025 | bearish trending low vol | 7 | -2.47 | -3.88 | 1 | 6 | 14.3 | -9.96 | 2h 26m |
| Sep 2025 | bullish choppy low vol | 7 | -0.67 | -1.01 | 3 | 4 | 42.9 | -8.84 | 4h 09m |
| Aug 2025 | bearish choppy low vol | 27 | -5.54 | -2.05 | 10 | 17 | 37.0 | -7.63 | 6h 47m |
| Jul 2025 | bullish choppy low vol | 2 | -0.69 | -4.24 | 0 | 2 | 0.0 | -3.22 | 10h 00m |
| Jun 2025 | bearish choppy low vol | 13 | -3.65 | -2.81 | 4 | 9 | 30.8 | -3.12 | 8h 42m |
| Apr 2025 | bullish choppy low vol | 7 | +3.04 | 4.40 | 6 | 1 | 85.7 | -0.39 | 2h 00m |
| Mar 2025 | bearish trending high vol | 18 | +3.06 | 1.77 | 15 | 3 | 83.3 | -2.68 | 6h 33m |
| Feb 2025 | bearish trending low vol | 38 | +4.83 | 1.30 | 25 | 13 | 65.8 | -6.8 | 4h 39m |
| Jan 2025 | bearish choppy low vol | 13 | -0.43 | -0.30 | 6 | 7 | 46.2 | -5.2 | 3h 51m |
| Dec 2024 | bullish trending low vol | 2 | -0.92 | -4.76 | 0 | 2 | 0.0 | -4.87 | 3h 00m |
| Oct 2024 | bullish choppy low vol | 11 | -3.81 | -3.50 | 2 | 9 | 18.2 | -4.17 | 6h 27m |
| Sep 2024 | bearish choppy low vol | 22 | -1.31 | -0.56 | 10 | 12 | 45.5 | -3.54 | 6h 27m |
| Aug 2024 | bearish choppy high vol | 13 | +5.88 | 4.56 | 13 | 0 | 100.0 | -3.01 | 1h 18m |
| Jul 2024 | bearish trending low vol | 14 | +4.86 | 3.50 | 12 | 2 | 85.7 | -6.8 | 2h 30m |
| Jun 2024 | bearish choppy low vol | 12 | +2.37 | 2.01 | 9 | 3 | 75.0 | -8.78 | 4h 10m |
| May 2024 | bullish choppy high vol | 5 | -0.22 | -0.45 | 2 | 3 | 40.0 | -8.69 | 14h 48m |
| Apr 2024 | bearish choppy high vol | 19 | -5.12 | -2.66 | 5 | 14 | 26.3 | -8.82 | 4h 38m |
| Jan 2024 | bearish choppy high vol | 16 | +5.09 | 3.20 | 12 | 4 | 75.0 | -8.02 | 0h 38m |
| Dec 2023 | bullish trending low vol | 4 | -2.05 | -5.20 | 0 | 4 | 0.0 | -8.49 | 2h 45m |
| Sep 2023 | bearish choppy low vol | 4 | -1.40 | -3.50 | 0 | 4 | 0.0 | -6.89 | 5h 00m |
| Aug 2023 | bearish choppy low vol | 11 | +0.52 | 0.48 | 5 | 6 | 45.5 | -5.91 | 5h 38m |
| Jul 2023 | bullish trending low vol | 10 | -1.26 | -1.26 | 4 | 6 | 40.0 | -6.21 | 4h 30m |
| May 2023 | bearish choppy low vol | 10 | +1.12 | 1.14 | 7 | 3 | 70.0 | -6.07 | 6h 54m |
| Apr 2023 | bullish trending low vol | 11 | +2.08 | 1.88 | 7 | 4 | 63.6 | -7.41 | 8h 11m |
| Mar 2023 | bullish trending high vol | 17 | +1.58 | 0.95 | 11 | 6 | 64.7 | -9.36 | 5h 49m |
| Feb 2023 | bullish trending low vol | 3 | -0.44 | -1.48 | 1 | 2 | 33.3 | -8.95 | 3h 00m |
| Dec 2022 | bearish trending low vol | 11 | -0.71 | -0.64 | 6 | 5 | 54.5 | -8.61 | 7h 22m |
| Nov 2022 | bearish trending high vol | 3 | +0.18 | 0.61 | 2 | 1 | 66.7 | -8.11 | 0h 40m |
| Oct 2022 | bullish choppy low vol | 4 | -1.74 | -4.41 | 0 | 4 | 0.0 | -8.2 | 4h 45m |
| Sep 2022 | bearish choppy high vol | 7 | -2.81 | -4.02 | 0 | 7 | 0.0 | -6.84 | 12h 00m |
| Aug 2022 | bullish choppy high vol | 10 | +1.38 | 1.40 | 7 | 3 | 70.0 | -5.57 | 3h 48m |
| Jul 2022 | bullish trending high vol | 8 | -4.12 | -5.21 | 0 | 8 | 0.0 | -5.73 | 10h 38m |
| Jun 2022 | bearish trending high vol | 45 | +13.27 | 2.97 | 35 | 10 | 77.8 | -4.95 | 2h 29m |
| May 2022 | bearish trending high vol | 12 | -6.13 | -5.20 | 0 | 12 | 0.0 | -5.45 | 1h 50m |
| Apr 2022 | bearish choppy high vol | 14 | +2.79 | 2.01 | 11 | 3 | 78.6 | -3.65 | 4h 34m |
| Mar 2022 | bullish choppy high vol | 2 | -1.01 | -5.19 | 0 | 2 | 0.0 | -2.62 | 8h 30m |
| Feb 2022 | bearish trending high vol | 19 | +5.36 | 2.94 | 14 | 5 | 73.7 | -2.27 | 3h 47m |
| Jan 2022 | bearish trending high vol | 20 | +1.10 | 0.55 | 12 | 8 | 60.0 | -2.76 | 4h 27m |
| Dec 2021 | bearish trending high vol | 9 | -0.60 | -0.95 | 4 | 5 | 44.4 | -3.01 | 4h 13m |
| Nov 2021 | bearish trending high vol | 11 | +0.86 | 0.85 | 6 | 5 | 54.5 | -3.22 | 2h 11m |
| Sep 2021 | bearish trending high vol | 3 | -1.55 | -5.18 | 0 | 3 | 0.0 | -2.76 | 0h 00m |
| Jul 2021 | bullish trending high vol | 46 | +9.00 | 1.96 | 33 | 13 | 71.7 | -3.37 | 4h 05m |
| Jun 2021 | bearish trending high vol | 11 | +2.47 | 2.30 | 8 | 3 | 72.7 | -2.2 | 1h 44m |
| May 2021 | bearish trending high vol | 9 | -0.54 | -0.63 | 4 | 5 | 44.4 | -2.47 | 0h 33m |
Yearly breakdown
| Year | Trades | Profit % | Avg % | Win | Loss | Win % | DD % | Avg dur |
|---|---|---|---|---|---|---|---|---|
| 2025 | 160 | -9.80 | -0.61 | 78 | 82 | 48.8 | -15.47 | 5h 22m |
| 2024 | 114 | +6.82 | 0.62 | 65 | 49 | 57.0 | -8.82 | 4h 19m |
| 2023 | 70 | +0.15 | 0.02 | 35 | 35 | 50.0 | -9.36 | 5h 47m |
| 2022 | 155 | +7.56 | 0.50 | 87 | 68 | 56.1 | -8.61 | 4h 25m |
| 2021 | 89 | +9.64 | 1.07 | 55 | 34 | 61.8 | -3.37 | 3h 05m |
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 | |
|---|---|---|---|
| 140 | review | enter_tag_overwrite | enter_tag/exit_tag is written by 2 separate assignments -- they share one column and run in source order, so a row matching more than one condition keeps only the LAST tag. Per-tag statistics won't mean what they appear to |
ran by Ron · took s
Lookahead analysis
freqtrade lookahead-analysis: detects strategies peeking at future candles.