更新 MakerConfig,调整止损限制为 0.03;优化 MakerEngine 和 TrendEngine 的止损判断逻辑

This commit is contained in:
discountry
2025-09-24 02:07:48 +08:00
parent 402999203a
commit c79662bb7c
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -339,7 +339,7 @@ export class MakerEngine {
const snapshotLoss = Boolean(
unrealized != null &&
unrealized < -this.config.lossLimit &&
Math.sign(unrealized) === Math.sign(pnl)
pnl <= 0
);
if (derivedLoss || snapshotLoss) {
+1 -1
View File
@@ -366,7 +366,7 @@ export class TrendEngine {
const snapshotLoss = Boolean(
unrealized != null &&
unrealized < -this.config.lossLimit &&
Math.sign(unrealized) === Math.sign(pnl)
pnl <= 0
);
if (derivedLoss || snapshotLoss) {