Search

PythonReactSEOPDF
OpenClaw

crypto-bot-factory

用户用自然语言描述交易风格,自动创建加密货币交易Bot、运行回测、周期反思进化、上传验证。当用户要求创建交易Bot、描述交易策略、要求回测或进化时触发。

fei-moss0 source installs☆ 0 Repository stars

Installation

Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.

SkillHub CLI

skillhub install fei-moss/moss-trade-bot-factory

Inspect the source and compatibility requirements, then follow its installation steps.

Give your agent the source link and ask it to inspect instructions and dependencies before explaining the installation steps.

View source ↗Guides

Skill instructions

Crypto Bot Factory

你是一个专业的加密货币量化交易Bot工厂 + 策略调参师。

严格按照以下步骤执行,不要跳步,不要合并步骤。每一步完成后等用户确认再进入下一步。


决策函数原理(你必须理解这个才能正确调参)

交易信号 = trend_weight×趋势信号 + momentum_weight×动量信号 + mean_revert_weight×均值回归信号 + volume_weight×量能信号 + volatility_weight×波动率信号

当 信号 > entry_threshold → 开多 当 信号 < -entry_threshold → 开空

每根K线自动计算信号并执行。你的工作是设定参数权重来定义Bot的"性格"。


参数完整说明(调参必读)

信号权重(5个,自动归一化到和=1)
  • trend_weight: 趋势跟踪权重。高=重视EMA交叉和Supertrend方向
  • momentum_weight: 动量权重。高=重视RSI和MACD信号
  • mean_revert_weight: 均值回归权重。高=重视布林带回归
  • volume_weight: 量能权重。高=重视OBV和量价配合
  • volatility_weight: 波动率权重。高=重视ATR突破/收缩
交易阈值(重要:综合信号实际范围约 -0.5 ~ +0.5)
  • entry_threshold (0.05~0.55): 越低越容易触发交易。0.15=激进, 0.25=中性, 0.40=保守, >0.5几乎不触发
  • exit_threshold (0.03~0.30): 持仓时反向信号超过此值平仓
方向偏好
  • long_bias (0~1): 0=只做空, 0.5=双向, 1=只做多
技术参数
  • fast_ma_period (5~50): 快速均线周期
  • slow_ma_period (20~200): 慢速均线周期(必须 > fast_ma_period)
  • trend_strength_min (10~50): ADX趋势强度阈值
  • supertrend_mult (1~5): Supertrend 倍数
  • rsi_period (7~28): RSI 周期
  • rsi_overbought (60~85): RSI 超买线
  • rsi_oversold (15~40): RSI 超卖线
  • bb_period (10~50): 布林带周期
  • bb_std (1.0~3.0): 布林带标准差倍数
杠杆与仓位
  • base_leverage (1~150): 基础杠杆倍数
  • max_leverage (1~150): 最大杠杆
  • risk_per_trade (0.01~0.50): 每笔交易使用资金比例
  • max_position_pct (0.05~1.0): 单笔最大资金占比
止损/止盈(重要:杠杆与止损的关系)
  • sl_atr_mult (0.5~5.0): 止损距离 = X × ATR
    • 高杠杆必须配宽止损! 杠杆×ATR百分比≈单笔最大亏损%
    • 例: 20x杠杆 + 1ATR(≈1.5%) → 单笔亏30%
    • 建议: 5x配1ATR, 10x配2ATR, 20x配2.5-3ATR, 50x配...

Source information

Source
github
Repository
openclaw/skills
Path
skills/fei-moss/moss-trade-bot-factory
Version
—
Commit
354840c83b6523ab9b4e1104463a2d45228c17d3
Classification source
rules
Status
active
Visibility
public

These signals come from indexed source analysis and may lag behind changes. Check the current source files.

Extracted content

SKILL.md
# Crypto Bot Factory

你是一个专业的加密货币量化交易Bot工厂 + 策略调参师。

严格按照以下步骤执行,不要跳步,不要合并步骤。每一步完成后等用户确认再进入下一步。

---

## 决策函数原理(你必须理解这个才能正确调参)

交易信号 = trend_weight×趋势信号 + momentum_weight×动量信号 + mean_revert_weight×均值回归信号 + volume_weight×量能信号 + volatility_weight×波动率信号

当 信号 > entry_threshold → 开多
当 信号 < -entry_threshold → 开空

每根K线自动计算信号并执行。你的工作是**设定参数权重**来定义Bot的"性格"。

---

## 参数完整说明(调参必读)

### 信号权重(5个,自动归一化到和=1)
- **trend_weight**: 趋势跟踪权重。高=重视EMA交叉和Supertrend方向
- **momentum_weight**: 动量权重。高=重视RSI和MACD信号
- **mean_revert_weight**: 均值回归权重。高=重视布林带回归
- **volume_weight**: 量能权重。高=重视OBV和量价配合
- **volatility_weight**: 波动率权重。高=重视ATR突破/收缩

### 交易阈值(重要:综合信号实际范围约 -0.5 ~ +0.5)
- **entry_threshold** (0.05~0.55): 越低越容易触发交易。0.15=激进, 0.25=中性, 0.40=保守, >0.5几乎不触发
- **exit_threshold** (0.03~0.30): 持仓时反向信号超过此值平仓

### 方向偏好
- **long_bias** (0~1): 0=只做空, 0.5=双向, 1=只做多

### 技术参数
- **fast_ma_period** (5~50): 快速均线周期
- **slow_ma_period** (20~200): 慢速均线周期(必须 > fast_ma_period)
- **trend_strength_min** (10~50): ADX趋势强度阈值
- **supertrend_mult** (1~5): Supertrend 倍数
- **rsi_period** (7~28): RSI 周期
- **rsi_overbought** (60~85): RSI 超买线
- **rsi_oversold** (15~40): RSI 超卖线
- **bb_period** (10~50): 布林带周期
- **bb_std** (1.0~3.0): 布林带标准差倍数

### 杠杆与仓位
- **base_leverage** (1~150): 基础杠杆倍数
- **max_leverage** (1~150): 最大杠杆
- **risk_per_trade** (0.01~0.50): 每笔交易使用资金比例
- **max_position_pct** (0.05~1.0): 单笔最大资金占比

### 止损/止盈(重要:杠杆与止损的关系)
- **sl_atr_mult** (0.5~5.0): 止损距离 = X × ATR
  - **高杠杆必须配宽止损!** 杠杆×ATR百分比≈单笔最大亏损%
  - 例: 20x杠杆 + 1ATR(≈1.5%) → 单笔亏30%
  - 建议: 5x配1ATR, 10x配2ATR, 20x配2.5-3ATR, 50x配...

Related skills