Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

freqtrade

БесплатноБез исполняемых скриптовНе проверен

Freqtrade is a free, open-source crypto trading bot written in Python: you write a strategy class, download exchange candles, backtest it, then run it in…

TerminalSkillsот TerminalSkills★ 221 звезда на GitHub

Об этом скилле

Freqtrade — write, backtest and dry-run crypto trading strategies

Overview

Freqtrade (PyPI freqtrade, GPL-3.0 tool) runs a loop over exchange candles. Your strategy class computes indicators and sets entry and exit signals on a pandas DataFrame; the bot backtests that logic on downloaded history or runs it live. This skill covers the workflow that was run end to end on release 2026.10: create a user directory, write a config and a strategy, download data, list strategies, backtest, and start a dry-run.

Read this first:

  • This is not financial advice. A strategy that wins in a backtest often loses live (fees, slippage, overfitting). Live trading can lose the whole stake.
  • Every config in this skill sets "dry_run": true. In dry-run the bot simulates orders against real market prices and places nothing. Do not change that flag on the user's behalf; switching to live trading is the owner's decision after reading the official docs.
  • The agent never writes, reads or asks for exchange API keys. Market-data download and backtesting need no key (the download below ran anonymously on Binance spot).

Instructions

Installation

python3 -m venv .venv
.venv/bin/pip install "freqtrade==2026.10"
.venv/bin/freqtrade --version     # Freqtrade Version: freqtrade 2026.10

The PyPI wheel is Python 3.12+. Docker alternative (official image, tag stable, not pulled while checking this skill): the compose file in the repository maps the API to 127.0.0.1:8080 only, mounts ./user_data, and runs trade with --config /freqtrade/user_data/config.json and its own strategy name, which you set to yours.

Create the user directory

.venv/bin/freqtrade create-userdir --userdir user_data

This creates strategies/ (with sample_strategy.py), data/, backtest_results/, hyperopt_results/, logs/, notebooks/, plot/, freqaimodels/ and hyperopts/. Pass --userdir user_data to every later command except install-ui, which has no such flag and uses user_data/ in the current directory (run it from the project root).

Write the config

freqtrade new-config is an interactive wizard that asks for exchange keys; do not run it from an agent. Write user_data/config.json by hand. A minimal dry-run spot config (validated by list-strategies, download-data, backtesting and trade):

{
  "max_open_trades": 3,
  "stake_currency": "USDT",
  "stake_amount": 100,
  "dry_run": true,
  "dry_run_wallet": 1000,
  "trading_mode": "spot",
  "timeframe": "1h",
  "entry_pricing": {"price_side": "same", "use_order_book": true, "order_book_top": 1},
  "exit_pricing": {"price_side": "same", "use_order_book": true, "order_book_top": 1},
  "exchange": {
    "name": "binance",
    "key": "",
    "secret": "",
    "pair_whitelist": ["BTC/USDT", "ETH/USDT"],
    "pair_blacklist": []
  },
  "pairlists": [{"method": "StaticPairList"}],
  "bot_name": "ema-rsi-dryrun",
  "initial_state": "running"
}

Leave key and secret empty. Binance may be geo-blocked for some users; pick another exchange name from freqtrade list-exchanges and check the exchange's page in the docs.

Write a strategy

freqtrade new-strategy --userdir user_data -s MyStrategy --template minimal writes a template (--template takes full, minimal or advanced). The three methods you must keep are populate_indicators, populate_entry_trend and populate_exit_trend; entries use the column enter_long and exits exit_long. A complete strategy, user_data/strategies/EmaRsiStrategy.py:

from pandas import DataFrame
import talib.abstract as ta
from freqtrade.strategy import IStrategy, IntParameter


class EmaRsiStrategy(IStrategy):
    INTERFACE_VERSION = 3

    timeframe = "1h"
    can_short = False
    minimal_roi = {"0": 0.06}
    stoploss = -0.02
    startup_candle_count = 30

    rsi_max = IntParameter(50, 75, default=65, space="buy")

    def populate_indicators(self, dataframe: DataFrame, metadata: dict) -> DataFrame:
        dataframe["ema_fast"] = ta.EMA(dataframe, timeperiod=12)
        dataframe["ema_slow"] = ta.EMA(dataframe, timeperiod=26)
        dataframe["rsi"] = ta.RSI(dataframe, timeperiod=14)
        return dataframe

    def populate_entry_trend(self, dataframe: DataFrame, metadata: dict) -> DataFrame:
        cross_up = (dataframe["ema_fast"] > dataframe["ema_slow"]) & (
            dataframe["ema_fast"].shift(1) <= dataframe["ema_slow"].shift(1)
        )
        dataframe.loc[
            cross_up & (dataframe["rsi"] < self.rsi_max.value) & (dataframe["volume"] > 0),
            "enter_long",
        ] = 1
        return dataframe

    def populate_exit_trend(self, dataframe: DataFrame, metadata: dict) -> DataFrame:
        cross_down = (dataframe["ema_fast"] < dataframe["ema_slow"]) & (
            dataframe["ema_fast"].shift(1) >= dataframe["ema_slow"].shift(1)
        )
        dataframe.loc[cross_down, "exit_long"] = 1
        return dataframe

Check it lo

Полный SKILL.md на GitHub

Установить freqtrade в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

_scores.json

FAQ

Что делает скилл freqtrade?

Freqtrade is a free, open-source crypto trading bot written in Python: you write a strategy class, download exchange candles, backtest it, then run it in dry-run mode (simulated orders) before risking money. Use when a user says "backtest a crypto strategy", "download historical candles for freqtrade", "write a freqtrade strategy", "run a trading bot in dry-run", or "set up FreqUI". Not financial advice: strategies usually lose money, and live trading can lose all of it. This skill defaults to dry-run and never handles exchange keys.

Как установить скилл freqtrade?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл freqtrade запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить freqtrade с