- 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
19 lines
603 B
TypeScript
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
|