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 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 | # --- Do not remove these libs --- from freqtrade.strategy.interface import IStrategy from pandas import DataFrame import talib.abstract as ta import numpy as np import freqtrade.vendor.qtpylib.indicators as qtpylib from freqtrade.strategy import DecimalParameter, IntParameter # -------------------------------- def EWO(dataframe: DataFrame, ema_length: int = 5, ema2_length: int = 35) -> DataFrame: """ Elliot Wave Oscillator (EWO) = (EMA(fast) - EMA(slow)) / close * 100 """ ema1 = ta.EMA(dataframe["close"], timeperiod=int(ema_length)) ema2 = ta.EMA(dataframe["close"], timeperiod=int(ema2_length)) return (ema1 - ema2) / dataframe["close"] * 100 class ElliotV5HOMod2(IStrategy): """ Fixed / cleaned for your current intent: - No informative timeframe overhead (removed, since unused). - No EMA precompute loops (massive speed + RAM win). - Entry logic unchanged. - Exit signal logic kept but DISABLED by default (use_exit_signal=False), so it cannot hurt. - Plot columns maintained. """ can_short = False # ROI / risk (kept) minimal_roi = { "0": 0.05, "40": 0.04, "201": 0.03 } ignore_roi_if_entry_signal = False stoploss = -0.25 use_custom_stoploss = False trailing_stop = True trailing_stop_positive = 0.001 trailing_stop_positive_offset = 0.01 trailing_only_offset_is_reached = True use_entry_signal = True # You are explicitly running on ROI+trailing+stoploss exits: use_exit_signal = False exit_profit_only = False exit_profit_offset = 0.03 timeframe = "5m" 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": { "ma_buy": {"color": "orange"}, "ma_sell": {"color": "orange"}, } } @property def protections(self): return [ {"method": "CooldownPeriod", "stop_duration_candles": 5}, { "method": "MaxDrawdown", "lookback_period_candles": 72, # 6h on 5m "trade_limit": 20, "stop_duration_candles": 6, # 30m "max_allowed_drawdown": 0.03, }, { "method": "StoplossGuard", "lookback_period_candles": 48, # 4h "trade_limit": 4, "stop_duration_candles": 4, # 20m "only_per_pair": False, }, { "method": "LowProfitPairs", "lookback_period_candles": 24, # 2h "trade_limit": 2, "stop_duration_candles": 12, # 1h "required_profit": 0.02, }, { "method": "LowProfitPairs", "lookback_period_candles": 144, # 12h "trade_limit": 4, "stop_duration_candles": 24, # 2h "required_profit": 0.04, }, ] # -------- Parameters (keep ranges, but compute only what we use) -------- fast_ewo = 50 slow_ewo = 200 enable_opt_buy = True base_nb_candles_buy = IntParameter(5, 80, default=19, space="buy", optimize=enable_opt_buy) ewo_high = DecimalParameter(2.0, 12.0, default=5.417, space="buy", optimize=enable_opt_buy) ewo_low = DecimalParameter(-20.0, -8.0, default=-17.251, space="buy", optimize=enable_opt_buy) low_offset = DecimalParameter(0.9, 0.99, default=0.983, space="buy", optimize=enable_opt_buy) rsi_buy = IntParameter(30, 70, default=61, space="buy", optimize=enable_opt_buy) # These sell params are only useful if you later enable use_exit_signal=True base_nb_candles_sell = IntParameter(5, 80, default=24, space="sell", optimize=False) high_offset = DecimalParameter(0.99, 1.1, default=1.011, space="sell", optimize=False) # ---------------------------------------------------------------------- def populate_indicators(self, dataframe: DataFrame, metadata: dict) -> DataFrame: # Only compute the EMA periods actually used right now (FAST + clean) buy_len = int(self.base_nb_candles_buy.value) sell_len = int(self.base_nb_candles_sell.value) dataframe["ma_buy"] = ta.EMA(dataframe["close"], timeperiod=buy_len) dataframe["ma_sell"] = ta.EMA(dataframe["close"], timeperiod=sell_len) dataframe["EWO"] = EWO(dataframe, self.fast_ewo, self.slow_ewo) dataframe["rsi"] = ta.RSI(dataframe, timeperiod=14) dataframe["rsi_fast"] = ta.RSI(dataframe, timeperiod=4) dataframe["rsi_slow"] = ta.RSI(dataframe, timeperiod=20) dataframe["hma_50"] = qtpylib.hull_moving_average(dataframe["close"], window=50) return dataframe def populate_entry_trend(self, dataframe: DataFrame, metadata: dict) -> DataFrame: dataframe["enter_long"] = 0 dataframe["enter_tag"] = None ma_buy = dataframe["ma_buy"] cond_high = ( (dataframe["close"] < ma_buy * self.low_offset.value) & (dataframe["EWO"] > self.ewo_high.value) & (dataframe["rsi"] < self.rsi_buy.value) & (dataframe["volume"] > 0) ) cond_low = ( (dataframe["close"] < ma_buy * self.low_offset.value) & (dataframe["EWO"] < self.ewo_low.value) & (dataframe["rsi"] < self.rsi_buy.value) & (dataframe["volume"] > 0) ) dataframe.loc[cond_high, ["enter_long", "enter_tag"]] = [1, "ewo_high"] dataframe.loc[cond_low, ["enter_long", "enter_tag"]] = [1, "ewo_low"] return dataframe def populate_exit_trend(self, dataframe: DataFrame, metadata: dict) -> DataFrame: """ Kept for debugging / future toggling. NOTE: Disabled unless you set use_exit_signal = True. """ dataframe["exit_long"] = 0 dataframe["exit_tag"] = None ma_sell = dataframe["ma_sell"] exit_tp_rollover = ( (dataframe["close"] > ma_sell * self.high_offset.value) & (dataframe["rsi_fast"] < dataframe["rsi_slow"]) & (dataframe["rsi"] > 50) & (dataframe["volume"] > 0) ) dataframe.loc[exit_tp_rollover, ["exit_long", "exit_tag"]] = [1, "tp_rollover"] return dataframe |
Strategy League — fixed backtest that feeds the ranking
Export report Freqtrade logsRun finished · took 290.9s
ℹ️ 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 73% 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 |
|---|---|---|---|---|---|---|---|---|---|
| Jan 2026 | bullish trending low vol | 1 | -1.46 | -14.57 | 0 | 1 | 0.0 | -1.65 | 263h 15m |
| Nov 2025 | bearish trending high vol | 41 | +3.08 | 0.75 | 40 | 1 | 97.6 | -1.93 | 5h 08m |
| Oct 2025 | bearish trending low vol | 49 | +0.28 | 0.06 | 46 | 3 | 93.9 | -4.18 | 1h 18m |
| Sep 2025 | bullish choppy low vol | 10 | +1.45 | 1.45 | 10 | 0 | 100.0 | -2.72 | 2h 26m |
| Jul 2025 | bullish choppy low vol | 7 | +1.02 | 1.46 | 7 | 0 | 100.0 | -3.16 | 56h 08m |
| Jun 2025 | bearish choppy low vol | 7 | +0.78 | 1.11 | 7 | 0 | 100.0 | -3.5 | 0h 09m |
| May 2025 | bullish trending low vol | 2 | +0.20 | 0.97 | 2 | 0 | 100.0 | -3.61 | 0h 10m |
| Apr 2025 | bullish choppy low vol | 3 | -2.28 | -7.58 | 2 | 1 | 66.7 | -3.69 | 46h 45m |
| Mar 2025 | bearish trending high vol | 8 | -4.33 | -5.41 | 6 | 2 | 75.0 | -2.63 | 22h 38m |
| Feb 2025 | bearish trending low vol | 2 | +0.23 | 1.15 | 2 | 0 | 100.0 | -0.76 | 0h 20m |
| Jan 2025 | bearish choppy low vol | 1 | +0.11 | 1.06 | 1 | 0 | 100.0 | -0.8 | 0h 25m |
| Dec 2024 | bullish trending low vol | 53 | +4.38 | 0.83 | 52 | 1 | 98.1 | -1.12 | 4h 19m |
| Nov 2024 | bullish trending low vol | 85 | +9.92 | 1.17 | 85 | 0 | 100.0 | -2.19 | 1h 55m |
| Sep 2024 | bearish choppy low vol | 1 | +0.17 | 1.65 | 1 | 0 | 100.0 | -2.23 | 1h 00m |
| Aug 2024 | bearish choppy high vol | 4 | +0.50 | 1.25 | 4 | 0 | 100.0 | -2.47 | 0h 51m |
| Jun 2024 | bearish choppy low vol | 3 | +0.42 | 1.40 | 3 | 0 | 100.0 | -2.66 | 0h 35m |
| May 2024 | bullish choppy high vol | 1 | +0.11 | 1.13 | 1 | 0 | 100.0 | -2.74 | 0h 30m |
| Apr 2024 | bearish choppy high vol | 3 | -2.37 | -7.90 | 2 | 1 | 66.7 | -2.79 | 6h 43m |
| Mar 2024 | bullish trending high vol | 21 | -2.68 | -1.28 | 19 | 2 | 90.5 | -2.36 | 3h 48m |
| Feb 2024 | bullish trending low vol | 10 | +1.74 | 1.74 | 10 | 0 | 100.0 | -0.51 | 0h 48m |
| Jan 2024 | bearish choppy high vol | 14 | -0.74 | -0.52 | 13 | 1 | 92.9 | -1.19 | 23h 24m |
| Dec 2023 | bullish trending low vol | 29 | +3.75 | 1.29 | 29 | 0 | 100.0 | -0.43 | 8h 30m |
| Nov 2023 | bullish trending low vol | 10 | +1.09 | 1.09 | 10 | 0 | 100.0 | -0.94 | 10h 54m |
| Oct 2023 | bullish trending low vol | 1 | +0.22 | 2.22 | 1 | 0 | 100.0 | -1.01 | 0h 45m |
| Aug 2023 | bearish choppy low vol | 11 | -1.39 | -1.26 | 10 | 1 | 90.9 | -1.21 | 2h 10m |
| Jul 2023 | bullish trending low vol | 15 | +2.49 | 1.66 | 15 | 0 | 100.0 | 0.0 | 15h 41m |
| Jun 2023 | bullish trending low vol | 18 | +2.56 | 1.42 | 18 | 0 | 100.0 | -0.93 | 0h 30m |
| Apr 2023 | bullish trending low vol | 3 | +0.47 | 1.56 | 3 | 0 | 100.0 | -1.14 | 2h 10m |
| Mar 2023 | bullish trending high vol | 7 | -1.71 | -2.45 | 6 | 1 | 85.7 | -1.23 | 38h 15m |
| Feb 2023 | bullish trending low vol | 4 | +0.49 | 1.21 | 4 | 0 | 100.0 | 0.0 | 16h 21m |
| Jan 2023 | bullish trending low vol | 31 | +4.40 | 1.42 | 31 | 0 | 100.0 | -0.57 | 2h 54m |
| Nov 2022 | bearish trending high vol | 21 | +0.78 | 0.37 | 20 | 1 | 95.2 | -2.14 | 7h 36m |
| Oct 2022 | bullish choppy low vol | 13 | +1.55 | 1.19 | 13 | 0 | 100.0 | -1.7 | 27h 49m |
| Sep 2022 | bearish choppy high vol | 1 | +0.10 | 1.00 | 1 | 0 | 100.0 | -1.78 | 0h 50m |
| Aug 2022 | bullish choppy high vol | 12 | -3.43 | -2.86 | 10 | 2 | 83.3 | -2.18 | 15h 38m |
| Jul 2022 | bearish trending high vol | 34 | +4.10 | 1.20 | 34 | 0 | 100.0 | -2.1 | 1h 53m |
| Jun 2022 | bearish trending high vol | 29 | -3.18 | -1.09 | 26 | 3 | 89.7 | -3.63 | 48h 07m |
| May 2022 | bearish trending high vol | 27 | +4.18 | 1.55 | 27 | 0 | 100.0 | 0.0 | 2h 53m |
| Apr 2022 | bearish choppy high vol | 7 | +0.92 | 1.32 | 7 | 0 | 100.0 | -0.41 | 1h 34m |
| Mar 2022 | bullish choppy high vol | 4 | +0.50 | 1.26 | 4 | 0 | 100.0 | -0.69 | 1h 24m |
| Feb 2022 | bearish trending high vol | 22 | +3.40 | 1.54 | 22 | 0 | 100.0 | -2.44 | 0h 21m |
| Jan 2022 | bearish trending high vol | 4 | +0.65 | 1.62 | 4 | 0 | 100.0 | -2.7 | 1h 41m |
| Dec 2021 | bearish trending high vol | 13 | -1.15 | -0.88 | 12 | 1 | 92.3 | -3.08 | 13h 34m |
| Nov 2021 | bullish trending high vol | 8 | -4.19 | -5.24 | 6 | 2 | 75.0 | -2.44 | 98h 25m |
| Oct 2021 | bullish trending high vol | 9 | +0.95 | 1.05 | 9 | 0 | 100.0 | 0.0 | 0h 14m |
| Sep 2021 | bearish trending high vol | 40 | +4.61 | 1.16 | 40 | 0 | 100.0 | 0.0 | 2h 07m |
| Aug 2021 | bullish trending high vol | 34 | +5.55 | 1.63 | 34 | 0 | 100.0 | -0.61 | 1h 14m |
| Jul 2021 | bearish trending high vol | 20 | -0.10 | -0.05 | 19 | 1 | 95.0 | -1.59 | 25h 54m |
| Jun 2021 | bearish trending high vol | 23 | +0.02 | -0.00 | 22 | 1 | 95.7 | -1.35 | 6h 15m |
| May 2021 | bearish trending high vol | 212 | +23.69 | 1.12 | 209 | 3 | 98.6 | -2.98 | 1h 18m |
| Apr 2021 | bearish choppy high vol | 120 | +7.31 | 0.61 | 117 | 3 | 97.5 | -2.99 | 2h 15m |
| Mar 2021 | bullish choppy high vol | 52 | +7.28 | 1.40 | 52 | 0 | 100.0 | 0.0 | 4h 28m |
| Feb 2021 | bullish trending high vol | 171 | +15.91 | 0.93 | 169 | 2 | 98.8 | -1.77 | 2h 02m |
| Jan 2021 | bullish trending high vol | 251 | +29.54 | 1.18 | 248 | 3 | 98.8 | -2.18 | 1h 17m |
Yearly breakdown
| Year | Trades | Profit % | Avg % | Win | Loss | Win % | DD % | Avg dur |
|---|---|---|---|---|---|---|---|---|
| 2026 | 1 | -1.46 | -14.57 | 0 | 1 | 0.0 | -1.65 | 263h 15m |
| 2025 | 130 | +0.54 | 0.04 | 123 | 7 | 94.6 | -4.18 | 7h 49m |
| 2024 | 195 | +11.45 | 0.59 | 190 | 5 | 97.4 | -2.79 | 4h 17m |
| 2023 | 129 | +12.37 | 0.96 | 127 | 2 | 98.4 | -1.23 | 8h 10m |
| 2022 | 174 | +9.57 | 0.55 | 168 | 6 | 96.6 | -3.63 | 13h 05m |
| 2021 | 953 | +89.42 | 0.94 | 937 | 16 | 98.3 | -3.08 | 3h 22m |
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 · 2 thing(s) worth reviewing before trusting the numbers
| Line | Pattern | Detail | |
|---|---|---|---|
| 170 | review | enter_tag_overwrite | enter_tag/exit_tag is written by 3 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 |
| 56 | 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.