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 | # --- Do not remove these libs --- from freqtrade.strategy.interface import IStrategy from typing import Dict, List from functools import reduce from pandas import DataFrame # -------------------------------- import talib.abstract as ta import numpy as np import freqtrade.vendor.qtpylib.indicators as qtpylib import datetime from technical.util import resample_to_interval, resampled_merge from datetime import datetime, timedelta from freqtrade.persistence import Trade from freqtrade.strategy import stoploss_from_open, merge_informative_pair, DecimalParameter, IntParameter, CategoricalParameter import technical.indicators as ftt # Buy hyperspace params: entry_params = {'base_nb_candles_entry': 21, 'ewo_high': 3.904, 'ewo_low': -19.306, 'low_offset': 0.976, 'rsi_entry': 41} # Sell hyperspace params: exit_params = {'base_nb_candles_exit': 69, 'high_offset': 1.014} class ElliotV3(IStrategy): INTERFACE_VERSION = 3 # ROI table: minimal_roi = {'0': 0.259, '20': 0.087, '64': 0.038, '168': 0} # Stoploss: stoploss = -0.274 # SMAOffset base_nb_candles_entry = IntParameter(5, 80, default=entry_params['base_nb_candles_entry'], space='entry', optimize=True) base_nb_candles_exit = IntParameter(5, 80, default=exit_params['base_nb_candles_exit'], space='exit', optimize=True) low_offset = DecimalParameter(0.9, 0.99, default=entry_params['low_offset'], space='entry', optimize=True) high_offset = DecimalParameter(0.99, 1.1, default=exit_params['high_offset'], space='exit', optimize=True) # Protection fast_ewo = 50 slow_ewo = 200 ewo_low = DecimalParameter(-20.0, -8.0, default=entry_params['ewo_low'], space='entry', optimize=True) ewo_high = DecimalParameter(2.0, 12.0, default=entry_params['ewo_high'], space='entry', optimize=True) rsi_entry = IntParameter(30, 70, default=entry_params['rsi_entry'], space='entry', optimize=True) # Trailing stop: trailing_stop = True trailing_stop_positive = 0.01 trailing_stop_positive_offset = 0.049 trailing_only_offset_is_reached = True # Sell signal use_exit_signal = True exit_profit_only = False exit_profit_offset = 0.01 ignore_roi_if_entry_signal = True ## Optional order time in force. order_time_in_force = {'entry': 'gtc', 'exit': 'ioc'} # Optimal timeframe for the strategy timeframe = '5m' informative_timeframe = '1h' process_only_new_candles = True startup_candle_count = 39 plot_config = {'main_plot': {'ma_entry': {'color': 'orange'}, 'ma_exit': {'color': 'orange'}}} use_custom_stoploss = False def informative_pairs(self): pairs = self.dp.current_whitelist() informative_pairs = [(pair, self.informative_timeframe) for pair in pairs] return informative_pairs def get_informative_indicators(self, metadata: dict): dataframe = self.dp.get_pair_dataframe(pair=metadata['pair'], timeframe=self.informative_timeframe) return dataframe def populate_indicators(self, dataframe: DataFrame, metadata: dict) -> DataFrame: # Calculate all ma_entry values for val in self.base_nb_candles_entry.range: dataframe[f'ma_entry_{val}'] = ta.EMA(dataframe, timeperiod=val) # Calculate all ma_exit values for val in self.base_nb_candles_exit.range: dataframe[f'ma_exit_{val}'] = ta.EMA(dataframe, timeperiod=val) # Elliot dataframe['EWO'] = EWO(dataframe, self.fast_ewo, self.slow_ewo) # RSI dataframe['rsi'] = ta.RSI(dataframe, timeperiod=14) return dataframe def populate_entry_trend(self, dataframe: DataFrame, metadata: dict) -> DataFrame: conditions = [] conditions.append((dataframe['close'] < dataframe[f'ma_entry_{self.base_nb_candles_entry.value}'] * self.low_offset.value) & (dataframe['EWO'] > self.ewo_high.value) & (dataframe['rsi'] < self.rsi_entry.value) & (dataframe['volume'] > 0)) conditions.append((dataframe['close'] < dataframe[f'ma_entry_{self.base_nb_candles_entry.value}'] * self.low_offset.value) & (dataframe['EWO'] < self.ewo_low.value) & (dataframe['volume'] > 0)) if conditions: dataframe.loc[reduce(lambda x, y: x | y, conditions), 'enter_long'] = 1 return dataframe def populate_exit_trend(self, dataframe: DataFrame, metadata: dict) -> DataFrame: conditions = [] conditions.append((dataframe['close'] > dataframe[f'ma_exit_{self.base_nb_candles_exit.value}'] * self.high_offset.value) & (dataframe['volume'] > 0)) if conditions: dataframe.loc[reduce(lambda x, y: x | y, conditions), 'exit_long'] = 1 return dataframe def EWO(dataframe, ema_length=5, ema2_length=35): df = dataframe.copy() ema1 = ta.EMA(df, timeperiod=ema_length) ema2 = ta.EMA(df, timeperiod=ema2_length) emadif = (ema1 - ema2) / df['close'] * 100 return emadif |
Strategy League — fixed backtest that feeds the ranking
Export report Freqtrade logsRun finished · took 277.6s
ℹ️ 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 93% 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 | 1 | -0.00 | -0.00 | 0 | 1 | 0.0 | -0.35 | 3h 45m |
| Nov 2025 | bearish trending high vol | 26 | +1.85 | 0.71 | 20 | 6 | 76.9 | -0.56 | 3h 38m |
| Oct 2025 | bearish trending low vol | 41 | +16.21 | 3.95 | 38 | 3 | 92.7 | -1.0 | 1h 13m |
| Sep 2025 | bullish choppy low vol | 8 | +0.85 | 1.06 | 4 | 4 | 50.0 | -0.09 | 3h 01m |
| Aug 2025 | bullish choppy low vol | 1 | +0.18 | 1.75 | 1 | 0 | 100.0 | 0.0 | 2h 50m |
| Jul 2025 | bullish choppy low vol | 9 | +1.09 | 1.21 | 8 | 1 | 88.9 | -0.08 | 2h 41m |
| Jun 2025 | bearish choppy low vol | 4 | -0.03 | -0.08 | 2 | 2 | 50.0 | -0.32 | 6h 52m |
| May 2025 | bullish trending low vol | 3 | +0.40 | 1.32 | 3 | 0 | 100.0 | -0.24 | 1h 00m |
| Apr 2025 | bullish choppy low vol | 1 | -0.20 | -2.03 | 0 | 1 | 0.0 | -0.29 | 6h 55m |
| Mar 2025 | bearish trending high vol | 5 | +0.38 | 0.77 | 4 | 1 | 80.0 | -0.32 | 2h 21m |
| Jan 2025 | bearish choppy low vol | 7 | +0.25 | 0.35 | 5 | 2 | 71.4 | -0.43 | 3h 05m |
| Dec 2024 | bullish trending low vol | 40 | +3.83 | 0.96 | 32 | 8 | 80.0 | -0.45 | 3h 05m |
| Nov 2024 | bullish trending low vol | 67 | +4.84 | 0.72 | 49 | 18 | 73.1 | -0.72 | 3h 06m |
| Oct 2024 | bullish choppy low vol | 1 | -0.00 | -0.00 | 0 | 1 | 0.0 | -0.68 | 2h 55m |
| Aug 2024 | bearish choppy high vol | 3 | +0.49 | 1.63 | 3 | 0 | 100.0 | -0.81 | 0h 35m |
| Jul 2024 | bearish trending low vol | 2 | +0.31 | 1.56 | 2 | 0 | 100.0 | -0.86 | 1h 48m |
| Jun 2024 | bearish choppy low vol | 1 | +0.08 | 0.81 | 1 | 0 | 100.0 | -0.98 | 2h 50m |
| May 2024 | bullish choppy high vol | 1 | +0.09 | 0.92 | 1 | 0 | 100.0 | -1.01 | 2h 50m |
| Apr 2024 | bearish choppy high vol | 2 | -1.79 | -8.97 | 1 | 1 | 50.0 | -1.05 | 5h 08m |
| Mar 2024 | bullish trending high vol | 12 | +0.55 | 0.45 | 9 | 3 | 75.0 | -0.37 | 3h 11m |
| Feb 2024 | bullish trending low vol | 3 | +0.14 | 0.48 | 2 | 1 | 66.7 | -0.15 | 5h 15m |
| Jan 2024 | bearish choppy high vol | 9 | +0.09 | 0.11 | 4 | 5 | 44.4 | -0.15 | 3h 55m |
| Dec 2023 | bullish trending low vol | 31 | +4.75 | 1.53 | 22 | 9 | 71.0 | -0.27 | 3h 21m |
| Nov 2023 | bullish trending low vol | 14 | -0.18 | -0.13 | 9 | 5 | 64.3 | -0.55 | 5h 16m |
| Oct 2023 | bullish trending low vol | 3 | +0.64 | 2.14 | 3 | 0 | 100.0 | -0.35 | 2h 15m |
| Sep 2023 | bearish choppy low vol | 1 | +0.26 | 2.58 | 1 | 0 | 100.0 | -0.38 | 1h 55m |
| Aug 2023 | bearish choppy low vol | 9 | +0.16 | 0.18 | 8 | 1 | 88.9 | -0.71 | 2h 22m |
| Jul 2023 | bullish trending low vol | 9 | +0.24 | 0.27 | 5 | 4 | 55.6 | -0.14 | 5h 21m |
| Jun 2023 | bullish trending low vol | 16 | +1.96 | 1.22 | 12 | 4 | 75.0 | -0.32 | 3h 14m |
| Apr 2023 | bullish trending low vol | 3 | +0.45 | 1.50 | 3 | 0 | 100.0 | 0.0 | 2h 20m |
| Mar 2023 | bullish trending high vol | 10 | +0.98 | 0.98 | 8 | 2 | 80.0 | -0.02 | 3h 00m |
| Feb 2023 | bullish trending low vol | 4 | +0.41 | 1.01 | 3 | 1 | 75.0 | -0.07 | 1h 52m |
| Jan 2023 | bullish trending low vol | 25 | +2.99 | 1.19 | 19 | 6 | 76.0 | -0.12 | 3h 10m |
| Nov 2022 | bearish trending high vol | 24 | +4.24 | 1.76 | 21 | 3 | 87.5 | -0.7 | 2h 21m |
| Oct 2022 | bullish choppy low vol | 8 | +1.11 | 1.39 | 7 | 1 | 87.5 | -0.93 | 2h 32m |
| Sep 2022 | bearish choppy high vol | 4 | -0.30 | -0.75 | 1 | 3 | 25.0 | -0.98 | 7h 18m |
| Aug 2022 | bullish choppy high vol | 7 | -1.55 | -2.21 | 4 | 3 | 57.1 | -0.79 | 6h 24m |
| Jul 2022 | bearish trending high vol | 20 | +2.97 | 1.48 | 16 | 4 | 80.0 | -0.24 | 2h 22m |
| Jun 2022 | bearish trending high vol | 20 | +1.25 | 0.63 | 15 | 5 | 75.0 | -1.04 | 2h 49m |
| May 2022 | bearish trending high vol | 24 | +1.25 | 0.52 | 15 | 9 | 62.5 | -0.75 | 3h 51m |
| Apr 2022 | bearish choppy high vol | 5 | -0.06 | -0.10 | 3 | 2 | 60.0 | -0.29 | 5h 04m |
| Mar 2022 | bullish choppy high vol | 3 | +0.62 | 2.08 | 3 | 0 | 100.0 | -0.21 | 2h 25m |
| Feb 2022 | bearish trending high vol | 9 | -0.14 | -0.15 | 7 | 2 | 77.8 | -0.67 | 4h 03m |
| Jan 2022 | bearish trending high vol | 5 | +0.28 | 0.57 | 5 | 0 | 100.0 | -0.08 | 2h 36m |
| Dec 2021 | bearish trending high vol | 8 | -0.06 | -0.06 | 7 | 1 | 87.5 | -0.46 | 3h 29m |
| Nov 2021 | bullish trending high vol | 5 | +0.88 | 1.75 | 5 | 0 | 100.0 | -0.39 | 1h 28m |
| Oct 2021 | bullish trending high vol | 11 | +0.08 | 0.07 | 9 | 2 | 81.8 | -0.59 | 4h 44m |
| Sep 2021 | bearish trending high vol | 28 | +4.31 | 1.54 | 23 | 5 | 82.1 | -0.35 | 2h 44m |
| Aug 2021 | bullish trending high vol | 32 | +5.25 | 1.64 | 28 | 4 | 87.5 | -0.24 | 1h 50m |
| Jul 2021 | bearish trending high vol | 26 | +2.15 | 0.83 | 20 | 6 | 76.9 | -0.36 | 3h 13m |
| Jun 2021 | bearish trending high vol | 32 | +3.90 | 1.22 | 25 | 7 | 78.1 | -0.67 | 2h 30m |
| May 2021 | bearish trending high vol | 252 | +63.33 | 2.52 | 215 | 37 | 85.3 | -1.58 | 1h 20m |
| Apr 2021 | bearish choppy high vol | 103 | +9.75 | 0.95 | 86 | 17 | 83.5 | -2.0 | 2h 16m |
| Mar 2021 | bullish choppy high vol | 41 | +6.37 | 1.56 | 36 | 5 | 87.8 | -0.91 | 2h 18m |
| Feb 2021 | bullish trending high vol | 161 | +18.40 | 1.14 | 131 | 30 | 81.4 | -3.04 | 2h 19m |
| Jan 2021 | bullish trending high vol | 195 | +27.36 | 1.40 | 156 | 39 | 80.0 | -5.85 | 2h 03m |
Yearly breakdown
| Year | Trades | Profit % | Avg % | Win | Loss | Win % | DD % | Avg dur |
|---|---|---|---|---|---|---|---|---|
| 2025 | 106 | +20.98 | 1.98 | 85 | 21 | 80.2 | -1.0 | 2h 33m |
| 2024 | 141 | +8.63 | 0.61 | 104 | 37 | 73.8 | -1.05 | 3h 09m |
| 2023 | 125 | +12.66 | 1.01 | 93 | 32 | 74.4 | -0.71 | 3h 27m |
| 2022 | 129 | +9.67 | 0.75 | 97 | 32 | 75.2 | -1.04 | 3h 19m |
| 2021 | 894 | +141.72 | 1.59 | 741 | 153 | 82.9 | -5.85 | 2h 02m |
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 | |
|---|---|---|---|
| 54 | review | startup_candles_too_small | startup_candle_count is 39, but RSI(timeperiod=14) needing 8x warmup needs at least 112 candles -- so the first 73+ 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 |
| 58 | review | unused_informative | informative_pairs() declares an extra timeframe, but nothing merges it into the dataframe (no merge_informative_pair, no @informative) -- that data is fetched and discarded, and any higher-timeframe filter you think is running isn't |
ran by Ron · took s
Lookahead analysis
freqtrade lookahead-analysis: detects strategies peeking at future candles.