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 | # --- 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 # @Rallipanos # Buy hyperspace params: buy_params = {'base_nb_candles_buy': 14, 'ewo_high': 2.327, 'ewo_low': -19.988, 'low_offset': 0.975, 'rsi_buy': 69} # Sell hyperspace params: sell_params = {'base_nb_candles_sell': 24, 'high_offset': 0.991, 'high_offset_2': 0.997} 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 def populate_indicators(self, dataframe: DataFrame, metadata: dict) -> DataFrame: return dataframe class ElliotV7(IStrategy): INTERFACE_VERSION = 3 # ROI table: minimal_roi = {'0': 0.051, '10': 0.031, '22': 0.018, '66': 0} # Stoploss: stoploss = -0.32 # SMAOffset base_nb_candles_buy = IntParameter(5, 80, default=buy_params['base_nb_candles_buy'], space='buy', optimize=True) base_nb_candles_sell = IntParameter(5, 80, default=sell_params['base_nb_candles_sell'], space='sell', optimize=True) low_offset = DecimalParameter(0.9, 0.99, default=buy_params['low_offset'], space='buy', optimize=True) high_offset = DecimalParameter(0.95, 1.1, default=sell_params['high_offset'], space='sell', optimize=True) high_offset_2 = DecimalParameter(0.99, 1.5, default=sell_params['high_offset_2'], space='sell', optimize=True) # Protection fast_ewo = 50 slow_ewo = 200 ewo_low = DecimalParameter(-20.0, -8.0, default=buy_params['ewo_low'], space='buy', optimize=True) ewo_high = DecimalParameter(2.0, 12.0, default=buy_params['ewo_high'], space='buy', optimize=True) rsi_buy = IntParameter(30, 70, default=buy_params['rsi_buy'], space='buy', optimize=True) # Trailing stop: trailing_stop = True trailing_stop_positive = 0.005 trailing_stop_positive_offset = 0.03 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 = False ## Optional order time in force. order_time_in_force = {'entry': 'gtc', 'exit': 'gtc'} # Optimal timeframe for the strategy timeframe = '5m' inf_1h = '1h' process_only_new_candles = True startup_candle_count = 39 plot_config = {'main_plot': {'ma_buy': {'color': 'orange'}, 'ma_sell': {'color': 'orange'}}} use_custom_stoploss = False def custom_stoploss(self, pair: str, trade: 'Trade', current_time: datetime, current_rate: float, current_profit: float, **kwargs) -> float: if current_profit < -0.1 and current_time - timedelta(minutes=720) > trade.open_date_utc: return -0.01 return -0.99 def informative_pairs(self): # get access to all pairs available in whitelist. pairs = self.dp.current_whitelist() # Assign tf to each pair so they can be downloaded and cached for strategy. informative_pairs = [(pair, '1h') for pair in pairs] return informative_pairs def informative_1h_indicators(self, dataframe: DataFrame, metadata: dict) -> DataFrame: assert self.dp, 'DataProvider is required for multiple timeframes.' # Get the informative pair informative_1h = self.dp.get_pair_dataframe(pair=metadata['pair'], timeframe=self.inf_1h) informative_1h['ema_fast'] = ta.EMA(informative_1h, timeperiod=20) informative_1h['ema_slow'] = ta.EMA(informative_1h, timeperiod=25) informative_1h['uptrend'] = (informative_1h['ema_fast'] > informative_1h['ema_slow']).astype('int') informative_1h['rsi_100'] = ta.RSI(informative_1h, timeperiod=100) return informative_1h def populate_indicators(self, dataframe: DataFrame, metadata: dict) -> DataFrame: informative_1h = self.informative_1h_indicators(dataframe, metadata) dataframe = merge_informative_pair(dataframe, informative_1h, self.timeframe, self.inf_1h, ffill=True) # Calculate all ma_buy values for val in self.base_nb_candles_buy.range: dataframe[f'ma_buy_{val}'] = ta.EMA(dataframe, timeperiod=val) bollinger = qtpylib.bollinger_bands(qtpylib.typical_price(dataframe), window=20, stds=2) dataframe['bb_upperband'] = bollinger['upper'] dataframe['bb_lowerband'] = bollinger['lower'] # Calculate all ma_sell values for val in self.base_nb_candles_sell.range: dataframe[f'ma_sell_{val}'] = ta.EMA(dataframe, timeperiod=val) dataframe['hma_50'] = qtpylib.hull_moving_average(dataframe['close'], window=50) #dataframe['hma_50']=hmao dataframe['sma_9'] = ta.SMA(dataframe, timeperiod=9) # Elliot dataframe['EWO'] = EWO(dataframe, self.fast_ewo, self.slow_ewo) macd = ta.MACD(dataframe) dataframe['macd'] = macd['macd'] dataframe['macdsignal'] = macd['macdsignal'] # RSI dataframe['rsi'] = ta.RSI(dataframe, timeperiod=14) dataframe['rsi_fast'] = ta.RSI(dataframe, timeperiod=4) dataframe['rsi_slow'] = ta.RSI(dataframe, timeperiod=20) dataframe['rsi_100'] = ta.RSI(dataframe, timeperiod=100) return dataframe def populate_entry_trend(self, dataframe: DataFrame, metadata: dict) -> DataFrame: conditions = [] conditions.append((dataframe['uptrend_1h'] > 0) & (dataframe['rsi_fast'] < 35) & (dataframe['close'] < dataframe[f'ma_buy_{self.base_nb_candles_buy.value}'] * self.low_offset.value) & (dataframe['EWO'] > self.ewo_high.value) & (dataframe['rsi'] < self.rsi_buy.value) & (dataframe['volume'] > 0) & (dataframe['close'] < dataframe[f'ma_sell_{self.base_nb_candles_sell.value}'] * self.high_offset.value)) conditions.append((dataframe['uptrend_1h'] > 0) & (dataframe['rsi_fast'] < 35) & (dataframe['close'] < dataframe[f'ma_buy_{self.base_nb_candles_buy.value}'] * self.low_offset.value) & (dataframe['EWO'] < self.ewo_low.value) & (dataframe['volume'] > 0) & (dataframe['close'] < dataframe[f'ma_sell_{self.base_nb_candles_sell.value}'] * self.high_offset.value)) 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['sma_9'] > dataframe['hma_50']) & (dataframe['close'] > dataframe[f'ma_sell_{self.base_nb_candles_sell.value}'] * self.high_offset_2.value) & (dataframe['rsi'] > 50) & (dataframe['volume'] > 0) & (dataframe['rsi_fast'] > dataframe['rsi_slow']) | (dataframe['sma_9'] < dataframe['hma_50']) & (dataframe['close'] > dataframe[f'ma_sell_{self.base_nb_candles_sell.value}'] * self.high_offset.value) & (dataframe['volume'] > 0) & (dataframe['rsi_fast'] > dataframe['rsi_slow'])) if conditions: dataframe.loc[reduce(lambda x, y: x | y, conditions), 'exit_long'] = 1 return dataframe |
Strategy League — fixed backtest that feeds the ranking
Export report Freqtrade logsRun finished · took 275.2s
ℹ️ This strategy uses a trailing stop / custom_stoploss() — 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 |
|---|---|---|---|---|---|---|---|---|---|
| Nov 2025 | bearish trending high vol | 49 | +2.45 | 0.50 | 37 | 12 | 75.5 | -0.45 | 0h 51m |
| Oct 2025 | bearish trending low vol | 16 | +1.65 | 1.03 | 12 | 4 | 75.0 | -0.21 | 0h 45m |
| Sep 2025 | bullish choppy low vol | 12 | -0.14 | -0.12 | 6 | 6 | 50.0 | -0.18 | 1h 06m |
| Aug 2025 | bullish choppy low vol | 1 | +0.07 | 0.75 | 1 | 0 | 100.0 | 0.0 | 0h 35m |
| Jul 2025 | bullish choppy low vol | 9 | +0.57 | 0.63 | 6 | 3 | 66.7 | -0.02 | 0h 51m |
| Jun 2025 | bearish choppy low vol | 4 | -0.04 | -0.10 | 2 | 2 | 50.0 | -0.15 | 1h 01m |
| May 2025 | bullish trending low vol | 7 | +1.14 | 1.62 | 6 | 1 | 85.7 | -0.33 | 0h 32m |
| Apr 2025 | bullish choppy low vol | 3 | -0.02 | -0.05 | 2 | 1 | 66.7 | -0.53 | 1h 02m |
| Mar 2025 | bearish trending high vol | 7 | +0.54 | 0.78 | 5 | 2 | 71.4 | -0.54 | 0h 56m |
| Feb 2025 | bearish trending low vol | 2 | -0.43 | -2.17 | 1 | 1 | 50.0 | -0.66 | 1h 35m |
| Jan 2025 | bearish choppy low vol | 9 | +0.01 | 0.02 | 6 | 3 | 66.7 | -0.56 | 1h 08m |
| Dec 2024 | bullish trending low vol | 44 | +1.01 | 0.23 | 24 | 20 | 54.5 | -0.56 | 0h 55m |
| Nov 2024 | bullish trending low vol | 113 | +5.78 | 0.51 | 74 | 39 | 65.5 | -0.55 | 0h 48m |
| Oct 2024 | bullish choppy low vol | 1 | -0.01 | -0.06 | 0 | 1 | 0.0 | -0.37 | 1h 05m |
| Jul 2024 | bearish trending low vol | 6 | +1.06 | 1.77 | 6 | 0 | 100.0 | -0.7 | 0h 19m |
| Jun 2024 | bearish choppy low vol | 2 | +0.37 | 1.84 | 2 | 0 | 100.0 | -0.93 | 0h 25m |
| May 2024 | bullish choppy high vol | 1 | +0.16 | 1.57 | 1 | 0 | 100.0 | -1.01 | 0h 40m |
| Apr 2024 | bearish choppy high vol | 3 | -1.85 | -6.16 | 2 | 1 | 66.7 | -1.08 | 1h 53m |
| Mar 2024 | bullish trending high vol | 22 | +1.96 | 0.89 | 19 | 3 | 86.4 | -0.25 | 0h 43m |
| Feb 2024 | bullish trending low vol | 12 | +1.90 | 1.59 | 10 | 2 | 83.3 | -0.1 | 0h 44m |
| Jan 2024 | bearish choppy high vol | 21 | +1.41 | 0.67 | 15 | 6 | 71.4 | -0.31 | 0h 45m |
| Dec 2023 | bullish trending low vol | 37 | +2.62 | 0.71 | 26 | 11 | 70.3 | -0.37 | 0h 49m |
| Nov 2023 | bullish trending low vol | 16 | +0.45 | 0.28 | 9 | 7 | 56.2 | -0.16 | 0h 48m |
| Oct 2023 | bullish trending low vol | 6 | +0.37 | 0.61 | 3 | 3 | 50.0 | -0.27 | 0h 46m |
| Sep 2023 | bearish choppy low vol | 2 | +0.15 | 0.75 | 2 | 0 | 100.0 | -0.27 | 1h 05m |
| Aug 2023 | bearish choppy low vol | 8 | -0.45 | -0.56 | 6 | 2 | 75.0 | -0.49 | 1h 10m |
| Jul 2023 | bullish trending low vol | 17 | +1.09 | 0.64 | 13 | 4 | 76.5 | -0.26 | 0h 52m |
| Jun 2023 | bullish trending low vol | 22 | +0.86 | 0.39 | 14 | 8 | 63.6 | -0.34 | 0h 53m |
| May 2023 | bearish choppy low vol | 1 | +0.18 | 1.80 | 1 | 0 | 100.0 | -0.05 | 0h 25m |
| Apr 2023 | bullish trending low vol | 4 | -0.17 | -0.43 | 1 | 3 | 25.0 | -0.13 | 1h 08m |
| Mar 2023 | bullish trending high vol | 14 | +2.03 | 1.45 | 14 | 0 | 100.0 | -0.8 | 0h 31m |
| Feb 2023 | bullish trending low vol | 7 | -0.08 | -0.11 | 5 | 2 | 71.4 | -0.98 | 1h 14m |
| Jan 2023 | bullish trending low vol | 40 | +0.19 | 0.05 | 24 | 16 | 60.0 | -1.13 | 0h 58m |
| Nov 2022 | bearish trending high vol | 19 | -2.13 | -1.12 | 8 | 11 | 42.1 | -1.0 | 1h 26m |
| Oct 2022 | bullish choppy low vol | 13 | +0.91 | 0.70 | 10 | 3 | 76.9 | -0.05 | 0h 38m |
| Sep 2022 | bearish choppy high vol | 6 | +0.07 | 0.12 | 4 | 2 | 66.7 | -0.14 | 0h 58m |
| Aug 2022 | bullish choppy high vol | 11 | +1.15 | 1.05 | 9 | 2 | 81.8 | -0.37 | 0h 40m |
| Jul 2022 | bearish trending high vol | 27 | +1.26 | 0.47 | 18 | 9 | 66.7 | -0.51 | 0h 47m |
| Jun 2022 | bearish trending high vol | 24 | +1.10 | 0.46 | 16 | 8 | 66.7 | -0.77 | 0h 54m |
| May 2022 | bearish trending high vol | 26 | +0.79 | 0.30 | 16 | 10 | 61.5 | -0.61 | 1h 01m |
| Apr 2022 | bearish choppy high vol | 6 | -0.59 | -0.98 | 4 | 2 | 66.7 | -0.37 | 1h 42m |
| Mar 2022 | bullish choppy high vol | 9 | +1.26 | 1.40 | 8 | 1 | 88.9 | -0.03 | 0h 28m |
| Feb 2022 | bearish trending high vol | 15 | +1.96 | 1.31 | 11 | 4 | 73.3 | -0.16 | 0h 42m |
| Jan 2022 | bearish trending high vol | 5 | +0.57 | 1.15 | 5 | 0 | 100.0 | -0.09 | 0h 35m |
| Dec 2021 | bearish trending high vol | 13 | +0.42 | 0.33 | 8 | 5 | 61.5 | -0.19 | 0h 52m |
| Nov 2021 | bullish trending high vol | 12 | -0.04 | -0.03 | 8 | 4 | 66.7 | -0.32 | 1h 01m |
| Oct 2021 | bullish trending high vol | 19 | +1.64 | 0.86 | 15 | 4 | 78.9 | -0.52 | 0h 41m |
| Sep 2021 | bearish trending high vol | 53 | +5.37 | 1.02 | 42 | 11 | 79.2 | -0.51 | 0h 40m |
| Aug 2021 | bullish trending high vol | 38 | +1.46 | 0.38 | 27 | 11 | 71.1 | -0.56 | 0h 55m |
| Jul 2021 | bearish trending high vol | 27 | -0.06 | -0.02 | 18 | 9 | 66.7 | -0.81 | 1h 06m |
| Jun 2021 | bearish trending high vol | 29 | +3.27 | 1.13 | 26 | 3 | 89.7 | -0.19 | 0h 40m |
| May 2021 | bearish trending high vol | 222 | +18.20 | 0.82 | 164 | 58 | 73.9 | -1.02 | 0h 42m |
| Apr 2021 | bearish choppy high vol | 172 | +19.11 | 1.11 | 130 | 42 | 75.6 | -0.6 | 0h 35m |
| Mar 2021 | bullish choppy high vol | 66 | +7.26 | 1.10 | 50 | 16 | 75.8 | -0.52 | 0h 39m |
| Feb 2021 | bullish trending high vol | 243 | +17.17 | 0.71 | 187 | 56 | 77.0 | -2.85 | 0h 41m |
| Jan 2021 | bullish trending high vol | 329 | +30.81 | 0.94 | 254 | 75 | 77.2 | -3.86 | 0h 39m |
Yearly breakdown
| Year | Trades | Profit % | Avg % | Win | Loss | Win % | DD % | Avg dur |
|---|---|---|---|---|---|---|---|---|
| 2025 | 119 | +5.80 | 0.49 | 84 | 35 | 70.6 | -0.66 | 0h 53m |
| 2024 | 225 | +11.79 | 0.52 | 153 | 72 | 68.0 | -1.08 | 0h 48m |
| 2023 | 174 | +7.24 | 0.42 | 118 | 56 | 67.8 | -1.13 | 0h 53m |
| 2022 | 161 | +6.35 | 0.40 | 109 | 52 | 67.7 | -1.0 | 0h 54m |
| 2021 | 1223 | +104.61 | 0.86 | 929 | 294 | 76.0 | -3.86 | 0h 41m |
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 | |
|---|---|---|---|
| 66 | review | startup_candles_too_small | startup_candle_count is 39, but RSI(timeperiod=100) needing 8x warmup needs at least 800 candles -- so the first 761+ 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 |
| 70 | review | dead_callback | custom_stoploss() is defined but use_custom_stoploss isn't True, and freqtrade only calls it when that flag is set -- the method never runs and every trade uses the static stoploss |
ran by Ron · took s
Lookahead analysis
freqtrade lookahead-analysis: detects strategies peeking at future candles.