fix 1s 1m chart less candles ;

fix vertical zoom
This commit is contained in:
Dobromir Popov
2025-11-22 18:23:04 +02:00
parent 26cbfd771b
commit 4b93b6fd42
4 changed files with 664 additions and 11 deletions

View File

@@ -538,6 +538,9 @@ class AnnotationDashboard:
engineio_logger=False
)
self.has_socketio = True
# Pass socketio to training adapter for live trade updates
if self.training_adapter:
self.training_adapter.socketio = self.socketio
logger.info("SocketIO initialized for real-time updates")
except ImportError:
self.socketio = None
@@ -586,6 +589,8 @@ class AnnotationDashboard:
self.annotation_manager = AnnotationManager()
# Use REAL training adapter - NO SIMULATION!
self.training_adapter = RealTrainingAdapter(None, self.data_provider)
# Pass socketio to training adapter for live trade updates
self.training_adapter.socketio = None # Will be set after socketio initialization
# Backtest runner for replaying visible chart with predictions
self.backtest_runner = BacktestRunner()