kumo_breakout
♡
Basics
mode: spot
timeframe: 1d
interface version: 3
Settings
stoploss: -0.25
has minimal roi
process only new candles
startup candle count: 15
Indicators
Ichimoku
pandas_ta
talib
Concepts
breakout
trend_following
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 | # ============================================================================================== # Kumo Breakout strategy # # Made by: # ______ _ _ _____ _ ______ _ # | _ \ | | | | / __ \ | | | _ \ | | # | | | | _ _ | |_ ___ | |__ | / \/ _ __ _ _ _ __ | |_ ___ | | | | __ _ __| | # | | | || | | || __|/ __|| '_ \ | | | '__|| | | || '_ \ | __|/ _ \ | | | |/ _` | / _` | # | |/ / | |_| || |_| (__ | | | || \__/\| | | |_| || |_) || |_| (_) || |/ /| (_| || (_| | # |___/ \__,_| \__|\___||_| |_| \____/|_| \__, || .__/ \__|\___/ |___/ \__,_| \__,_| # __/ || | # |___/ |_| # Version : 1.0 Final # Date : 2022-10-15 # Remarks : # As published, explained and tested in my Youtube video's: # - https://youtu.be/XA7Za-mtVBc # - https://youtu.be/KBAGa01TUkA # ============================================================================================== # --- Do not remove these libs --- import numpy as np # noqa import pandas as pd # noqa from pandas import DataFrame # noqa from datetime import datetime # noqa from typing import Optional, Union # noqa 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 class kumo_breakout(IStrategy): INTERFACE_VERSION = 3 timeframe = "1d" # Can this strategy go short? can_short: bool = False minimal_roi = {"0": 1.0} stoploss = -0.25 trailing_stop = False process_only_new_candles = True 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 = 15 # Optional order type mapping. order_types = { "entry": "limit", "exit": "limit", "stoploss": "market", "stoploss_on_exchange": False, } # Optional order time in force. order_time_in_force = {"entry": "gtc", "exit": "gtc"} def populate_indicators(self, dataframe: DataFrame, metadata: dict) -> DataFrame: # Crypto trading bot strategy indicators # Variables TS = 9 KS = 26 SS = 52 CS = 26 OS = 0 # Ichimoku indicator dataframe["tenkan"] = pta.ichimoku( high=dataframe["high"], low=dataframe["low"], close=dataframe["close"], tenkan=TS, kijun=KS, senkou=SS, offset=OS, )[0][f"ITS_{TS}"] dataframe["kijun"] = pta.ichimoku( high=dataframe["high"], low=dataframe["low"], close=dataframe["close"], tenkan=TS, kijun=KS, senkou=SS, offset=OS, )[0][f"IKS_{KS}"] dataframe["senkou_a"] = pta.ichimoku( high=dataframe["high"], low=dataframe["low"], close=dataframe["close"], tenkan=TS, kijun=KS, senkou=SS, offset=OS, )[0][f"ISA_{TS}"] dataframe["senkou_b"] = pta.ichimoku( high=dataframe["high"], low=dataframe["low"], close=dataframe["close"], tenkan=TS, kijun=KS, senkou=SS, offset=OS, )[0][f"ISB_{KS}"] dataframe["chikou"] = pta.ichimoku( high=dataframe["high"], low=dataframe["low"], close=dataframe["close"], tenkan=TS, kijun=KS, senkou=SS, offset=OS, )[0][f"ICS_{KS}"] # No LONG entries when price is below Senkou A, Senkou B and Kijun sen dataframe["long_signal"] = ( (dataframe["close"] > dataframe["senkou_a"]) & (dataframe["close"] > dataframe["senkou_b"]) & (dataframe["close"] > dataframe["kijun"]) ) # No SHORT entries when price is above Senkou A, Senkou B and Kijun sen dataframe["short_signal"] = ( (dataframe["close"] < dataframe["senkou_a"]) & (dataframe["close"] < dataframe["senkou_b"]) & (dataframe["close"] < dataframe["kijun"]) ) # Exit indicators dataframe["long_exit"] = (dataframe["close"] < dataframe["kijun"]) & ( dataframe["long_signal"] == True ) dataframe["short_exit"] = (dataframe["close"] > dataframe["kijun"]) & ( dataframe["short_signal"] == True ) # Uncomment this if you use this strategy for real/dummy trading # print(dataframe) return dataframe def populate_entry_trend(self, dataframe: DataFrame, metadata: dict) -> DataFrame: dataframe.loc[ ((dataframe["long_signal"] == True)), ["enter_long", "enter_tag"] ] = (1, "kumo_breakout_long") dataframe.loc[ ((dataframe["short_signal"] == True)), ["enter_short", "enter_tag"] ] = (1, "kumo_breakout_short") return dataframe def populate_exit_trend(self, dataframe: DataFrame, metadata: dict) -> DataFrame: dataframe.loc[((dataframe["long_exit"] == True)), ["exit_long", "exit_tag"]] = ( 1, "closeprice_below_ks", ) dataframe.loc[ ((dataframe["short_exit"] == True)), ["exit_short", "exit_tag"] ] = (1, "closeprice_above_ks") return dataframe |
Strategy League — fixed backtest that feeds the ranking
The fixed-params backtest (33 pairs · 20210101-20260101) — the only run that feeds the Strategy League ranking.
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
Static source analysis — instant, does not run the strategy. Flags future-data leaks, backtest-realism problems, and indicators worth a second look.
Lookahead analysis
freqtrade lookahead-analysis: detects strategies peeking at future candles.