-
Notifications
You must be signed in to change notification settings - Fork 0
Human in Loop Design
AutoTrader-AgentEdge is designed for human oversight, not autonomous AI trading. The system assists traders by providing validated signals, but humans make the final decisions.
"Pure mathematical indicators + human decision making > complex AI sentiment analysis"
- Accountability: Humans are responsible for trading decisions
- Context: Humans understand market conditions, news, and edge cases
- Risk Management: Humans can override signals based on portfolio needs
- Regulatory: Many jurisdictions require human oversight for trading
- Learning: Humans improve by understanding why signals work or fail
The VoterAgent generates recommendations, not orders:
result = voter.evaluate_voting('SPY', market_data)
# Returns: {'action': 'BUY', 'confidence': 0.85, 'reasoning': '...'}Human Decision Point: Review the signal, confidence, and reasoning before executing.
All main.py commands require human initiation:
# Human reviews output before any action
python main.py test-voter
# Human decides whether to execute suggested actions
python main.py paper-trade SPYThe paper-trade command performs automated checks but requires human review:
- System reconciles state
- System reviews positions
- System calculates recommended adjustments
- System displays recommendations
- Human reviews output
- System only executes if explicitly confirmed
Currently, the system displays recommendations but doesn't require explicit confirmation (Issue #308).
Target: Q4 2025
Features:
python main.py --interactive
# Output:
📊 VoterAgent Recommendation:
Symbol: SPY
Action: BUY
Confidence: 85%
Reasoning: Strong consensus - MACD and RSI both bullish
Current Price: $450.25
Position Size: 100 shares
Risk: $2,250 (5% stop loss)
❓ Approve this trade? [y/N/m(odify)/s(kip)]:Capabilities:
- Review each recommendation individually
- Modify position size or parameters
- Skip recommendations without penalty
- Add manual notes and reasoning
- Track approval/rejection patterns
Features:
- Display recent performance metrics
- Show portfolio impact simulation
- Risk assessment summary
- Historical similar signals and outcomes
- Market condition context
Human Control Points:
- Pre-approval: Review before any order placement
- Modification: Adjust size, entry price, or risk parameters
- Rejection: Skip signals without affecting future recommendations
- Emergency Stop: Immediately halt all automated checks
- Manual Orders: Place orders outside of VoterAgent signals
The system does NOT:
- Place orders without human initiation
- Make trading decisions independently
- Override human decisions
- Execute trades on a schedule automatically
- Learn or adapt trading strategy based on outcomes
The system DOES:
- Generate validated trading signals
- Calculate risk parameters
- Monitor position health
- Suggest stop-loss adjustments
- Provide comprehensive analysis
- Track performance metrics
All decisions are explainable:
- MACD histogram value
- RSI level
- Voting logic reasoning
- Position sizing calculation
- Risk parameters
Same inputs → same outputs:
- Pure mathematical calculations
- No randomness or LLM uncertainty
- Reproducible signals
- Auditable decision logic
All actions can be undone:
- Positions can be closed manually
- Orders can be cancelled
- System state can be reset
- No irreversible automated actions
Complete system state is accessible:
- Current positions
- Open orders
- Recent decisions
- Performance history
- Risk exposure
| Feature | Autonomous AI | Human-in-Loop (This System) |
|---|---|---|
| Decision Making | AI decides | Human decides |
| Order Execution | Automatic | Manual approval |
| Risk Management | AI-controlled | Human-controlled |
| Accountability | Unclear | Clear (human) |
| Adaptability | AI learns | Human learns |
| Regulation | Complex | Straightforward |
| Trust | Black box | Transparent |
-
Trade Approval Dashboard (Issue #308)
- Web-based interface
- Mobile notifications
- Batch approval workflow
-
Decision Analytics
- Track human approval patterns
- Measure signal vs execution performance
- Identify learning opportunities
-
Portfolio Context
- Show overall portfolio impact
- Display correlation with existing positions
- Highlight concentration risks
-
Smart Defaults
- Learn from human preferences
- Suggest position sizes based on past approvals
- Pre-filter low-confidence signals
- Autonomous execution: Will always require human approval
- LLM decision-making: Pure math stays pure math
- Adaptive strategies: Parameters stay validated and locked
The project tested extensive LLM-based sentiment analysis (V0-V4 framework) and found:
- Pure MACD+RSI (0.856 Sharpe) > LLM sentiment (~60% accuracy)
- Mathematical signals more reliable than AI reasoning
- Simpler systems easier to understand and debug
- Human oversight adds value that AI cannot
Rather than pursue complex autonomous AI trading, the project focuses on:
- Validated pure math signals (proven 0.856 Sharpe)
- Human decision intelligence (context, judgment, risk tolerance)
- Cost-efficient execution (90% fewer API calls)
- Transparent operation (explainable decisions)
# Generate signal for review
python main.py test-voter# Check current positions daily
python main.py check-positions# Run daily checks (morning and evening)
python main.py paper-trade SPY# Interactive approval workflow (Issue #308)
python main.py --interactive-
Morning (9:20 AM): Run
paper-tradeto review overnight changes - Midday: Check positions if significant market moves
-
Evening (3:50 PM): Run
paper-tradefor EOD review - Weekly: Analyze performance and adjust as needed
- Review Signal: Understand VoterAgent reasoning
- Check Context: Look at news, market conditions, portfolio
- Assess Risk: Consider position sizing and stops
- Make Decision: Approve, modify, or reject
- Execute: Place order manually or via system
- Monitor: Track position performance
- Position Limits: Max 3 positions, 33% each
- Stop Losses: 5% default (balanced strategy)
- Take Profits: 8% default (balanced strategy)
- Review Frequency: At least twice daily
- Override Authority: Human can always override
- VoterAgent Strategy: Understand the signals you'll review
- Using main.py CLI: Command reference
- Paper Trading: Practice safe trading workflow
Design Philosophy | Human Oversight Required | Issue #308 for Interactive CLI