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 | # --- Do not remove these libs --- from freqtrade.strategy.interface import IStrategy from pandas import DataFrame import talib.abstract as ta import freqtrade.vendor.qtpylib.indicators as qtpylib import pandas as pd # noqa pd.options.mode.chained_assignment = None # default='warn' import technical.indicators as ftt from functools import reduce from datetime import datetime, timedelta from freqtrade.strategy import merge_informative_pair import numpy as np from freqtrade.strategy import stoploss_from_open class ichiV1(IStrategy): # NOTE: settings as of the 25th july 21 # Buy hyperspace params: buy_params = { "buy_trend_above_senkou_level": 1, "buy_trend_bullish_level": 6, "buy_fan_magnitude_shift_value": 3, "buy_min_fan_magnitude_gain": 1.002 # NOTE: Good value (Win% ~70%), alot of trades #"buy_min_fan_magnitude_gain": 1.008 # NOTE: Very save value (Win% ~90%), only the biggest moves 1.008, } # Exit hyperspace params: # NOTE: was 15m but kept bailing out in dryrun exit_params = { "exit_trend_indicator": "trend_close_2h", } # ROI table: minimal_roi = { "0": 0.059, "10": 0.037, "41": 0.012, "114": 0 } # Stoploss: stoploss = -0.275 # Optimal timeframe for the strategy timeframe = '5m' startup_candle_count = 96 process_only_new_candles = False trailing_stop = False #trailing_stop_positive = 0.002 #trailing_stop_positive_offset = 0.025 #trailing_only_offset_is_reached = True use_exit_signal = True exit_profit_only = False ignore_roi_if_entry_signal = False plot_config = { 'main_plot': { # fill area between senkou_a and senkou_b 'senkou_a': { 'color': 'green', #optional 'fill_to': 'senkou_b', 'fill_label': 'Ichimoku Cloud', #optional 'fill_color': 'rgba(255,76,46,0.2)', #optional }, # plot senkou_b, too. Not only the area to it. 'senkou_b': {}, 'trend_close_5m': {'color': '#FF5733'}, 'trend_close_15m': {'color': '#FF8333'}, 'trend_close_30m': {'color': '#FFB533'}, 'trend_close_1h': {'color': '#FFE633'}, 'trend_close_2h': {'color': '#E3FF33'}, 'trend_close_4h': {'color': '#C4FF33'}, 'trend_close_6h': {'color': '#61FF33'}, 'trend_close_8h': {'color': '#33FF7D'} }, 'subplots': { 'fan_magnitude': { 'fan_magnitude': {} }, 'fan_magnitude_gain': { 'fan_magnitude_gain': {} } } } def populate_indicators(self, dataframe: DataFrame, metadata: dict) -> DataFrame: heikinashi = qtpylib.heikinashi(dataframe) dataframe['open'] = heikinashi['open'] #dataframe['close'] = heikinashi['close'] dataframe['high'] = heikinashi['high'] dataframe['low'] = heikinashi['low'] dataframe['trend_close_5m'] = dataframe['close'] dataframe['trend_close_15m'] = ta.EMA(dataframe['close'], timeperiod=3) dataframe['trend_close_30m'] = ta.EMA(dataframe['close'], timeperiod=6) dataframe['trend_close_1h'] = ta.EMA(dataframe['close'], timeperiod=12) dataframe['trend_close_2h'] = ta.EMA(dataframe['close'], timeperiod=24) dataframe['trend_close_4h'] = ta.EMA(dataframe['close'], timeperiod=48) dataframe['trend_close_6h'] = ta.EMA(dataframe['close'], timeperiod=72) dataframe['trend_close_8h'] = ta.EMA(dataframe['close'], timeperiod=96) dataframe['trend_open_5m'] = dataframe['open'] dataframe['trend_open_15m'] = ta.EMA(dataframe['open'], timeperiod=3) dataframe['trend_open_30m'] = ta.EMA(dataframe['open'], timeperiod=6) dataframe['trend_open_1h'] = ta.EMA(dataframe['open'], timeperiod=12) dataframe['trend_open_2h'] = ta.EMA(dataframe['open'], timeperiod=24) dataframe['trend_open_4h'] = ta.EMA(dataframe['open'], timeperiod=48) dataframe['trend_open_6h'] = ta.EMA(dataframe['open'], timeperiod=72) dataframe['trend_open_8h'] = ta.EMA(dataframe['open'], timeperiod=96) dataframe['fan_magnitude'] = (dataframe['trend_close_1h'] / dataframe['trend_close_8h']) dataframe['fan_magnitude_gain'] = dataframe['fan_magnitude'] / dataframe['fan_magnitude'].shift(1) ichimoku = ftt.ichimoku(dataframe, conversion_line_period=20, base_line_periods=60, laggin_span=120, displacement=30) dataframe['chikou_span'] = ichimoku['chikou_span'] dataframe['tenkan_sen'] = ichimoku['tenkan_sen'] dataframe['kijun_sen'] = ichimoku['kijun_sen'] dataframe['senkou_a'] = ichimoku['senkou_span_a'] dataframe['senkou_b'] = ichimoku['senkou_span_b'] dataframe['leading_senkou_span_a'] = ichimoku['leading_senkou_span_a'] dataframe['leading_senkou_span_b'] = ichimoku['leading_senkou_span_b'] dataframe['cloud_green'] = ichimoku['cloud_green'] dataframe['cloud_red'] = ichimoku['cloud_red'] dataframe['atr'] = ta.ATR(dataframe) return dataframe def populate_entry_trend(self, dataframe: DataFrame, metadata: dict) -> DataFrame: conditions = [] # Trending market if self.buy_params['buy_trend_above_senkou_level'] >= 1: conditions.append(dataframe['trend_close_5m'] > dataframe['senkou_a']) conditions.append(dataframe['trend_close_5m'] > dataframe['senkou_b']) if self.buy_params['buy_trend_above_senkou_level'] >= 2: conditions.append(dataframe['trend_close_15m'] > dataframe['senkou_a']) conditions.append(dataframe['trend_close_15m'] > dataframe['senkou_b']) if self.buy_params['buy_trend_above_senkou_level'] >= 3: conditions.append(dataframe['trend_close_30m'] > dataframe['senkou_a']) conditions.append(dataframe['trend_close_30m'] > dataframe['senkou_b']) if self.buy_params['buy_trend_above_senkou_level'] >= 4: conditions.append(dataframe['trend_close_1h'] > dataframe['senkou_a']) conditions.append(dataframe['trend_close_1h'] > dataframe['senkou_b']) if self.buy_params['buy_trend_above_senkou_level'] >= 5: conditions.append(dataframe['trend_close_2h'] > dataframe['senkou_a']) conditions.append(dataframe['trend_close_2h'] > dataframe['senkou_b']) if self.buy_params['buy_trend_above_senkou_level'] >= 6: conditions.append(dataframe['trend_close_4h'] > dataframe['senkou_a']) conditions.append(dataframe['trend_close_4h'] > dataframe['senkou_b']) if self.buy_params['buy_trend_above_senkou_level'] >= 7: conditions.append(dataframe['trend_close_6h'] > dataframe['senkou_a']) conditions.append(dataframe['trend_close_6h'] > dataframe['senkou_b']) if self.buy_params['buy_trend_above_senkou_level'] >= 8: conditions.append(dataframe['trend_close_8h'] > dataframe['senkou_a']) conditions.append(dataframe['trend_close_8h'] > dataframe['senkou_b']) # Trends bullish if self.buy_params['buy_trend_bullish_level'] >= 1: conditions.append(dataframe['trend_close_5m'] > dataframe['trend_open_5m']) if self.buy_params['buy_trend_bullish_level'] >= 2: conditions.append(dataframe['trend_close_15m'] > dataframe['trend_open_15m']) if self.buy_params['buy_trend_bullish_level'] >= 3: conditions.append(dataframe['trend_close_30m'] > dataframe['trend_open_30m']) if self.buy_params['buy_trend_bullish_level'] >= 4: conditions.append(dataframe['trend_close_1h'] > dataframe['trend_open_1h']) if self.buy_params['buy_trend_bullish_level'] >= 5: conditions.append(dataframe['trend_close_2h'] > dataframe['trend_open_2h']) if self.buy_params['buy_trend_bullish_level'] >= 6: conditions.append(dataframe['trend_close_4h'] > dataframe['trend_open_4h']) if self.buy_params['buy_trend_bullish_level'] >= 7: conditions.append(dataframe['trend_close_6h'] > dataframe['trend_open_6h']) if self.buy_params['buy_trend_bullish_level'] >= 8: conditions.append(dataframe['trend_close_8h'] > dataframe['trend_open_8h']) # Trends magnitude conditions.append(dataframe['fan_magnitude_gain'] >= self.buy_params['buy_min_fan_magnitude_gain']) conditions.append(dataframe['fan_magnitude'] > 1) for x in range(self.buy_params['buy_fan_magnitude_shift_value']): conditions.append(dataframe['fan_magnitude'].shift(x+1) < dataframe['fan_magnitude']) 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(qtpylib.crossed_below(dataframe['trend_close_5m'], dataframe[self.exit_params['exit_trend_indicator']])) 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 1244.3s
- freqtrade's lookahead-analysis confirmed this strategy uses future candles — the backtest numbers can't be trusted
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 | 291 | +29.41 | 1.01 | 213 | 78 | 73.2 | -0.02 | 1h 04m |
| Nov 2025 | bearish trending high vol | 725 | +88.27 | 1.22 | 518 | 207 | 71.4 | -0.03 | 0h 52m |
| Oct 2025 | bearish trending low vol | 443 | +53.72 | 1.21 | 325 | 118 | 73.4 | -0.03 | 0h 57m |
| Sep 2025 | bullish choppy low vol | 191 | +19.87 | 1.04 | 126 | 65 | 66.0 | -0.01 | 0h 55m |
| Aug 2025 | bullish choppy low vol | 348 | +29.81 | 0.86 | 242 | 106 | 69.5 | -0.02 | 0h 58m |
| Jul 2025 | bullish choppy low vol | 531 | +56.69 | 1.07 | 380 | 151 | 71.6 | -0.03 | 0h 57m |
| Jun 2025 | bearish choppy low vol | 326 | +39.25 | 1.20 | 249 | 77 | 76.4 | -0.02 | 0h 59m |
| May 2025 | bullish trending low vol | 357 | +25.36 | 0.71 | 230 | 127 | 64.4 | -0.04 | 1h 02m |
| Apr 2025 | bullish choppy low vol | 474 | +42.04 | 0.89 | 334 | 140 | 70.5 | -0.06 | 1h 01m |
| Mar 2025 | bearish trending high vol | 541 | +52.46 | 0.97 | 369 | 172 | 68.2 | -0.04 | 0h 55m |
| Feb 2025 | bearish trending low vol | 547 | +42.58 | 0.78 | 369 | 178 | 67.5 | -0.04 | 1h 03m |
| Jan 2025 | bearish choppy low vol | 649 | +68.70 | 1.06 | 465 | 184 | 71.6 | -0.03 | 0h 56m |
| Dec 2024 | bullish trending low vol | 1354 | +151.49 | 1.12 | 945 | 409 | 69.8 | -0.03 | 0h 52m |
| Nov 2024 | bullish trending low vol | 1687 | +204.92 | 1.21 | 1154 | 533 | 68.4 | -0.05 | 0h 48m |
| Oct 2024 | bullish choppy low vol | 270 | +19.77 | 0.73 | 179 | 91 | 66.3 | -0.02 | 1h 04m |
| Sep 2024 | bearish choppy low vol | 351 | +34.29 | 0.98 | 253 | 98 | 72.1 | -0.01 | 1h 01m |
| Aug 2024 | bearish choppy high vol | 530 | +55.08 | 1.04 | 395 | 135 | 74.5 | -0.03 | 0h 56m |
| Jul 2024 | bearish trending low vol | 304 | +24.16 | 0.79 | 212 | 92 | 69.7 | -0.02 | 1h 05m |
| Jun 2024 | bearish choppy low vol | 247 | +21.00 | 0.85 | 179 | 68 | 72.5 | -0.02 | 1h 02m |
| May 2024 | bullish choppy high vol | 352 | +32.73 | 0.93 | 239 | 113 | 67.9 | -0.02 | 1h 03m |
| Apr 2024 | bearish choppy high vol | 482 | +51.94 | 1.08 | 337 | 145 | 69.9 | -0.02 | 0h 56m |
| Mar 2024 | bullish trending high vol | 1089 | +121.57 | 1.12 | 761 | 328 | 69.9 | -0.06 | 0h 53m |
| Feb 2024 | bullish trending low vol | 546 | +64.71 | 1.18 | 391 | 155 | 71.6 | -0.05 | 0h 55m |
| Jan 2024 | bearish choppy high vol | 735 | +79.18 | 1.08 | 504 | 231 | 68.6 | -0.04 | 0h 53m |
| Dec 2023 | bullish trending low vol | 1088 | +118.46 | 1.09 | 759 | 329 | 69.8 | -0.04 | 0h 53m |
| Nov 2023 | bullish trending low vol | 710 | +72.86 | 1.03 | 480 | 230 | 67.6 | -0.04 | 0h 56m |
| Oct 2023 | bullish trending low vol | 300 | +24.57 | 0.82 | 194 | 106 | 64.7 | -0.03 | 1h 05m |
| Sep 2023 | bearish choppy low vol | 196 | +16.70 | 0.85 | 124 | 72 | 63.3 | -0.02 | 1h 06m |
| Aug 2023 | bearish choppy low vol | 234 | +32.91 | 1.41 | 168 | 66 | 71.8 | -0.02 | 0h 52m |
| Jul 2023 | bullish trending low vol | 471 | +69.51 | 1.48 | 342 | 129 | 72.6 | -0.05 | 0h 51m |
| Jun 2023 | bullish trending low vol | 466 | +66.36 | 1.42 | 350 | 116 | 75.1 | -0.03 | 0h 53m |
| May 2023 | bearish choppy low vol | 155 | +15.58 | 1.00 | 118 | 37 | 76.1 | -0.01 | 1h 02m |
| Apr 2023 | bullish trending low vol | 317 | +34.53 | 1.09 | 220 | 97 | 69.4 | -0.02 | 0h 59m |
| Mar 2023 | bullish trending high vol | 565 | +61.37 | 1.09 | 383 | 182 | 67.8 | -0.03 | 0h 54m |
| Feb 2023 | bullish trending low vol | 570 | +59.70 | 1.05 | 386 | 184 | 67.7 | -0.04 | 0h 56m |
| Jan 2023 | bullish trending low vol | 866 | +119.80 | 1.38 | 620 | 246 | 71.6 | -0.04 | 0h 50m |
| Dec 2022 | bearish trending low vol | 139 | +11.67 | 0.84 | 93 | 46 | 66.9 | -0.02 | 1h 16m |
| Nov 2022 | bearish trending high vol | 818 | +94.64 | 1.16 | 547 | 271 | 66.9 | -0.11 | 0h 51m |
| Oct 2022 | bullish choppy low vol | 358 | +41.27 | 1.15 | 262 | 96 | 73.2 | -0.04 | 0h 59m |
| Sep 2022 | bearish choppy high vol | 538 | +51.78 | 0.96 | 356 | 182 | 66.2 | -0.03 | 0h 58m |
| Aug 2022 | bullish choppy high vol | 615 | +55.18 | 0.90 | 389 | 226 | 63.3 | -0.05 | 0h 58m |
| Jul 2022 | bearish trending high vol | 1031 | +124.81 | 1.21 | 721 | 310 | 69.9 | -0.05 | 0h 52m |
| Jun 2022 | bearish trending high vol | 1184 | +150.06 | 1.27 | 810 | 374 | 68.4 | -0.06 | 0h 49m |
| May 2022 | bearish trending high vol | 1123 | +110.41 | 0.98 | 744 | 379 | 66.3 | -0.14 | 0h 52m |
| Apr 2022 | bearish choppy high vol | 369 | +34.50 | 0.94 | 247 | 122 | 66.9 | -0.04 | 0h 56m |
| Mar 2022 | bullish choppy high vol | 616 | +62.39 | 1.01 | 413 | 203 | 67.0 | -0.03 | 0h 56m |
| Feb 2022 | bearish trending high vol | 677 | +77.05 | 1.14 | 470 | 207 | 69.4 | -0.06 | 0h 57m |
| Jan 2022 | bearish trending high vol | 756 | +61.25 | 0.81 | 505 | 251 | 66.8 | -0.08 | 0h 58m |
| Dec 2021 | bearish trending high vol | 795 | +73.69 | 0.93 | 528 | 267 | 66.4 | -0.13 | 0h 56m |
| Nov 2021 | bullish trending high vol | 715 | +66.27 | 0.93 | 487 | 228 | 68.1 | -0.06 | 0h 57m |
| Oct 2021 | bullish trending high vol | 838 | +95.10 | 1.14 | 575 | 263 | 68.6 | -0.04 | 0h 55m |
| Sep 2021 | bearish trending high vol | 1332 | +159.73 | 1.20 | 922 | 410 | 69.2 | -0.12 | 0h 49m |
| Aug 2021 | bullish trending high vol | 1193 | +148.65 | 1.25 | 857 | 336 | 71.8 | -0.07 | 0h 50m |
| Jul 2021 | bearish trending high vol | 894 | +84.42 | 0.94 | 611 | 283 | 68.3 | -0.12 | 0h 58m |
| Jun 2021 | bearish trending high vol | 1164 | +122.41 | 1.05 | 801 | 363 | 68.8 | -0.1 | 0h 54m |
| May 2021 | bearish trending high vol | 2500 | +325.34 | 1.30 | 1773 | 727 | 70.9 | -0.25 | 0h 43m |
| Apr 2021 | bearish choppy high vol | 2121 | +277.78 | 1.31 | 1500 | 621 | 70.7 | -0.23 | 0h 45m |
| Mar 2021 | bullish choppy high vol | 1383 | +161.07 | 1.17 | 943 | 440 | 68.2 | -0.26 | 0h 49m |
| Feb 2021 | bullish trending high vol | 2587 | +353.50 | 1.37 | 1816 | 771 | 70.2 | -0.39 | 0h 44m |
| Jan 2021 | bullish trending high vol | 3228 | +476.58 | 1.48 | 2286 | 942 | 70.8 | -2.86 | 0h 43m |
Yearly breakdown
| Year | Trades | Profit % | Avg % | Win | Loss | Win % | DD % | Avg dur |
|---|---|---|---|---|---|---|---|---|
| 2025 | 5423 | +548.16 | 1.01 | 3820 | 1603 | 70.4 | -0.06 | 0h 58m |
| 2024 | 7947 | +860.84 | 1.08 | 5549 | 2398 | 69.8 | -0.06 | 0h 54m |
| 2023 | 5938 | +692.35 | 1.17 | 4144 | 1794 | 69.8 | -0.05 | 0h 55m |
| 2022 | 8224 | +875.01 | 1.06 | 5557 | 2667 | 67.6 | -0.14 | 0h 54m |
| 2021 | 18750 | +2344.54 | 1.25 | 13099 | 5651 | 69.9 | -2.86 | 0h 48m |
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, but 3 backtest-realism warning(s) — results may not reflect real trading · 4 to review
⚠️ Reading the code found no leak, but Lookahead analysis — which actually runs the strategy on truncated data and compares the signals — did. Trust that one: static analysis can't see a leak that only appears at runtime, which is why this strategy isn't ranked.
| Line | Pattern | Detail | |
|---|---|---|---|
| 93 | realism | ohlc_overwrite | overwrites the 'open' candle column with Heikin-Ashi values -- freqtrade fills at open and checks stop/ROI against high/low, so the backtest uses prices that never traded |
| 95 | realism | ohlc_overwrite | overwrites the 'high' candle column with Heikin-Ashi values -- freqtrade fills at open and checks stop/ROI against high/low, so the backtest uses prices that never traded |
| 96 | realism | ohlc_overwrite | overwrites the 'low' candle column with Heikin-Ashi values -- freqtrade fills at open and checks stop/ROI against high/low, so the backtest uses prices that never traded |
| 120 | review | repaint_indicator | 'chikou_span' is Ichimoku's lagging span -- close shifted 26 bars into the past, so reading it at this bar reveals where price went 26 bars later |
| 120 | |||
| 48 | review | startup_candles_too_small | startup_candle_count is 96, but EMA(timeperiod=96) needing 3x warmup needs at least 288 candles -- so the first 192+ 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 |
| 49 | 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 logsLOOKAHEAD BIAS DETECTED
20 signal(s) analysed · 7 biased entries · 0 biased exits
🔮 Where these flagged columns appear in the code — click a row to jump to that line (heuristic: name match, so it may not be the exact offending line):
| Line | Flagged column |
|---|---|
| 120 | chikou_span |
ran by Ron · took 83.9s