diff --git a/user_data/strategies/grid_manager.py b/user_data/strategies/grid_manager.py index 2dd9be8..68069b4 100644 --- a/user_data/strategies/grid_manager.py +++ b/user_data/strategies/grid_manager.py @@ -285,7 +285,13 @@ class GridManager: if current_price < self.lowest_price: self.lowest_price = current_price - # 统计网格状态 + # ✅ 自动更新 pointer_index(根据价格变化) + move_steps = self.update_pointer_by_price(current_price) + if move_steps != 0: + print(f"[GridManager] {self.pair} 指针自动移动 {move_steps} 步", + file=sys.stderr, flush=True) + + # ... existing code ... filled_count = sum(1 for gs in self.grid_states.values() if gs.status == "filled") empty_count = len(self.grid_states) - filled_count