Make options target close gate configurable via env.
Support premium multiplier (coin default 1.05) or net-PnL USDT threshold with index conversion. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -832,7 +832,7 @@
|
||||
const gate = preview.close_gate || {};
|
||||
// 2× 只是目标平仓门控,本身不会自动平;手动买一平不拦截
|
||||
if (preview.close_gate_blocked || (gate.ready === false && !gate.passed)) {
|
||||
return "目标门控: " + (preview.close_gate_msg || gate.msg || "可回收需≥2×权利金并持续2分钟");
|
||||
return "目标门控: " + (preview.close_gate_msg || gate.msg || "目标平仓门控未过");
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
@@ -118,7 +118,7 @@
|
||||
}
|
||||
const gate = preview.close_gate || {};
|
||||
if (preview.close_gate_blocked || (gate.ready === false && !gate.passed)) {
|
||||
return "目标门控: " + (preview.close_gate_msg || gate.msg || "可回收需≥2×权利金并持续2分钟");
|
||||
return "目标门控: " + (preview.close_gate_msg || gate.msg || "目标平仓门控未过");
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user