Basics
mode: spot
timeframe: 5m
interface version: 3
Settings
stoploss: -0.05
has minimal roi
hyperopt
hyperopt params: 1
Indicators
Bollinger_Bands
MACD
RSI
talib
7 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 | # Auto-generated by Strategy Lab — Auto-Quant Factory # Entry logic is controlled by the CategoricalParameter `entry_logic`. # Optimise it with: freqtrade hyperopt --strategy TestStrat_1781099171 --spaces buy from freqtrade.strategy import CategoricalParameter, IStrategy from pandas import DataFrame import talib.abstract as ta import freqtrade.vendor.qtpylib.indicators as qtpylib class TestStrat_1781099171(IStrategy): INTERFACE_VERSION: int = 3 # --- ROI / stoploss / timeframe defaults ---------------------------- minimal_roi = { "0": 0.10, "30": 0.05, "60": 0.02, "120": 0, } stoploss = -0.05 timeframe = "5m" trailing_stop = False # --- Categorical entry-logic selector -------------------------------- # Hyperopt will search this space when --spaces buy is used. entry_logic = CategoricalParameter( ["macd_cross", "rsi_oversold", "bb_breakout"], default="macd_cross", space="buy", optimize=True, ) # --- Indicator computation ------------------------------------------- def populate_indicators(self, dataframe: DataFrame, metadata: dict) -> DataFrame: # MACD (fast=12, slow=26, signal=9) macd = ta.MACD(dataframe, fastperiod=12, slowperiod=26, signalperiod=9) dataframe["macd"] = macd["macd"] dataframe["macdsignal"] = macd["macdsignal"] dataframe["macdhist"] = macd["macdhist"] # RSI (period=14) dataframe["rsi"] = ta.RSI(dataframe, timeperiod=14) # Bollinger Bands (period=20, stddev=2) 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"] return dataframe # --- Entry logic router ---------------------------------------------- def populate_entry_trend(self, dataframe: DataFrame, metadata: dict) -> DataFrame: logic = self.entry_logic.value if logic == "macd_cross": dataframe.loc[ ( qtpylib.crossed_above(dataframe["macd"], dataframe["macdsignal"]) & (dataframe["volume"] > 0) ), "enter_long", ] = 1 elif logic == "rsi_oversold": dataframe.loc[ ( (dataframe["rsi"] < 30) & (dataframe["volume"] > 0) ), "enter_long", ] = 1 elif logic == "bb_breakout": dataframe.loc[ ( (dataframe["close"] < dataframe["bb_lowerband"]) & (dataframe["volume"] > 0) ), "enter_long", ] = 1 return dataframe # --- Exit logic stub (relies on ROI / stoploss) ---------------------- def populate_exit_trend(self, dataframe: DataFrame, metadata: dict) -> DataFrame: return dataframe |
Strategy League — fixed backtest that feeds the ranking
Export report Freqtrade logsRun finished · took 349.9s
pairs 33 pairs
timerange 20210101-20260101
mode spot
timeframe 5m
stake 100 USDT
wallet 1000 USDT
max open trades 10
fee exchange lowest tier
total profit-90.38%
final wallet96 USDT
win rate63.4%
max drawdown-91.55%
market change+451.55%
vs market-541.93%
timeframe5m
profit factor0.88
expectancy ratio-0.043
break-even fee0.0374%
sharpe-3.217
sortino-3.682
CAGR-37.4%
calmar-1.033
avg MFE+1.98%
avg MAE-2.40%
avg profit/trade-0.13%
avg duration2h 51m
best trade+10.02%
worst trade-5.19%
win/loss streak35 / 31
positive months1/9
consistent (3-mo)0.0%
worst 3-mo-50.47%
trades7224
revision1
likely annual return-96%
range (5th–95th)-99% … -84%
chance of profit0.0%
worst-5% outcome-99%
significance (p)0.9995
risk of ruin0.0%
- profit isn't statistically significant (p=1.00) — hard to tell apart from luck
- only 0% of resampled runs were profitable
- profitable in only 0% of rolling 3-month windows
- did not beat simply holding the market
- very deep drawdown (-92%)
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 |
|---|---|---|---|---|---|---|---|---|---|
| Sep 2021 | bearish trending high vol | 128 | -4.48 | -0.35 | 71 | 57 | 55.5 | -91.55 | 3h 31m |
| Aug 2021 | bullish trending high vol | 187 | +0.70 | 0.04 | 127 | 60 | 67.9 | -88.87 | 3h 45m |
| Jul 2021 | bearish trending high vol | 143 | -2.96 | -0.21 | 86 | 57 | 60.1 | -89.62 | 4h 54m |
| Jun 2021 | bearish trending high vol | 260 | -9.12 | -0.35 | 153 | 107 | 58.8 | -87.48 | 3h 13m |
| May 2021 | bearish trending high vol | 850 | -22.48 | -0.27 | 512 | 338 | 60.2 | -79.69 | 2h 21m |
| Apr 2021 | bearish choppy high vol | 945 | -1.57 | -0.02 | 608 | 337 | 64.3 | -63.5 | 2h 55m |
| Mar 2021 | bullish choppy high vol | 867 | -10.02 | -0.12 | 576 | 291 | 66.4 | -60.43 | 3h 49m |
| Feb 2021 | bullish trending high vol | 1903 | -13.20 | -0.07 | 1227 | 676 | 64.5 | -49.96 | 2h 34m |
| Jan 2021 | bullish trending high vol | 1941 | -27.25 | -0.14 | 1218 | 723 | 62.8 | -45.04 | 2h 32m |
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 | |
|---|---|---|---|
| 11 | review | missing_startup_candles | uses recursive indicators (MACD, RSI) but startup_candle_count is not set (default 0). Their value at a bar depends on all bars before it, so freqtrade trims no warmup and the backtest opens with unwarmed values that can't occur live. The longest lookback visible here is bollinger_bands(window=20), so it needs at least that many. Set it to a few times the longest period and confirm with `freqtrade recursive-analysis` |
ran by Ron · took s
Lookahead analysis
freqtrade lookahead-analysis: detects strategies peeking at future candles.