mirror of
https://github.com/discountry/ritmex-bot.git
synced 2026-09-09 16:28:06 +00:00
更新 MakerConfig,调整止损限制为 0.03;优化 MakerEngine 和 TrendEngine 的止损判断逻辑
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user