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 | # --- Do not remove these libs --- # --- 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: # entry_params = { # "base_nb_candles_entry": 14, # "ewo_high": 2.327, # "ewo_high_2": -2.327, # "ewo_low": -20.988, # "low_offset": 0.975, # "low_offset_2": 0.955, # "rsi_entry": 69 # } # # Buy hyperspace params: # entry_params = { # "base_nb_candles_entry": 18, # "ewo_high": 3.422, # "ewo_high_2": -3.436, # "ewo_low": -8.562, # "low_offset": 0.966, # "low_offset_2": 0.959, # "rsi_entry": 66, # } # # # Sell hyperspace params: # # exit_params = { # # "base_nb_candles_exit": 17, # # "high_offset": 0.997, # # "high_offset_2": 1.01, # # } # # Sell hyperspace params: # exit_params = { # "base_nb_candles_exit": 7, # "high_offset": 1.014, # "high_offset_2": 0.995, # } # # Buy hyperspace params: # entry_params = { # "ewo_high_2": -5.642, # "low_offset_2": 0.951, # "rsi_entry": 54, # "base_nb_candles_entry": 16, # value loaded from strategy # "ewo_high": 3.422, # value loaded from strategy # "ewo_low": -8.562, # value loaded from strategy # "low_offset": 0.966, # value loaded from strategy # } # # Sell hyperspace params: # exit_params = { # "base_nb_candles_exit": 8, # "high_offset_2": 1.002, # "high_offset": 1.014, # value loaded from strategy # } # Buy hyperspace params: # value loaded from strategy # value loaded from strategy # value loaded from strategy # value loaded from strategy entry_params = {'ewo_high_2': -4.58, 'low_offset_2': 0.951, 'rsi_entry': 52, 'base_nb_candles_entry': 16, 'ewo_high': 3.422, 'ewo_low': -8.562, 'low_offset': 0.966} # Sell hyperspace params: # value loaded from strategy exit_params = {'base_nb_candles_exit': 10, 'high_offset_2': 1.002, 'high_offset': 1.014} 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['low'] * 100 return emadif class NotAnotherSMAOffsetStrategyHO(IStrategy): INTERFACE_VERSION = 3 # ROI table: minimal_roi = {'0': 0.289, '25': 0.105, '80': 0.038, '140': 0} # Stoploss: stoploss = -0.35 # SMAOffset base_nb_candles_entry = IntParameter(5, 80, default=entry_params['base_nb_candles_entry'], space='entry', optimize=False) 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=False) low_offset_2 = DecimalParameter(0.9, 0.99, default=entry_params['low_offset_2'], space='entry', optimize=True) high_offset = DecimalParameter(0.95, 1.1, default=exit_params['high_offset'], space='exit', optimize=False) high_offset_2 = DecimalParameter(0.99, 1.5, default=exit_params['high_offset_2'], 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=False) ewo_high = DecimalParameter(2.0, 12.0, default=entry_params['ewo_high'], space='entry', optimize=False) ewo_high_2 = DecimalParameter(-6.0, 12.0, default=entry_params['ewo_high_2'], 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.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': 'ioc'} # Optimal timeframe for the strategy timeframe = '5m' inf_1h = '1h' process_only_new_candles = True startup_candle_count = 200 plot_config = {'main_plot': {'ma_entry': {'color': 'orange'}, 'ma_exit': {'color': 'orange'}}} slippage_protection = {'retries': 3, 'max_slippage': -0.02} entry_signals = {} def confirm_trade_exit(self, pair: str, trade: Trade, order_type: str, amount: float, rate: float, time_in_force: str, exit_reason: str, current_time: datetime, **kwargs) -> bool: dataframe, _ = self.dp.get_analyzed_dataframe(pair, self.timeframe) last_candle = dataframe.iloc[-1] if last_candle is not None: if exit_reason in ['exit_signal']: if last_candle['hma_50'] * 1.149 > last_candle['ema_100'] and last_candle['close'] < last_candle['ema_100'] * 0.951: # *1.2 return False # slippage try: state = self.slippage_protection['__pair_retries'] except KeyError: state = self.slippage_protection['__pair_retries'] = {} candle = dataframe.iloc[-1].squeeze() slippage = rate / candle['close'] - 1 if slippage < self.slippage_protection['max_slippage']: pair_retries = state.get(pair, 0) if pair_retries < self.slippage_protection['retries']: state[pair] = pair_retries + 1 return False state[pair] = 0 return True 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) dataframe['hma_50'] = qtpylib.hull_moving_average(dataframe['close'], window=50) dataframe['ema_100'] = ta.EMA(dataframe, timeperiod=100) dataframe['sma_9'] = ta.SMA(dataframe, timeperiod=9) # Elliot dataframe['EWO'] = EWO(dataframe, self.fast_ewo, self.slow_ewo) # RSI dataframe['rsi'] = ta.RSI(dataframe, timeperiod=14) dataframe['rsi_fast'] = ta.RSI(dataframe, timeperiod=4) dataframe['rsi_slow'] = ta.RSI(dataframe, timeperiod=20) return dataframe def populate_entry_trend(self, dataframe: DataFrame, metadata: dict) -> DataFrame: dataframe.loc[(dataframe['rsi_fast'] < 35) & (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) & (dataframe['close'] < dataframe[f'ma_exit_{self.base_nb_candles_exit.value}'] * self.high_offset.value), ['enter_long', 'enter_tag']] = (1, 'ewo1') dataframe.loc[(dataframe['rsi_fast'] < 35) & (dataframe['close'] < dataframe[f'ma_entry_{self.base_nb_candles_entry.value}'] * self.low_offset_2.value) & (dataframe['EWO'] > self.ewo_high_2.value) & (dataframe['rsi'] < self.rsi_entry.value) & (dataframe['volume'] > 0) & (dataframe['close'] < dataframe[f'ma_exit_{self.base_nb_candles_exit.value}'] * self.high_offset.value) & (dataframe['rsi'] < 25), ['enter_long', 'enter_tag']] = (1, 'ewo2') dataframe.loc[(dataframe['rsi_fast'] < 35) & (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) & (dataframe['close'] < dataframe[f'ma_exit_{self.base_nb_candles_exit.value}'] * self.high_offset.value), ['enter_long', 'enter_tag']] = (1, 'ewolow') return dataframe def populate_exit_trend(self, dataframe: DataFrame, metadata: dict) -> DataFrame: conditions = [] conditions.append((dataframe['close'] > dataframe['sma_9']) & (dataframe['close'] > dataframe[f'ma_exit_{self.base_nb_candles_exit.value}'] * self.high_offset_2.value) & (dataframe['rsi'] > 50) & (dataframe['volume'] > 0) & (dataframe['rsi_fast'] > dataframe['rsi_slow']) | (dataframe['close'] < dataframe['hma_50']) & (dataframe['close'] > dataframe[f'ma_exit_{self.base_nb_candles_exit.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 277.3s
ℹ️ 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 96% 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 | 2 | +0.13 | 0.64 | 1 | 1 | 50.0 | -0.06 | 2h 42m |
| Nov 2025 | bearish trending high vol | 39 | +7.69 | 1.97 | 35 | 4 | 89.7 | -0.16 | 0h 56m |
| Oct 2025 | bearish trending low vol | 91 | +49.69 | 5.45 | 80 | 11 | 87.9 | -5.12 | 0h 13m |
| Sep 2025 | bullish choppy low vol | 13 | +3.07 | 2.36 | 13 | 0 | 100.0 | -0.34 | 1h 13m |
| Aug 2025 | bullish choppy low vol | 8 | +2.40 | 3.00 | 8 | 0 | 100.0 | -0.88 | 0h 32m |
| Jun 2025 | bearish choppy low vol | 1 | -0.00 | -0.00 | 0 | 1 | 0.0 | -0.95 | 2h 20m |
| May 2025 | bullish trending low vol | 2 | +0.51 | 2.55 | 2 | 0 | 100.0 | -1.01 | 1h 00m |
| Apr 2025 | bullish choppy low vol | 3 | +0.18 | 0.62 | 2 | 1 | 66.7 | -1.22 | 1h 37m |
| Mar 2025 | bearish trending high vol | 7 | -0.24 | -0.34 | 4 | 3 | 57.1 | -1.3 | 2h 26m |
| Feb 2025 | bearish trending low vol | 21 | -2.47 | -1.17 | 10 | 11 | 47.6 | -1.22 | 1h 41m |
| Jan 2025 | bearish choppy low vol | 9 | +0.51 | 0.57 | 5 | 4 | 55.6 | -0.34 | 1h 38m |
| Dec 2024 | bullish trending low vol | 44 | +6.48 | 1.47 | 30 | 14 | 68.2 | -0.27 | 1h 26m |
| Nov 2024 | bullish trending low vol | 40 | +5.70 | 1.43 | 33 | 7 | 82.5 | -0.14 | 1h 14m |
| Oct 2024 | bullish choppy low vol | 12 | +3.14 | 2.62 | 12 | 0 | 100.0 | -0.07 | 1h 18m |
| Sep 2024 | bearish choppy low vol | 1 | +0.28 | 2.79 | 1 | 0 | 100.0 | -0.15 | 0h 30m |
| Aug 2024 | bearish choppy high vol | 28 | +3.42 | 1.22 | 20 | 8 | 71.4 | -0.44 | 1h 37m |
| Jul 2024 | bearish trending low vol | 9 | +0.63 | 0.70 | 7 | 2 | 77.8 | -0.13 | 2h 11m |
| Jun 2024 | bearish choppy low vol | 37 | +6.94 | 1.88 | 35 | 2 | 94.6 | -1.55 | 0h 35m |
| Apr 2024 | bearish choppy high vol | 31 | -6.37 | -2.05 | 16 | 15 | 51.6 | -1.67 | 2h 42m |
| Mar 2024 | bullish trending high vol | 19 | +4.46 | 2.35 | 18 | 1 | 94.7 | -0.03 | 1h 02m |
| Feb 2024 | bullish trending low vol | 15 | +3.58 | 2.38 | 15 | 0 | 100.0 | -0.53 | 1h 04m |
| Jan 2024 | bearish choppy high vol | 22 | +0.71 | 0.32 | 13 | 9 | 59.1 | -0.67 | 1h 36m |
| Dec 2023 | bullish trending low vol | 37 | +8.57 | 2.32 | 36 | 1 | 97.3 | -0.04 | 0h 49m |
| Nov 2023 | bullish trending low vol | 15 | +1.66 | 1.10 | 12 | 3 | 80.0 | -0.03 | 2h 01m |
| Oct 2023 | bullish trending low vol | 2 | +0.53 | 2.65 | 2 | 0 | 100.0 | 0.0 | 0h 18m |
| Aug 2023 | bearish choppy low vol | 48 | +10.15 | 2.11 | 47 | 1 | 97.9 | -0.58 | 0h 30m |
| Jul 2023 | bullish trending low vol | 7 | +0.50 | 0.72 | 5 | 2 | 71.4 | -0.2 | 2h 22m |
| Jun 2023 | bullish trending low vol | 59 | +11.80 | 2.00 | 49 | 10 | 83.1 | -0.15 | 1h 09m |
| May 2023 | bearish choppy low vol | 7 | +1.54 | 2.19 | 7 | 0 | 100.0 | 0.0 | 1h 24m |
| Apr 2023 | bullish trending low vol | 22 | +4.43 | 2.01 | 22 | 0 | 100.0 | 0.0 | 1h 31m |
| Mar 2023 | bullish trending high vol | 20 | +1.22 | 0.61 | 14 | 6 | 70.0 | -0.05 | 2h 24m |
| Feb 2023 | bullish trending low vol | 6 | +0.34 | 0.56 | 4 | 2 | 66.7 | -0.13 | 2h 03m |
| Jan 2023 | bullish trending low vol | 37 | +7.57 | 2.05 | 34 | 3 | 91.9 | -0.09 | 1h 20m |
| Dec 2022 | bearish trending low vol | 18 | +2.81 | 1.56 | 16 | 2 | 88.9 | -0.14 | 1h 04m |
| Nov 2022 | bearish trending high vol | 71 | +6.39 | 0.90 | 48 | 23 | 67.6 | -1.27 | 1h 35m |
| Oct 2022 | bullish choppy low vol | 7 | +1.38 | 1.96 | 7 | 0 | 100.0 | -0.22 | 1h 04m |
| Sep 2022 | bearish choppy high vol | 12 | -0.14 | -0.12 | 6 | 6 | 50.0 | -0.39 | 2h 57m |
| Aug 2022 | bullish choppy high vol | 7 | -0.09 | -0.13 | 2 | 5 | 28.6 | -0.19 | 2h 31m |
| Jul 2022 | bearish trending high vol | 12 | +1.75 | 1.46 | 9 | 3 | 75.0 | -0.13 | 1h 14m |
| Jun 2022 | bearish trending high vol | 20 | +4.00 | 2.00 | 16 | 4 | 80.0 | -0.84 | 1h 14m |
| May 2022 | bearish trending high vol | 84 | +7.54 | 0.90 | 62 | 22 | 73.8 | -1.16 | 1h 23m |
| Apr 2022 | bearish choppy high vol | 9 | +2.46 | 2.73 | 7 | 2 | 77.8 | -0.06 | 0h 50m |
| Mar 2022 | bullish choppy high vol | 13 | +3.51 | 2.70 | 13 | 0 | 100.0 | -0.11 | 0h 30m |
| Feb 2022 | bearish trending high vol | 14 | +1.34 | 0.96 | 10 | 4 | 71.4 | -0.17 | 1h 25m |
| Jan 2022 | bearish trending high vol | 28 | +8.75 | 3.13 | 28 | 0 | 100.0 | -0.78 | 0h 33m |
| Dec 2021 | bearish trending high vol | 19 | -1.59 | -0.84 | 11 | 8 | 57.9 | -1.01 | 1h 39m |
| Nov 2021 | bullish trending high vol | 45 | +7.79 | 1.73 | 39 | 6 | 86.7 | -0.25 | 0h 57m |
| Oct 2021 | bullish trending high vol | 21 | +2.29 | 1.09 | 15 | 6 | 71.4 | -1.01 | 1h 29m |
| Sep 2021 | bearish trending high vol | 59 | +4.74 | 0.80 | 42 | 17 | 71.2 | -1.35 | 1h 23m |
| Aug 2021 | bullish trending high vol | 8 | +1.41 | 1.77 | 7 | 1 | 87.5 | -0.12 | 1h 12m |
| Jul 2021 | bearish trending high vol | 6 | +0.26 | 0.43 | 4 | 2 | 66.7 | -0.22 | 2h 07m |
| Jun 2021 | bearish trending high vol | 36 | +5.63 | 1.56 | 30 | 6 | 83.3 | -0.26 | 1h 07m |
| May 2021 | bearish trending high vol | 363 | +54.25 | 1.50 | 309 | 54 | 85.1 | -7.0 | 0h 51m |
| Apr 2021 | bearish choppy high vol | 176 | +39.98 | 2.27 | 152 | 24 | 86.4 | -0.75 | 0h 46m |
| Mar 2021 | bullish choppy high vol | 42 | +9.38 | 2.24 | 40 | 2 | 95.2 | -0.25 | 0h 45m |
| Feb 2021 | bullish trending high vol | 220 | +46.35 | 2.11 | 197 | 23 | 89.5 | -3.25 | 0h 38m |
| Jan 2021 | bullish trending high vol | 266 | +45.53 | 1.71 | 227 | 39 | 85.3 | -4.47 | 0h 44m |
Yearly breakdown
| Year | Trades | Profit % | Avg % | Win | Loss | Win % | DD % | Avg dur |
|---|---|---|---|---|---|---|---|---|
| 2025 | 196 | +61.47 | 3.13 | 160 | 36 | 81.6 | -5.12 | 0h 48m |
| 2024 | 258 | +28.97 | 1.12 | 200 | 58 | 77.5 | -1.67 | 1h 26m |
| 2023 | 260 | +48.31 | 1.86 | 232 | 28 | 89.2 | -0.58 | 1h 14m |
| 2022 | 295 | +39.70 | 1.35 | 224 | 71 | 75.9 | -1.27 | 1h 21m |
| 2021 | 1261 | +216.02 | 1.71 | 1073 | 188 | 85.1 | -7.0 | 0h 50m |
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 | |
|---|---|---|---|
| 119 | review | startup_candles_too_small | startup_candle_count is 200, but EMA(timeperiod=100) needing 3x warmup needs at least 300 candles -- so the first 100+ 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 |
| 165 | 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 |
ran by Ron · took s
Lookahead analysis
Freqtrade logsno lookahead bias detected
20 signal(s) analysed · 0 biased entries · 0 biased exits
ran by Ron · took 23.7s