Files
trading_bot_v3/lib/startup.ts
mindesbunister 2bdf9e2b41 fix: implement proper multi-timeframe batch analysis
- Create /api/batch-analysis endpoint that collects ALL screenshots first
- Then sends all screenshots to AI for comprehensive analysis
- Fixes issue where individual timeframes were analyzed immediately
- Multi-timeframe analysis now provides cross-timeframe consensus
- Update AIAnalysisPanel to use batch analysis for multiple timeframes
- Maintains backward compatibility with single timeframe analysis
2025-07-18 18:32:08 +02:00

19 lines
603 B
TypeScript

// Startup initialization for the trading bot
// This file initializes critical systems and cleanup handlers
import processCleanup from './process-cleanup'
import aggressiveCleanup from './aggressive-cleanup'
// Initialize cleanup system
console.log('🚀 Initializing trading bot systems...')
console.log('🧹 Process cleanup handlers initialized')
// Start aggressive cleanup system (singleton pattern ensures only one instance)
aggressiveCleanup.startPeriodicCleanup()
// Export cleanup for manual access
export { processCleanup, aggressiveCleanup }
// Initialize on import
export default true