slope_is_dope
♡
Basics
mode: spot
timeframe: 1h
interface version: 3
Settings
stoploss: -0.5
has minimal roi
trailing
process only new candles
startup candle count: 30
Indicators
ADX
RSI
SMA
scipy
ta
talib
Concepts
trailing
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 | # pragma pylint: disable=missing-docstring, invalid-name, pointless-string-statement # flake8: noqa: F401 # isort: skip_file # --- Do not remove these libs --- import numpy as np # noqa import pandas as pd # noqa from pandas import DataFrame from typing import Optional, Union import ta as clean_ta from freqtrade.strategy import (BooleanParameter, CategoricalParameter, DecimalParameter, IStrategy, IntParameter) # -------------------------------- # Add your lib to import here import talib.abstract as ta import freqtrade.vendor.qtpylib.indicators as qtpylib from scipy.spatial.distance import cosine # This class is a sample. Feel free to customize it. class slope_is_dope(IStrategy): INTERFACE_VERSION = 3 can_short: bool = False minimal_roi = { "0": 0.6, "5000" : 0.5, } stoploss = -0.5 # Trailing stoploss trailing_stop = True trailing_only_offset_is_reached = True trailing_stop_positive = 0.002 trailing_stop_positive_offset = 0.261 timeframe = '1h' # Run "populate_indicators()" only for new candle. process_only_new_candles = True # 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': 'limit', 'exit': 'limit', 'stoploss': 'market', 'stoploss_on_exchange': False } # Optional order time in force. order_time_in_force = { 'entry': 'GTC', 'exit': 'GTC' } plot_config = { 'main_plot': { 'fastMA': {"color": "red"}, 'slowMA': {'color': 'blue'}, }, 'subplots': { "rsi": {'rsi': {'color': 'blue'}}, "fast_slope": {'fast_slope': {'color': 'red'}, "slow_slope": {"color": "blue"}}, }, } def informative_pairs(self): return [] def populate_indicators(self, dataframe: DataFrame, metadata: dict) -> DataFrame: dataframe['rsi'] = ta.RSI(dataframe, timeperiod=7) dataframe['marketMA'] = ta.SMA(dataframe, timeperiod=200) dataframe['fastMA'] = ta.SMA(dataframe, timeperiod=21) dataframe['slowMA'] = ta.SMA(dataframe, timeperiod=50) dataframe['entryMA'] = ta.SMA(dataframe, timeperiod=3) dataframe['sy1'] = dataframe['slowMA'].shift(+11) dataframe['sy2'] = dataframe['slowMA'].shift(+1) sx1 = 1 sx2 = 11 dataframe['sy'] = dataframe['sy2'] - dataframe['sy1'] dataframe['sx'] = sx2 - sx1 dataframe['slow_slope'] = dataframe['sy']/dataframe['sx'] dataframe['fy1'] = dataframe['fastMA'].shift(+11) dataframe['fy2'] = dataframe['fastMA'].shift(+1) fx1 = 1 fx2 = 11 dataframe['fy'] = dataframe['fy2'] - dataframe['fy1'] dataframe['fx'] = fx2 - fx1 dataframe['fast_slope'] = dataframe['fy']/dataframe['fx'] dataframe['last_lowest'] = dataframe['low'].rolling(10).min().shift(1) dataframe['TRIX'] = clean_ta.trend.ema_indicator(clean_ta.trend.ema_indicator(clean_ta.trend.ema_indicator(close=dataframe['close'], window=15), window=15), window=15) dataframe['TRIX_PCT'] = dataframe["TRIX"].pct_change()*100 dataframe['TRIX_SIGNAL'] = clean_ta.trend.sma_indicator(dataframe['TRIX_PCT'], 22) dataframe['TRIX_HISTO'] = dataframe['TRIX_PCT'] - dataframe['TRIX_SIGNAL'] #ADX ADX = clean_ta.trend.ADXIndicator(dataframe['high'], dataframe['low'], dataframe['close'], window=20) dataframe['ADX'] = ADX.adx() dataframe['ADX_NEG'] = ADX.adx_neg() dataframe['ADX_POS'] = ADX.adx_pos() dataframe['ADXV'] = dataframe['ADX_POS'] - dataframe['ADX_NEG'] dataframe['EMA45']=clean_ta.trend.ema_indicator(close=dataframe['close'], window=45) return dataframe def populate_entry_trend(self, dataframe: DataFrame, metadata: dict) -> DataFrame: dataframe.loc[ ( ( (dataframe['TRIX_HISTO'] >= -0.58) & (dataframe['ADXV'] > 0.4) & (dataframe['close']*0.99 > dataframe['marketMA']) & (dataframe['fast_slope'] > 0) & (dataframe['slow_slope'] > 0) & (dataframe['EMA45'] < dataframe['close']*0.995) & (dataframe['close']*0.9997 > dataframe['close'].shift(+11)) & (dataframe['rsi'] > 55) & (dataframe['fastMA']*1.5 > dataframe['slowMA']) ) ), 'enter_long'] = 1 return dataframe def populate_exit_trend(self, dataframe: DataFrame, metadata: dict) -> DataFrame: dataframe.loc[ ( (dataframe['fastMA'] < dataframe['slowMA']*1.005) | (dataframe['close']*1.004 < dataframe['last_lowest']) & (dataframe['TRIX_HISTO'] >= -0.7) ), 'exit_long'] = 1 return dataframe |
Strategy League — fixed backtest that feeds the ranking
Failed — strategy imports unavailable module: ta
figuration.configuration - INFO - Using user-data directory: /freqle/user_data ... 2026-07-26 21:35:49,781 - freqtrade.configuration.configuration - INFO - Using data directory: /freqle/user_data/data/binance ... 2026-07-26 21:35:49,781 - freqtrade.configuration.configuration - INFO - Parameter --export detected: none ... 2026-07-26 21:35:49,781 - freqtrade.configuration.configuration - INFO - Parameter --cache=none detected ... 2026-07-26 21:35:49,782 - freqtrade.configuration.configuration - INFO - Filter trades by timerange: 20210101-20260101 2026-07-26 21:35:49,783 - freqtrade.exchange.check_exchange - INFO - Checking exchange... 2026-07-26 21:35:49,789 - freqtrade.exchange.check_exchange - INFO - Exchange "binance" is officially supported by the Freqtrade development team. 2026-07-26 21:35:49,790 - freqtrade.configuration.configuration - INFO - Using pairlist from configuration. 2026-07-26 21:35:49,790 - freqtrade.configuration.config_validation - INFO - Validating configuration ... 2026-07-26 21:35:49,792 - freqtrade.exchange.exchange - INFO - Instance is running with dry_run enabled 2026-07-26 21:35:49,792 - freqtrade.exchange.exchange - INFO - Using CCXT 4.5.61 2026-07-26 21:35:49,806 - freqtrade.exchange.exchange - INFO - Using Exchange "Binance" 2026-07-26 21:35:49,997 - freqtrade.resolvers.exchange_resolver - INFO - Using resolved exchange 'Binance'... 2026-07-26 21:35:49,998 - freqtrade.resolvers.iresolver - WARNING - Could not import /freqle/user_data/strategies/slope_is_dope.py due to 'No module named 'ta'' 2026-07-26 21:35:50,000 - freqtrade.resolvers.iresolver - WARNING - Could not import /freqle/user_data/strategies/slope_is_dope.py due to 'No module named 'ta'' 2026-07-26 21:35:50,002 - freqtrade.resolvers.iresolver - WARNING - Could not import /freqle/user_data/strategies/slope_is_dope.py due to 'No module named 'ta'' ft_backtest wrapper failed: Impossible to load Strategy 'slope_is_dope'. This class does not exist or contains Python code errors.
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.