myTestFreqAI/方案B实施完成.txt

26 lines
1.1 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

✅ 方案B实施完成
【已完成操作】
1. ✅ 回滚方案A删除 populate_entry_trend 中的趋势反转确认代码)
2. ✅ 实施方案B在 confirm_trade_entry 中动态提高ML阈值
3. ✅ 更新文档doc/方案B-强熊市MACD下降动态提高ML阈值.md
4. ✅ 语法检查通过
【方案B核心逻辑】
- 位置freqtrade/templates/freqaiprimer.pyconfirm_trade_entry() 方法
- 触发条件market_state == 'strong_bear' AND macd_cross == 'down'
- 阈值调整:从 0.85 提高到 0.95+0.10
- 效果预期只有ML概率≥0.95的信号才能在强熊市+MACD下降时入场
【与方案A的区别】
- 方案A在入场信号生成阶段过滤技术指标过滤
- 方案B在ML审核官阶段过滤ML置信度过滤
- 方案B更依赖ML模型质量但保留了ML的判断力
【下一步】
现在可以提交代码了建议commit信息
git commit -m "实施方案B强熊市+MACD下降时动态提高ML入场阈值到0.95"
【回测验证】
freqtrade backtesting --config config.json --strategy FreqaiPrimer --timerange=20251201-20260108