Install
openclaw skills install crypto-tradingAutomatically executes trading decisions every 10 minutes using dual AI analysis, technical indicators, and strict risk and position management rules for BTC...
openclaw skills install crypto-tradingPAI CryptoTrading 项目的核心交易决策技能 @version 1.0.0
- 获取 BTC/ETH/BNB 1h K 线数据
- 获取订单簿深度数据
- 计算技术指标:RSI, MACD, 布林带
- 获取账户持仓和余额
- 调用 Dify AI 获取市场分析
- 调用 OpenClaw (qwen3.5-plus) 获取独立分析
- 对比两种分析结果
- 生成最终决策:BUY/SELL/HOLD
R001: 4h 趋势过滤 - 1h 信号必须与 4h 同向
R002: 置信度校准 - 单一指标上限 0.55
R003: 交易频率控制 - 单币种每日≤3 笔
R004: 止损纪律 - 5% 止损,盈利 10% 移动止损
R005: 仓位管理 - 单币种≤25%,默认 10%
R006: 聚焦主流币 - BTC/ETH/BNB
- 计算交易数量 (使用 order_amount.py)
- 执行市价单
- 记录执行结果
- 更新持仓状态
- 保存决策到 memory/trading/YYYY-MM-DD.md
- 更新 memory/crypto_trading_state.json
- 双分析对比落库 (ai_analysis_comparison 表)
core/data_collector.py - 行情数据收集core/autonomous_ai.py - AI 决策引擎core/enhanced_trade_executor.py - 交易执行器core/risk_manager.py - 风险管理core/experience_analyzer.py - 经验分析器validate_ct_execution.py - 执行验证脚本| 日期 | 改进内容 |
|---|---|
| 2026-03-03 | 修复 position_size 计算错误 |
| 2026-03-03 | 添加 OpenClaw 双分析对比 |
| 2026-03-02 | 实现经验规则 R001-R006 |
/Users/zst/Documents/ML/CryptoTrading/ - 主项目目录/Users/zst/clawd/memory/trading/ - 交易日志/Users/zst/clawd/memory/trading_rules.md - 规则库/Users/zst/clawd/memory/trading_mistakes.md - 错误清单