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 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 | # pragma pylint: disable=missing-docstring, invalid-name, pointless-string-statement # flake8: noqa: F401 # --- Do not remove these libs --- import numpy as np # noqa import pandas as pd # noqa from pandas import DataFrame from datetime import datetime, timedelta, timezone from freqtrade.strategy import (BooleanParameter, CategoricalParameter, DecimalParameter, IStrategy, IntParameter) # -------------------------------- # Add your lib to import here import talib.abstract as ta import pandas_ta as pta import freqtrade.vendor.qtpylib.indicators as qtpylib from technical.pivots_points import pivots_points class FuturesStrategy1(IStrategy): custom_info = {} """ This is a strategy template to get you started. More information in https://www.freqtrade.io/en/latest/strategy-customization/ You can: :return: a Dataframe with all mandatory indicators for the strategies - Rename the class name (Do not forget to update class_name) - Add any methods you want to build your strategy - Add any lib you need to build your strategy You must keep: - the lib in the section "Do not remove these libs" - the methods: populate_indicators, populate_entry_trend, populate_exit_trend You should keep: - timeframe, minimal_roi, stoploss, trailing_* """ # Strategy interface version - allow new iterations of the strategy interface. # Check the documentation or the Sample strategy to get the latest version. INTERFACE_VERSION = 3 # Optimal timeframe for the strategy. timeframe = '15m' # Can this strategy go short? can_short: bool = True # Minimal ROI designed for the strategy. # This attribute will be overridden if the config file contains "minimal_roi". minimal_roi = { "0": 0.261, "455": 0.184, "1053": 0.088, "1757": 0 } # Optimal stoploss designed for the strategy. # This attribute will be overridden if the config file contains "stoploss". stoploss = -0.15 # Trailing stoploss trailing_stop = True trailing_only_offset_is_reached = True trailing_stop_positive = 0.012 trailing_stop_positive_offset = 0.052 # Run "populate_indicators()" only for new candle. process_only_new_candles = False # These values can be overridden in the config. use_exit_signal = True exit_profit_only = False ignore_roi_if_entry_signal = False # Number of candles the strategy requires before producing valid signals startup_candle_count: int = 30 # Optional order type mapping. order_types = { 'entry': 'market', 'exit': 'market', 'stoploss': 'market', 'stoploss_on_exchange': False } # Optional order time in force. order_time_in_force = { 'entry': 'gtc', 'exit': 'gtc' } @property def plot_config(self): return { # Main plot indicators (Moving averages, ...) 'main_plot': { "MACD": { 'fastd': {'color': 'blue'}, 'fastk': {'color': 'orange'}, }, "RSI": { 'rsi': {'color': 'red'}, }, "Pivot": { 'pivot': {'color': 'black'}, }, 'SMA': { 'sma15': {'color': 'white'}, 'sma50': {'color': 'yellow'}, }, }, 'subplots': { } } def custom_stake_amount(self, pair: str, current_time: datetime, current_rate: float, proposed_stake: float, min_stake: float, max_stake: float, entry_tag: str, **kwargs) -> float: return self.wallets.get_total_stake_amount() / 10 def informative_pairs(self): return [] def populate_indicators(self, dataframe: DataFrame, metadata: dict) -> DataFrame: # Pivot point pp = pivots_points(dataframe) dataframe['pivot'] = pp["r1"] # RSI dataframe['rsi'] = ta.RSI(dataframe) macd = ta.MACD(dataframe) dataframe['macd'] = macd['macd'] dataframe['macdsignal'] = macd['macdsignal'] dataframe['macdhist'] = macd['macdhist'] # Stochastic Fast stoch_fast = ta.STOCHF(dataframe) dataframe['fastd'] = stoch_fast['fastd'] dataframe['fastk'] = stoch_fast['fastk'] dataframe['ema9'] = ta.EMA(dataframe, timeperiod=9) dataframe['ema21'] = ta.EMA(dataframe, timeperiod=21) # MACD macd = ta.MACD(dataframe) dataframe['macd'] = macd['macd'] dataframe['macdsignal'] = macd['macdsignal'] dataframe['macdhist'] = macd['macdhist'] return dataframe def leverage(self, pair: str, current_time: 'datetime', current_rate: float, proposed_leverage: float, max_leverage: float, side: str, **kwargs) -> float: """ Customize leverage for each new trade. :param pair: Pair that's currently analyzed :param current_time: datetime object, containing the current datetime :param current_rate: Rate, calculated based on pricing settings in exit_pricing. :param proposed_leverage: A leverage proposed by the bot. :param max_leverage: Max leverage allowed on this pair :param side: 'long' or 'short' - indicating the direction of the proposed trade :return: A leverage amount, which is between 1.0 and max_leverage. """ return 10.0 def populate_entry_trend(self, dataframe: DataFrame, metadata: dict) -> DataFrame: """ Based on TA indicators, populates the entry signal for the given dataframe :param dataframe: DataFrame :param metadata: Additional information, like the currently traded pair :return: DataFrame with entry columns populated """ dataframe.loc[ ( # LONG (dataframe['close'] >= dataframe['open']) & # Check if candle is winning (dataframe['open'] >= dataframe['ema9']) & (dataframe['open'] >= dataframe['ema21']) & (dataframe['macdsignal'] >= 0) & # MACD positive (dataframe['rsi'] <= 70) & # RSI below overbought level (dataframe['volume'] > 0) # Make sure Volume is not 0 ), 'enter_long'] = 1 dataframe.loc[ ( # SHORT (dataframe['close'] <= dataframe['open']) & # Check if candle is winning (dataframe['open'] <= dataframe['ema9']) & (dataframe['open'] <= dataframe['ema21']) & (dataframe['macdsignal'] < 0) & # MACD positive (dataframe['rsi'] >= 70) & # RSI below oversell level (dataframe['volume'] > 0) # Make sure Volume is not 0 ), 'enter_short'] = 1 return dataframe def populate_exit_trend(self, dataframe: DataFrame, metadata: dict) -> DataFrame: """ Based on TA indicators, populates the exit signal for the given dataframe :param dataframe: DataFrame :param metadata: Additional information, like the currently traded pair :return: DataFrame with exit columns populated """ dataframe.loc[ ( #(dataframe["close"] > dataframe["open"]) & # Exit if price reverse (dataframe['volume'] == 0) # Make sure Volume is not 0 ), 'exit_long'] = 0 # Uncomment to use shorts (Only used in futures/margin mode. Check the documentation for more info) dataframe.loc[ ( #(dataframe["close"] < dataframe["open"]) & # Exit if price reverse (dataframe['volume'] > 0) # Make sure Volume is not 0 ), 'exit_short'] = 1 return dataframe |
Strategy League — fixed backtest that feeds the ranking
Export report Freqtrade logsRun finished · took 649.8s
ℹ️ This strategy uses a trailing stop — freqtrade only
re-checks these once per 15m 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 →
- very deep drawdown (-62%)
- statistically significant edge (p=0.00)
- 100% of resampled runs stayed profitable
- profitable across 93% of rolling 3-month windows
- comfortably beat buy-and-hold
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 | 5 | -8957.03 | -2.96 | 0 | 5 | 0.0 | -5.92 | 1h 15m |
| Dec 2025 | bearish trending low vol | 1678 | +267425.32 | 0.44 | 1147 | 531 | 68.4 | -6.47 | 2h 42m |
| Nov 2025 | bearish trending high vol | 2182 | -2807520.71 | -0.79 | 1367 | 815 | 62.6 | -6.29 | 1h 45m |
| Oct 2025 | bearish trending low vol | 2063 | +691048.79 | 0.19 | 1375 | 688 | 66.7 | -3.41 | 2h 04m |
| Sep 2025 | bullish choppy low vol | 1468 | -3266.56 | 0.08 | 1036 | 432 | 70.6 | -4.11 | 3h 18m |
| Aug 2025 | bearish choppy low vol | 2094 | +510431.79 | 0.35 | 1486 | 608 | 71.0 | -4.42 | 2h 09m |
| Jul 2025 | bullish choppy low vol | 2543 | +799882.02 | 0.85 | 1793 | 750 | 70.5 | -3.15 | 1h 50m |
| Jun 2025 | bearish choppy low vol | 1808 | +864190.01 | 0.19 | 1242 | 566 | 68.7 | -2.38 | 2h 39m |
| May 2025 | bullish trending low vol | 2544 | +2730128.58 | 1.27 | 1849 | 695 | 72.7 | -3.27 | 1h 37m |
| Apr 2025 | bullish choppy low vol | 2487 | +2295527.73 | 0.40 | 1695 | 792 | 68.2 | -3.06 | 1h 45m |
| Mar 2025 | bearish trending high vol | 2675 | +1420999.99 | 0.84 | 1890 | 785 | 70.7 | -2.59 | 1h 33m |
| Feb 2025 | bearish trending low vol | 2599 | +2491326.72 | 1.60 | 1850 | 749 | 71.2 | -1.93 | 1h 14m |
| Jan 2025 | bearish choppy low vol | 2725 | +2860514.54 | 0.60 | 1879 | 846 | 69.0 | -3.7 | 1h 30m |
| Dec 2024 | bullish trending low vol | 3431 | -1621812.50 | 0.13 | 2170 | 1261 | 63.2 | -3.94 | 0h 59m |
| Nov 2024 | bullish trending low vol | 4452 | +3081737.57 | 1.57 | 2999 | 1453 | 67.4 | -2.33 | 0h 52m |
| Oct 2024 | bullish choppy low vol | 1694 | +567692.98 | 0.34 | 1197 | 497 | 70.7 | -2.73 | 3h 07m |
| Sep 2024 | bearish choppy low vol | 2039 | +613500.00 | 0.89 | 1461 | 578 | 71.7 | -2.75 | 2h 30m |
| Aug 2024 | bearish choppy high vol | 2339 | +965127.21 | 0.80 | 1619 | 720 | 69.2 | -4.01 | 1h 50m |
| Jul 2024 | bearish trending low vol | 2315 | +1843584.59 | 0.49 | 1629 | 686 | 70.4 | -3.78 | 2h 03m |
| Jun 2024 | bearish choppy low vol | 1443 | -289640.74 | -0.53 | 958 | 485 | 66.4 | -3.86 | 3h 28m |
| May 2024 | bullish choppy high vol | 1977 | +1120094.16 | -0.01 | 1344 | 633 | 68.0 | -2.57 | 2h 30m |
| Apr 2024 | bearish choppy high vol | 2100 | -850917.73 | -0.50 | 1370 | 730 | 65.2 | -2.69 | 1h 51m |
| Mar 2024 | bullish trending high vol | 3371 | +1695389.56 | 0.33 | 2207 | 1164 | 65.5 | -2.25 | 1h 15m |
| Feb 2024 | bullish trending low vol | 2174 | +2922936.98 | 0.74 | 1523 | 651 | 70.1 | -3.75 | 2h 23m |
| Jan 2024 | bearish choppy high vol | 2275 | -802753.19 | -0.39 | 1452 | 823 | 63.8 | -4.58 | 2h 01m |
| Dec 2023 | bullish trending low vol | 3115 | +3325671.13 | 1.08 | 2140 | 975 | 68.7 | -1.46 | 1h 35m |
| Nov 2023 | bullish trending low vol | 2465 | +2474029.90 | 0.93 | 1716 | 749 | 69.6 | -1.68 | 1h 53m |
| Oct 2023 | bullish trending low vol | 1818 | +1363984.77 | 0.87 | 1261 | 557 | 69.4 | -1.71 | 3h 07m |
| Sep 2023 | bearish choppy low vol | 1218 | +476474.18 | 1.12 | 875 | 343 | 71.8 | -2.7 | 4h 43m |
| Aug 2023 | bearish choppy low vol | 1154 | -271509.05 | -0.48 | 752 | 402 | 65.2 | -2.0 | 4h 45m |
| Jul 2023 | bullish trending low vol | 1751 | +639043.26 | 0.34 | 1163 | 588 | 66.4 | -1.2 | 3h 03m |
| Jun 2023 | bullish trending low vol | 1895 | +976630.16 | 1.00 | 1329 | 566 | 70.1 | -1.18 | 2h 29m |
| May 2023 | bearish choppy low vol | 1107 | +201309.00 | -0.23 | 751 | 356 | 67.8 | -2.01 | 4h 50m |
| Apr 2023 | bullish trending low vol | 1602 | +266562.53 | 0.18 | 1083 | 519 | 67.6 | -2.71 | 3h 03m |
| Mar 2023 | bullish trending high vol | 2111 | +626961.52 | 0.53 | 1422 | 689 | 67.4 | -4.02 | 1h 57m |
| Feb 2023 | bullish trending low vol | 1858 | +78065.77 | 0.19 | 1224 | 634 | 65.9 | -1.99 | 2h 05m |
| Jan 2023 | bullish trending low vol | 2589 | +1748191.01 | 0.99 | 1744 | 845 | 67.4 | -2.12 | 1h 53m |
| Dec 2022 | bearish trending low vol | 1258 | +357535.10 | -0.22 | 826 | 432 | 65.7 | -1.12 | 4h 10m |
| Nov 2022 | bearish trending high vol | 2461 | +1310151.44 | 0.71 | 1592 | 869 | 64.7 | -1.74 | 1h 29m |
| Oct 2022 | bullish choppy low vol | 1666 | +1247404.33 | 0.44 | 1139 | 527 | 68.4 | -1.97 | 2h 53m |
| Sep 2022 | bearish choppy high vol | 2339 | +1667458.66 | 1.09 | 1657 | 682 | 70.8 | -2.82 | 1h 44m |
| Aug 2022 | bullish choppy high vol | 2238 | +1660226.48 | 0.67 | 1505 | 733 | 67.2 | -3.73 | 1h 38m |
| Jul 2022 | bullish trending high vol | 3069 | +3379769.53 | 1.63 | 2106 | 963 | 68.6 | -3.18 | 1h 05m |
| Jun 2022 | bearish trending high vol | 2958 | +626938.50 | 0.42 | 1806 | 1152 | 61.1 | -6.57 | 0h 48m |
| May 2022 | bearish trending high vol | 2945 | +1908562.06 | 1.10 | 1900 | 1045 | 64.5 | -8.92 | 0h 58m |
| Apr 2022 | bearish choppy high vol | 1682 | -187339.56 | -0.38 | 1117 | 565 | 66.4 | -5.75 | 2h 11m |
| Mar 2022 | bullish choppy high vol | 2502 | +737039.86 | 0.45 | 1700 | 802 | 67.9 | -9.37 | 1h 37m |
| Feb 2022 | bearish trending high vol | 2502 | +3679590.53 | 1.69 | 1793 | 709 | 71.7 | -7.11 | 1h 13m |
| Jan 2022 | bearish trending high vol | 2720 | +528364.56 | 0.55 | 1807 | 913 | 66.4 | -12.28 | 1h 16m |
| Dec 2021 | bearish trending high vol | 2615 | +892105.46 | 0.52 | 1724 | 891 | 65.9 | -7.37 | 1h 16m |
| Nov 2021 | bearish trending high vol | 2435 | +106800.11 | 0.16 | 1615 | 820 | 66.3 | -7.76 | 1h 29m |
| Oct 2021 | bullish trending high vol | 2678 | +1284824.41 | 0.36 | 1779 | 899 | 66.4 | -9.38 | 1h 24m |
| Sep 2021 | bearish trending high vol | 2979 | +100219.29 | 0.16 | 1870 | 1109 | 62.8 | -12.73 | 0h 58m |
| Aug 2021 | bullish trending high vol | 3327 | +1626464.60 | 0.54 | 2168 | 1159 | 65.2 | -12.63 | 0h 56m |
| Jul 2021 | bullish trending high vol | 2729 | +799043.22 | 0.40 | 1795 | 934 | 65.8 | -14.34 | 1h 05m |
| Jun 2021 | bearish trending high vol | 3085 | -490451.43 | 0.34 | 1970 | 1115 | 63.9 | -15.87 | 0h 43m |
| May 2021 | bearish trending high vol | 4417 | +5970450.88 | 1.31 | 2671 | 1746 | 60.5 | -13.53 | 0h 25m |
| Apr 2021 | bearish choppy high vol | 4586 | +2636014.00 | 0.82 | 2881 | 1705 | 62.8 | -19.74 | 0h 35m |
| Mar 2021 | bullish choppy high vol | 3484 | +1792379.41 | 0.67 | 2290 | 1194 | 65.7 | -34.3 | 0h 54m |
| Feb 2021 | bullish trending high vol | 4306 | +882843.79 | 1.27 | 2596 | 1710 | 60.3 | -53.85 | 0h 27m |
| Jan 2021 | bullish trending high vol | 4554 | +7793.30 | 1.21 | 2723 | 1831 | 59.8 | -61.69 | 0h 28m |
Yearly breakdown
| Year | Trades | Profit % | Avg % | Win | Loss | Win % | DD % | Avg dur |
|---|---|---|---|---|---|---|---|---|
| 2026 | 5 | -8957.03 | -2.96 | 0 | 5 | 0.0 | -5.92 | 1h 15m |
| 2025 | 26866 | +12120688.22 | 0.56 | 18609 | 8257 | 69.3 | -6.47 | 1h 55m |
| 2024 | 29610 | +9244938.89 | 0.43 | 19929 | 9681 | 67.3 | -4.58 | 1h 50m |
| 2023 | 22683 | +11905414.18 | 0.64 | 15460 | 7223 | 68.2 | -4.02 | 2h 38m |
| 2022 | 28340 | +16915701.49 | 0.77 | 18948 | 9392 | 66.9 | -12.28 | 1h 33m |
| 2021 | 41195 | +15608487.04 | 0.73 | 26082 | 15113 | 63.3 | -61.69 | 0h 49m |
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 · 3 thing(s) worth reviewing before trusting the numbers
| Line | Pattern | Detail | |
|---|---|---|---|
| 137 | review | repaint_indicator | 'pivots_points' repaints -- a pivot is only identifiable once later bars have printed. Fine if you shift the result forward by `order`, or if it builds ML training labels; a leak if the raw value is traded at the bar it marks. |
| 79 | review | startup_candles_too_small | startup_candle_count is 30, but EMA(timeperiod=21) needing 3x warmup needs at least 63 candles -- so the first 33+ 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 |
| 69 | 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 logsno lookahead bias detected
20 signal(s) analysed · 0 biased entries · 0 biased exits
ran by Ron · took 190.9s