Ver Fonte

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 há 4 dias atrás
pai
commit
3d5e262812
1 ficheiros alterados com 2 adições e 2 exclusões
  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()