← 返回 Skills 市场
djc00p

Freqtrade Strategy Dev

作者 Deonte Cooper · GitHub ↗ · v1.0.4 · MIT-0
linuxdarwinwin32 ✓ 安全检测通过
268
总下载
0
收藏
1
当前安装
5
版本数
在 OpenClaw 中安装
/install freqtrade-strategy-dev
功能描述
Develop, iterate, and improve Freqtrade cryptocurrency trading strategies. Use when writing a new strategy, improving an existing one, analyzing why a strate...
使用说明 (SKILL.md)

Freqtrade Strategy Development

Build profitable trading strategies with disciplined iteration, tight risk management, and data-driven entry/exit rules. Assumes Freqtrade is running via Docker (docker-compose).

Strategy Anatomy

Every Freqtrade strategy requires three methods:

  • populate_indicators(dataframe, metadata) — Add technical indicators (RSI, MACD, Bollinger Bands, etc.) to the dataframe
  • populate_entry_trend(dataframe, metadata) — Define buy signal logic; set enter_long = 1 when conditions met
  • populate_exit_trend(dataframe, metadata) — Define sell signal logic; set exit_long = 1 when conditions met (optional if using ROI/stop-loss)

Key Config Parameters

stoploss = -0.03  # 3% max loss per trade
trailing_stop = True
trailing_stop_positive = 0.01
trailing_stop_positive_offset = 0.02

minimal_roi = {
    "0": 0.04,      # 4% profit target immediately
    "30": 0.02,     # 2% after 30 candles
    "60": 0.01,     # 1% after 60 candles
}

timeframe = "5m"  # or "15m", "1h", etc.
stake_currency = "USDT"
dry_run = True  # Always backtest/dry-run first

Proven Entry Pattern

stoploss = -0.03
trailing_stop = True
trailing_stop_positive = 0.01
trailing_stop_positive_offset = 0.02
minimal_roi = {"0": 0.04, "30": 0.02, "60": 0.01}

# In populate_indicators: calculate RSI, CCI, Bollinger Bands, EMA, Volume SMA

# In populate_entry_trend: only buy when ALL conditions met
conditions = [
    (dataframe['rsi'] \x3C 30),  # Oversold
    (dataframe['cci'] \x3C -100),  # Momentum confirmation
    (dataframe['close'] \x3C dataframe['bb_lowerband']),  # Price near lower band
    (dataframe['volume'] > dataframe['volume_sma']),  # Volume confirms
    (dataframe['bullish_candle']),  # Pattern confirmation
]
dataframe.loc[reduce(lambda x, y: x & y, conditions), 'enter_long'] = 1

Key Lessons Learned

  1. Tight stops save accounts — 3% max loss beats 5%, 7%, or 8% every time
  2. Quality over quantity — 25 selective trades outperform 308 mediocre ones
  3. Win rate alone is meaningless — 63% win rate unprofitable if avg loss is 5x avg gain
  4. Selectivity is survival — RSI(30) + CCI(-100) dual filters dramatically reduce noise
  5. Test in bear markets — If strategy survives a crash, it works everywhere
  6. Volume confirms conviction — Entries without above-average volume fail more often

Useful Indicators

  • RSI (14) — Momentum; \x3C 30 = oversold, > 70 = overbought
  • CCI — Commodity Channel Index; momentum confirmation; \x3C -100 = deep oversold
  • MACD — Trend following; watch for crossovers
  • Bollinger Bands — Volatility; price near lower band = potential reversal
  • EMA — Trend filter; price above EMA = uptrend
  • MFI — Money Flow Index; volume-weighted momentum

Iteration Workflow

  1. Write baseline strategy with core entry/exit logic
  2. Backtest on 90–120 days of historical data
  3. Analyze exit reasons: are you exiting winners or losers too fast?
  4. Tighten ONE parameter at a time (e.g., RSI threshold)
  5. Backtest same period, compare vs. baseline
  6. If better → keep; if worse → revert
  7. Test different market conditions (Bull, bear, sideways)
  8. Dry-run on live feeds before deploying to live trading

