ZhouYongyou
e7db743540
fix: remove unnecessary prompts/adaptive.txt changes
...
- This PR should only contain backend core functionality
- prompts/adaptive.txt v2.0 is already in upstream
- Prompt enhancements will be in separate PR (Batch 3)
2025-11-04 16:58:28 +08:00
ZhouYongyou
5993a6b595
feat: 添加部分平仓和动态止盈止损功能
...
新增功能:
- update_stop_loss: 调整止损价格(追踪止损)
- update_take_profit: 调整止盈价格(技术位优化)
- partial_close: 部分平仓(分批止盈)
实现细节:
- Decision struct 新增字段:NewStopLoss, NewTakeProfit, ClosePercentage
- 新增执行函数:executeUpdateStopLossWithRecord, executeUpdateTakeProfitWithRecord, executePartialCloseWithRecord
- 修复持仓字段获取 bug(使用 "side" 并转大写)
- 更新 adaptive.txt 文档,包含详细使用示例和策略建议
- 优先级排序:平仓 > 调整止盈止损 > 开仓
命名统一:
- 与社区 PR #197 保持一致,使用 update_* 而非 adjust_*
- 独有功能:partial_close(部分平仓)
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: tinkle-community <tinklefund@gmail.com >
2025-11-04 16:40:12 +08:00
tinkle-community
431248b199
Merge pull request #268 from yutou123/dev
2025-11-03 06:59:28 +08:00
ZhouYongyou
b0720ea80c
docs(prompts): Update AI prompt to support dynamic TP/SL features (v5.5.1)
...
- Add 3 new action types: update_stop_loss, update_take_profit, partial_close
- Introduce "Zero Principle" (疑惑优先) for risk control
- Expand decision flow to 8 steps with critical safeguards:
* Step 2: Consecutive loss pause (2x→45min, 3x→24h, 4x→72h)
* Step 5: BTC status check (multi-timeframe MACD confirmation)
* Step 6: Long/short confirmation checklist (≥5/8 indicators)
* Step 7: Fake breakout detection (RSI multi-timeframe + candle patterns)
* Step 8: Objective confidence scoring (base 60 + conditions)
- Add signal priority ranking (trend resonance > volume > BTC > RSI...)
- Add dynamic TP/SL strategies with examples
- Increase confidence threshold: 0.6 → 0.85 for opening positions
- Add cooldown rules and slippage buffer (0.05%)
- Optimize prompt length: 4445 words → 1500 words (-66%)
Key improvements in v5.5.1:
✅ BTC status check - Most critical protection for altcoin trading
✅ Long/short checklist - 5/8 indicators required, prevent false signals
✅ Objective confidence scoring - Base 60 + condition adjustments
✅ Fake breakout logic - RSI multi-timeframe + candle filters
✅ Consecutive loss pause - 2x/3x/4x trigger different cooldowns
✅ OI confirmation - >+5% for real breakout validation
✅ Signal priority ranking - Trend resonance > volume > BTC...
✅ Slippage handling - 0.05% buffer + profit check
Design philosophy: Let AI autonomously judge trend vs chop, trust strong reasoning models.
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: tinkle-community <tinklefund@gmail.com >
2025-11-03 01:59:54 +08:00
芋头
c00fa5adc4
文件命名空格问题
2025-11-03 00:16:28 +08:00
芋头
73b6a3e9d7
补充提示词
2025-11-02 23:56:32 +08:00
SkywalkerJi
5afbd9a3c3
Supports custom system prompts and custom models.
2025-11-01 19:45:54 +08:00