integratoin fixes - COB and CNN
This commit is contained in:
@ -62,6 +62,7 @@ logging.getLogger('dash.dash').setLevel(logging.WARNING)
|
||||
|
||||
# Import core components
|
||||
from core.config import get_config
|
||||
from core.data_provider import DataProvider
|
||||
from core.standardized_data_provider import StandardizedDataProvider
|
||||
from core.orchestrator import TradingOrchestrator
|
||||
from core.trading_executor import TradingExecutor
|
||||
@ -114,7 +115,7 @@ except ImportError:
|
||||
class CleanTradingDashboard:
|
||||
"""Clean, modular trading dashboard implementation"""
|
||||
|
||||
def __init__(self, data_provider: Optional[DataProvider] = None, orchestrator: Optional[Any] = None, trading_executor: Optional[TradingExecutor] = None):
|
||||
def __init__(self, data_provider=None, orchestrator: Optional[Any] = None, trading_executor: Optional[TradingExecutor] = None):
|
||||
self.config = get_config()
|
||||
|
||||
# Initialize update batch counter to reduce flickering
|
||||
@ -5532,6 +5533,16 @@ class CleanTradingDashboard:
|
||||
logger.error(f"Error initializing enhanced training system: {e}")
|
||||
self.training_system = None
|
||||
|
||||
def _initialize_standardized_cnn(self):
|
||||
"""Initialize StandardizedCNN model for the dashboard"""
|
||||
try:
|
||||
from NN.models.standardized_cnn import StandardizedCNN
|
||||
self.standardized_cnn = StandardizedCNN(model_name="dashboard_standardized_cnn")
|
||||
logger.info("StandardizedCNN model initialized for dashboard")
|
||||
except Exception as e:
|
||||
logger.warning(f"StandardizedCNN initialization failed: {e}")
|
||||
self.standardized_cnn = None
|
||||
|
||||
def _initialize_enhanced_position_sync(self):
|
||||
"""Initialize enhanced position synchronization system"""
|
||||
try:
|
||||
|
Reference in New Issue
Block a user