agentson
|
62b1a1f37a
|
feat: implement Volatility Hunter for real-time market scanning
CI / test (pull_request) Has been cancelled
Implements issue #20 - Behavioral Rule: Volatility Hunter
Components:
1. src/analysis/volatility.py
- VolatilityAnalyzer with ATR calculation
- Price change tracking (1m, 5m, 15m intervals)
- Volume surge detection (ratio vs average)
- Price-volume divergence analysis
- Momentum scoring (0-100 scale)
- Breakout/breakdown detection
2. src/analysis/scanner.py
- MarketScanner for real-time stock scanning
- Scans all available stocks every 60 seconds
- Ranks by momentum score
- Identifies top 5 movers per market
- Dynamic watchlist updates
3. Integration with src/main.py
- Auto-adjust WATCHLISTS dynamically
- Replace laggards with leaders (max 2 per scan)
- Volume confirmation required
- Integrated with Context Tree L7 (real-time layer)
4. Comprehensive tests
- 22 tests in tests/test_volatility.py
- 99% coverage for analysis module
- Tests for all volatility calculations
- Tests for scanner ranking and watchlist updates
- All tests passing
Key Features:
- Scan ALL stocks, not just current watchlist
- Dynamic watchlist that adapts to market leaders
- Context Tree integration for real-time data storage
- Breakout detection with volume confirmation
- Multi-timeframe momentum analysis
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
2026-02-04 16:29:06 +09:00 |
|