Freqtrade Strategy Not Running, Running Wrong, or Going Haywire? These Parameters Might Not Be Confi
This article was produced by the Quantitative Trading Lab at https://www.itrade.icu. Visit for more benefits. Before writing and running a Freqtrade strategy, there are several basic parameters you must understand. These parameters control the strategyβs data timeframe, preloading behavior, concurrent trades, safety checks, etc., and directly affect execution and stability.
β±οΈ timeframe β Main Timeframe
timeframe β Main TimeframeSets the K-line interval used by the strategy. For example, '5m' means using 5-minute candles as the basis for signals and indicators.
timeframe = '5m' # Each candle represents 5 minutesβ οΈ Notes:
Common values:
1m,5m,15m,1h,4h,1dDetermines the frequency of calculations and signal resolution
Backtesting or live data must match this timeframe
π startup_candle_count β Initial Loaded Candles
startup_candle_count β Initial Loaded CandlesSpecifies the minimum number of candles to preload when the strategy starts. Ensures indicators can be calculated fully and avoids distorted signals in the first few candles.
startup_candle_count = 50 # Preload 50 candles at startupβ οΈ Notes:
Usually set to the largest indicator period Γ 3~5
For example, RSI(14) typically requires at least 50 candles
π max_open_trades β Maximum Open Trades
max_open_trades β Maximum Open TradesControls how many pairs the strategy can hold simultaneously. Helps prevent over-diversification, liquidation, or uncontrolled leverage.
β οΈ Notes:
Set to 1 to test single-pair strategy performance
Multi-pair strategies need careful capital allocation and risk management
π process_only_new_candles β Execute Logic Only on New Candle
process_only_new_candles β Execute Logic Only on New CandleControls whether the strategy logic triggers only when a candle closes. Default is True, which prevents repeated execution and improves stability.
True
Trigger only at candle close
False
Could trigger every second (high-frequency fluctuations)
π§± disable_dataframe_checks β Disable DataFrame Checks
disable_dataframe_checks β Disable DataFrame ChecksDisables pandas DataFrame consistency checks to improve performance. Not recommended during early development.
β οΈ Notes:
Disabling may hide hidden indicator errors
Suitable for performance optimization stages
π can_short β Allow Shorting (Contracts Only)
can_short β Allow Shorting (Contracts Only)Controls whether the strategy can open short positions. Only applicable to exchanges supporting contract trading, not spot.
β οΈ Notes:
If enabled, also configure
minimal_roi,stoploss,populate_exit_trendfor short logicOnly valid in contract mode; using spot will cause errors
β
Summary Table
timeframe
Main strategy candle interval
'5m'
startup_candle_count
Number of candles to load at startup
50+
max_open_trades
Maximum concurrent trades
3~5
process_only_new_candles
Trigger logic only at candle close
True
disable_dataframe_checks
Disable DataFrame checks
False
can_short
Allow short positions (contracts)
False
Last updated