From b0c4c70716351b4c539c03b0f1f6c4fd516779f2 Mon Sep 17 00:00:00 2001
From: Administrator <15274802129@163.com>
Date: Mon, 05 Jan 2026 15:56:00 +0800
Subject: [PATCH] fix(okxNewPrice): 修复日志输出变量错误

---
 src/main/java/com/xcong/excoin/modules/okxNewPrice/indicator/macdAndMatrategy/MacdMaStrategy.java |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/main/java/com/xcong/excoin/modules/okxNewPrice/indicator/macdAndMatrategy/MacdMaStrategy.java b/src/main/java/com/xcong/excoin/modules/okxNewPrice/indicator/macdAndMatrategy/MacdMaStrategy.java
index 7a80222..7568e2b 100644
--- a/src/main/java/com/xcong/excoin/modules/okxNewPrice/indicator/macdAndMatrategy/MacdMaStrategy.java
+++ b/src/main/java/com/xcong/excoin/modules/okxNewPrice/indicator/macdAndMatrategy/MacdMaStrategy.java
@@ -384,7 +384,7 @@
         PriceData previous = macdData.get(macdData.size() - 2);
         
         // 金叉判断:DIF从下往上穿过DEA
-        return previous.getDif().compareTo(previous.getDea()) <= 0 && 
+        return previous.getDif().compareTo(previous.getDea()) < 0 && 
                latest.getDif().compareTo(latest.getDea()) > 0;
     }
     
@@ -406,7 +406,7 @@
         PriceData previous = macdData.get(macdData.size() - 2);
         
         // 死叉判断:DIF从上往下穿过DEA
-        return previous.getDif().compareTo(previous.getDea()) >= 0 && 
+        return previous.getDif().compareTo(previous.getDea()) > 0 && 
                latest.getDif().compareTo(latest.getDea()) < 0;
     }
     
@@ -454,4 +454,4 @@
                latest.getMacdHist().compareTo(BigDecimal.ZERO) < 0;
     }
 
-}
+}
\ No newline at end of file

--
Gitblit v1.9.1