Exclude trend and roll monitors from position-limit freeze count.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-24 02:04:09 +08:00
parent 322060de31
commit 9d1986d771
9 changed files with 140 additions and 6 deletions
+1 -1
View File
@@ -721,7 +721,7 @@ def apply_position_limit_risk(
out["status"] = STATUS_FREEZE_POSITION
out["status_label"] = STATUS_LABELS[STATUS_FREEZE_POSITION]
out["can_trade"] = False
out["reason"] = f"已达最大持仓数({ac}/{mx}),平仓前不可新开"
out["reason"] = f"已达最大持仓数({ac}/{mx},不含趋势回调/顺势加仓),平仓前不可新开"
out["position_limit_frozen"] = True
out["freeze_until_ms"] = None
out["freeze_remaining_sec"] = 0