Quellcode durchsuchen

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 vor 4 Tagen
Ursprung
Commit
3d5e262812
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  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()