Procházet zdrojové kódy

Update stop loss activation logic in MarketMonitor - Changed the method for checking pending stop losses from active trades to the trades table, aligning with the new unified trades management approach. This update enhances the priority handling of stop loss activations, improving overall trading accuracy.

Carles Sentis před 4 dny
rodič
revize
3d5e262812
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      src/monitoring/market_monitor.py

+ 2 - 2
src/monitoring/market_monitor.py

@@ -156,8 +156,8 @@ class MarketMonitor:
         try:
             loop_count = 0
             while self._monitoring_active:
-                # 🆕 PHASE 2: Check active trades for pending stop loss activation first (highest priority)
-                await self._activate_pending_stop_losses_from_active_trades()
+                # 🆕 PHASE 4: Check trades table for pending stop loss activation first (highest priority)
+                await self._activate_pending_stop_losses_from_trades()
                 
                 await self._check_order_fills()
                 await self._check_price_alarms()