feat: use market_outlook to adjust BUY confidence threshold #173

Closed
opened 2026-02-20 08:23:45 +09:00 by agentson · 0 comments
Collaborator

문제

AI가 market_outlook: bearish를 플레이북에 명시해도 ScenarioEngine이 이를 무시.
약세장에서도 낮은 confidence의 BUY가 실행될 수 있음.

구현

main.py trading_cycle에서 match 평가 후 market_outlook에 따라 BUY confidence 임계값 조정:

  • BEARISH: min_confidence = 90 (약세장에서 더 엄격)
  • BULLISH: min_confidence = 75 (강세장에서 약간 완화)
  • 기타: settings.CONFIDENCE_THRESHOLD (기본 80)

임계값 미달 시 HOLD로 전환하고 사유 기록.

테스트

  • test_bearish_outlook_raises_buy_confidence_threshold
  • test_bullish_outlook_lowers_buy_confidence_threshold
  • test_neutral_outlook_uses_default_threshold
## 문제 AI가 market_outlook: bearish를 플레이북에 명시해도 ScenarioEngine이 이를 무시. 약세장에서도 낮은 confidence의 BUY가 실행될 수 있음. ## 구현 main.py trading_cycle에서 match 평가 후 market_outlook에 따라 BUY confidence 임계값 조정: - BEARISH: min_confidence = 90 (약세장에서 더 엄격) - BULLISH: min_confidence = 75 (강세장에서 약간 완화) - 기타: settings.CONFIDENCE_THRESHOLD (기본 80) 임계값 미달 시 HOLD로 전환하고 사유 기록. ## 테스트 - test_bearish_outlook_raises_buy_confidence_threshold - test_bullish_outlook_lowers_buy_confidence_threshold - test_neutral_outlook_uses_default_threshold
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: jihoson/The-Ouroboros#173