remove emojis from console
This commit is contained in:
@@ -23,13 +23,13 @@
|
||||
|
||||
2. **Calls ALL Models**
|
||||
```python
|
||||
# ✅ CNN Model
|
||||
# CNN Model
|
||||
cnn_prediction = self.orchestrator.cnn_model.predict(cnn_features)
|
||||
|
||||
# ✅ DQN Agent
|
||||
# DQN Agent
|
||||
action = self.orchestrator.dqn_agent.act(dqn_state)
|
||||
|
||||
# ✅ COB RL
|
||||
# COB RL
|
||||
cob_prediction = self.orchestrator.cob_rl_model.predict(cob_features)
|
||||
```
|
||||
|
||||
@@ -86,9 +86,9 @@ class TradingOrchestrator:
|
||||
)
|
||||
|
||||
if result:
|
||||
logger.info(f"✅ Signal executed successfully")
|
||||
logger.info(f" Signal executed successfully")
|
||||
else:
|
||||
logger.warning(f"⚠️ Signal execution failed or blocked")
|
||||
logger.warning(f" Signal execution failed or blocked")
|
||||
|
||||
except Exception as e:
|
||||
logger.error(f"Error processing prediction signal: {e}")
|
||||
@@ -116,7 +116,7 @@ class CleanTradingDashboard:
|
||||
name="PredictionLoop"
|
||||
)
|
||||
self.prediction_thread.start()
|
||||
logger.info("🔄 Real-time prediction loop started in background")
|
||||
logger.info(" Real-time prediction loop started in background")
|
||||
```
|
||||
|
||||
### Step 3: Update Data Provider (if needed)
|
||||
@@ -151,22 +151,22 @@ async def get_latest_candles(self, symbol: str, timeframe: str, limit: int = 100
|
||||
INFO:web.clean_dashboard:🔗 Running initial chained inference...
|
||||
INFO:web.clean_dashboard:🔗 Running chained inference for ETH/USDT with 10 steps
|
||||
WARNING:core.orchestrator:No model predictions available for step 0
|
||||
WARNING:web.clean_dashboard:❌ Chained inference returned no predictions
|
||||
WARNING:web.clean_dashboard: Chained inference returned no predictions
|
||||
|
||||
# Then nothing... models never called again
|
||||
```
|
||||
|
||||
### After (Expected):
|
||||
```
|
||||
INFO:core.realtime_prediction_loop:🔄 Starting Real-Time Prediction Loop
|
||||
INFO:core.realtime_prediction_loop:🔄 Prediction loop started for ETH/USDT
|
||||
INFO:core.realtime_prediction_loop:🔄 Prediction loop started for BTC/USDT
|
||||
INFO:core.realtime_prediction_loop: Starting Real-Time Prediction Loop
|
||||
INFO:core.realtime_prediction_loop: Prediction loop started for ETH/USDT
|
||||
INFO:core.realtime_prediction_loop: Prediction loop started for BTC/USDT
|
||||
|
||||
# Every 1-5 seconds:
|
||||
INFO:core.realtime_prediction_loop:📊 New 1s candle detected for ETH/USDT - running predictions
|
||||
INFO:core.realtime_prediction_loop:✅ CNN prediction for ETH/USDT: {'action': 'BUY', 'confidence': 0.78}
|
||||
INFO:core.realtime_prediction_loop:✅ DQN prediction for ETH/USDT: BUY
|
||||
INFO:core.realtime_prediction_loop:✅ COB RL prediction for ETH/USDT: {'action': 'BUY', 'confidence': 0.82}
|
||||
INFO:core.realtime_prediction_loop: CNN prediction for ETH/USDT: {'action': 'BUY', 'confidence': 0.78}
|
||||
INFO:core.realtime_prediction_loop: DQN prediction for ETH/USDT: BUY
|
||||
INFO:core.realtime_prediction_loop: COB RL prediction for ETH/USDT: {'action': 'BUY', 'confidence': 0.82}
|
||||
INFO:core.realtime_prediction_loop:📤 Trading signal sent for ETH/USDT: BUY (confidence: 0.80, trigger: new_1s_candle)
|
||||
|
||||
INFO:core.orchestrator:📥 Received prediction signal: BUY for ETH/USDT (conf: 0.80)
|
||||
@@ -180,10 +180,10 @@ INFO:core.trading_executor:Executing BUY: 0.050000 ETH/USDT at $4191.25
|
||||
### Check if Prediction Loop is Running:
|
||||
```python
|
||||
# In dashboard or orchestrator logs, look for:
|
||||
- "🔄 Real-time prediction loop started"
|
||||
- " Real-time prediction loop started"
|
||||
- "📊 New 1s candle detected" (every second)
|
||||
- "✅ CNN prediction" (model being called!)
|
||||
- "✅ DQN prediction" (model being called!)
|
||||
- " CNN prediction" (model being called!)
|
||||
- " DQN prediction" (model being called!)
|
||||
- "📤 Trading signal sent"
|
||||
```
|
||||
|
||||
@@ -208,7 +208,7 @@ cob_predictions_count = 0
|
||||
|
||||
## Files Modified
|
||||
|
||||
1. ✅ **core/realtime_prediction_loop.py** (NEW)
|
||||
1. **core/realtime_prediction_loop.py** (NEW)
|
||||
- Created prediction loop
|
||||
|
||||
2. ⏳ **core/orchestrator.py** (TO MODIFY)
|
||||
|
||||
Reference in New Issue
Block a user