Version Control

Keep all versions: name files MyStrategy_v1.py, MyStrategy_v2.py, etc. Add comments above each change explaining what improved and why. This preserves your iteration history and makes reverting safe.

References

  • references/indicators-guide.md — Technical indicator formulas and interpretation
  • references/iteration-workflow.md — Step-by-step walkthrough of strategy optimization
安全使用建议
This is an instruction-only guide for building and iterating Freqtrade strategies and appears coherent and proportional. Before using: ensure docker and docker-compose are installed; follow the guide in dry-run/backtest mode first; never paste your exchange API keys into untrusted tools or public places — when you move to live trading, provide API keys only to your Freqtrade config and protect them (read-only or withdrawal-disabled keys where possible). Verify actual freqtrade CLI versions/flags against the official Freqtrade docs before running commands, and treat any strategy advice as educational (live trading carries financial risk).
功能分析
Type: OpenClaw Skill Name: freqtrade-strategy-dev Version: 1.0.4 The skill bundle provides a comprehensive and legitimate framework for developing cryptocurrency trading strategies using the Freqtrade platform. It contains technical documentation, indicator formulas, and a structured iteration workflow (found in SKILL.md and the references/ directory) that align perfectly with its stated purpose. No evidence of data exfiltration, malicious execution, or prompt injection was found.
能力评估
Purpose & Capability
Name/description: develop and iterate Freqtrade strategies. Declared requirements: docker and docker-compose — reasonable because the guide assumes Freqtrade runs in Docker. No unrelated binaries, env vars, or config paths are requested.
Instruction Scope
SKILL.md and reference docs only contain strategy guidance, indicator formulas, iteration/backtest workflows, and example freqtrade CLI commands. Instructions do not ask the agent to read unrelated system files, exfiltrate data, or call unexpected external endpoints.
Install Mechanism
No install spec and no code files — instruction-only skill. Nothing will be downloaded or written to disk by the skill itself.
Credentials
Skill declares no environment variables or credentials (and doesn't attempt to access any). In real usage, running Freqtrade for live trading requires exchange API keys and config files, but the guide focuses on backtesting/dry-run and therefore does not request those secrets — this is coherent but users should be aware they must supply and protect any exchange credentials when actually running trades.
Persistence & Privilege
always:false and no configuration changes are requested. The skill does not request permanent presence or modify other skills or system-wide settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install freqtrade-strategy-dev
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /freqtrade-strategy-dev 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.4
Fix: replace bare code blocks with ```text for consistent rendering
v1.0.3
Removed link to referenced files
v1.0.2
Fix: Clarified crypto-exclusive scope in description
v1.0.1
Fix: Added docker-compose to required bins, clarified that skill assumes Docker-based Freqtrade setup
v1.0.0
Initial release — develop, iterate, and improve Freqtrade strategies. Covers strategy anatomy, proven entry patterns, 6 key lessons from real iteration, indicator guide, and step-by-step optimization workflow.
元数据
Slug freqtrade-strategy-dev
版本 1.0.4
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 5
常见问题

Freqtrade Strategy Dev 是什么?

Develop, iterate, and improve Freqtrade cryptocurrency trading strategies. Use when writing a new strategy, improving an existing one, analyzing why a strate... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 268 次。

如何安装 Freqtrade Strategy Dev?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install freqtrade-strategy-dev」即可一键安装,无需额外配置。

Freqtrade Strategy Dev 是免费的吗?

是的,Freqtrade Strategy Dev 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Freqtrade Strategy Dev 支持哪些平台?

Freqtrade Strategy Dev 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(linux, darwin, win32)。

谁开发了 Freqtrade Strategy Dev?

由 Deonte Cooper(@djc00p)开发并维护,当前版本 v1.0.4。

💬 留言讨论