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
This commit is contained in:
mindesbunister
2025-07-18 18:32:08 +02:00
parent bd49c65867
commit 2bdf9e2b41
6 changed files with 413 additions and 89 deletions

View File

@@ -7,7 +7,9 @@ import aggressiveCleanup from './aggressive-cleanup'
// Initialize cleanup system
console.log('🚀 Initializing trading bot systems...')
console.log('🧹 Process cleanup handlers initialized')
console.log('🧹 Aggressive cleanup system initialized')
// Start aggressive cleanup system (singleton pattern ensures only one instance)
aggressiveCleanup.startPeriodicCleanup()
// Export cleanup for manual access
export { processCleanup, aggressiveCleanup }