misc
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@ -42,3 +42,5 @@ data/cnn_training/cnn_training_data*
|
|||||||
testcases/*
|
testcases/*
|
||||||
testcases/negative/case_index.json
|
testcases/negative/case_index.json
|
||||||
chrome_user_data/*
|
chrome_user_data/*
|
||||||
|
.aider*
|
||||||
|
.env
|
||||||
|
@ -1458,9 +1458,9 @@ class TradingOrchestrator:
|
|||||||
current_position_pnl=current_position_pnl
|
current_position_pnl=current_position_pnl
|
||||||
)
|
)
|
||||||
|
|
||||||
logger.info(f"Decision for {symbol}: {best_action} (confidence: {best_confidence:.3f}, "
|
# logger.info(f"Decision for {symbol}: {best_action} (confidence: {best_confidence:.3f}, "
|
||||||
f"entry_agg: {entry_aggressiveness:.2f}, exit_agg: {exit_aggressiveness:.2f}, "
|
# f"entry_agg: {entry_aggressiveness:.2f}, exit_agg: {exit_aggressiveness:.2f}, "
|
||||||
f"pnl: ${current_position_pnl:.2f})")
|
# f"pnl: ${current_position_pnl:.2f})")
|
||||||
|
|
||||||
# Trigger training on each decision (especially for executed trades)
|
# Trigger training on each decision (especially for executed trades)
|
||||||
self._trigger_training_on_decision(decision, price)
|
self._trigger_training_on_decision(decision, price)
|
||||||
|
@ -160,7 +160,9 @@ def start_clean_dashboard_with_training():
|
|||||||
logger.info("Enhanced Trading Orchestrator created with COB integration")
|
logger.info("Enhanced Trading Orchestrator created with COB integration")
|
||||||
|
|
||||||
# Create trading executor
|
# 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
|
# Connect trading executor to orchestrator
|
||||||
orchestrator.trading_executor = trading_executor
|
orchestrator.trading_executor = trading_executor
|
||||||
@ -170,11 +172,8 @@ def start_clean_dashboard_with_training():
|
|||||||
from web.clean_dashboard import create_clean_dashboard
|
from web.clean_dashboard import create_clean_dashboard
|
||||||
|
|
||||||
# Create clean dashboard
|
# Create clean dashboard
|
||||||
dashboard = create_clean_dashboard(
|
logger.info("Creating clean dashboard...")
|
||||||
data_provider=data_provider,
|
dashboard = create_clean_dashboard(data_provider, orchestrator, trading_executor)
|
||||||
orchestrator=orchestrator,
|
|
||||||
trading_executor=trading_executor
|
|
||||||
)
|
|
||||||
logger.info("Clean Trading Dashboard created")
|
logger.info("Clean Trading Dashboard created")
|
||||||
|
|
||||||
# Start training pipeline in background thread
|
# Start training pipeline in background thread
|
||||||
|
Reference in New Issue
Block a user