diff --git a/.gitignore b/.gitignore index aafc917..1dbb0d6 100644 --- a/.gitignore +++ b/.gitignore @@ -42,3 +42,5 @@ data/cnn_training/cnn_training_data* testcases/* testcases/negative/case_index.json chrome_user_data/* +.aider* +.env diff --git a/core/orchestrator.py b/core/orchestrator.py index 1ddf2b5..eb061f5 100644 --- a/core/orchestrator.py +++ b/core/orchestrator.py @@ -1458,9 +1458,9 @@ class TradingOrchestrator: current_position_pnl=current_position_pnl ) - logger.info(f"Decision for {symbol}: {best_action} (confidence: {best_confidence:.3f}, " - f"entry_agg: {entry_aggressiveness:.2f}, exit_agg: {exit_aggressiveness:.2f}, " - f"pnl: ${current_position_pnl:.2f})") + # logger.info(f"Decision for {symbol}: {best_action} (confidence: {best_confidence:.3f}, " + # f"entry_agg: {entry_aggressiveness:.2f}, exit_agg: {exit_aggressiveness:.2f}, " + # f"pnl: ${current_position_pnl:.2f})") # Trigger training on each decision (especially for executed trades) self._trigger_training_on_decision(decision, price) diff --git a/run_clean_dashboard.py b/run_clean_dashboard.py index eef04ee..d0070cd 100644 --- a/run_clean_dashboard.py +++ b/run_clean_dashboard.py @@ -160,7 +160,9 @@ def start_clean_dashboard_with_training(): logger.info("Enhanced Trading Orchestrator created with COB integration") # Create trading executor - trading_executor = TradingExecutor() + trading_executor = TradingExecutor(config_path="config.yaml") + logger.info(f"Creating trading executor with {trading_executor.primary_name} configuration...") + # Connect trading executor to orchestrator orchestrator.trading_executor = trading_executor @@ -170,11 +172,8 @@ def start_clean_dashboard_with_training(): from web.clean_dashboard import create_clean_dashboard # Create clean dashboard - dashboard = create_clean_dashboard( - data_provider=data_provider, - orchestrator=orchestrator, - trading_executor=trading_executor - ) + logger.info("Creating clean dashboard...") + dashboard = create_clean_dashboard(data_provider, orchestrator, trading_executor) logger.info("Clean Trading Dashboard created") # Start training pipeline in background thread