From 5755881472e2060832dc7f626109a68aa71fce90 Mon Sep 17 00:00:00 2001
From: Administrator <15274802129@163.com>
Date: Thu, 25 Dec 2025 12:42:38 +0800
Subject: [PATCH] refactor(strategy): 重构MACD+MA策略实现并集成交易信号生成
---
src/main/java/com/xcong/excoin/modules/okxNewPrice/indicator/MA.java | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/main/java/com/xcong/excoin/modules/okxNewPrice/indicator/MA.java b/src/main/java/com/xcong/excoin/modules/okxNewPrice/indicator/MA.java
index e288c00..0da46e6 100644
--- a/src/main/java/com/xcong/excoin/modules/okxNewPrice/indicator/MA.java
+++ b/src/main/java/com/xcong/excoin/modules/okxNewPrice/indicator/MA.java
@@ -138,9 +138,9 @@
prevEma60 = calculateEMA(prices, ma60Period, prevEma60);
ema60 = prevEma60;
- log.debug("MA计算结果 - MA5({}): {}, MA10({}): {}, MA20({}): {}, MA30({}): {}, MA60({}): {}",
+ log.info("MA计算结果 - MA5({}): {}, MA10({}): {}, MA20({}): {}, MA30({}): {}, MA60({}): {}",
ma5Period, ma5, ma10Period, ma10, ma20Period, ma20, ma30Period, ma30, ma60Period, ma60);
- log.debug("EMA计算结果 - EMA5({}): {}, EMA10({}): {}, EMA20({}): {}, EMA30({}): {}, EMA60({}): {}",
+ log.info("EMA计算结果 - EMA5({}): {}, EMA10({}): {}, EMA20({}): {}, EMA30({}): {}, EMA60({}): {}",
ma5Period, ema5, ma10Period, ema10, ma20Period, ema20, ma30Period, ema30, ma60Period, ema60);
}
@@ -166,7 +166,7 @@
ma30Period = volatility.compareTo(highVolatility) < 0 ? 30 : 24;
ma60Period = volatility.compareTo(highVolatility) < 0 ? 50 : 34;
- log.debug("根据波动率{}调整MA周期: ma5={}, ma10={}, ma20={}, ma30={}, ma60={}",
+ log.info("根据波动率{}调整MA周期: ma5={}, ma10={}, ma20={}, ma30={}, ma60={}",
volatility, ma5Period, ma10Period, ma20Period, ma30Period, ma60Period);
}
--
Gitblit v1.9.1