From 94b653c5217e06a97232297262fb67a9cf8bd10f Mon Sep 17 00:00:00 2001
From: Administrator <15274802129@163.com>
Date: Sat, 11 Jul 2026 14:46:49 +0800
Subject: [PATCH] 价格驱动挂单开启

---
 src/main/java/com/xcong/excoin/modules/gateApi/GateGridTradeService.java |   24 ++++++++++++------------
 1 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/src/main/java/com/xcong/excoin/modules/gateApi/GateGridTradeService.java b/src/main/java/com/xcong/excoin/modules/gateApi/GateGridTradeService.java
index b19b33f..5f2b380 100644
--- a/src/main/java/com/xcong/excoin/modules/gateApi/GateGridTradeService.java
+++ b/src/main/java/com/xcong/excoin/modules/gateApi/GateGridTradeService.java
@@ -397,18 +397,18 @@
 
         checkProfitAndReset();
 
-//        if (state == StrategyState.ACTIVE &&
-//                longActive == false &&
-//                    longPositionSize.compareTo(BigDecimal.ZERO) == 0){
-//            processShortGrid(closePrice);
-//        }
-//
-//
-//        if (state == StrategyState.ACTIVE &&
-//                shortActive == false &&
-//                        shortPositionSize.compareTo(BigDecimal.ZERO) == 0){
-//            processLongGrid(closePrice);
-//        }
+        if (state == StrategyState.ACTIVE &&
+                longActive == false &&
+                    longPositionSize.compareTo(BigDecimal.ZERO) == 0){
+            processShortGrid(closePrice);
+        }
+
+
+        if (state == StrategyState.ACTIVE &&
+                shortActive == false &&
+                        shortPositionSize.compareTo(BigDecimal.ZERO) == 0){
+            processLongGrid(closePrice);
+        }
     }
 
     /** Gate 永续合约 taker 费率 0.05% */

--
Gitblit v1.9.1