Add dual exit modes: fixed USDT or premium multiple.

Net PnL (after estimated close fees) drives auto close; Plan/Settings expose the choice.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-25 09:17:50 +08:00
parent 9fd2a842af
commit cce26e87b5
13 changed files with 282 additions and 72 deletions
+3
View File
@@ -150,6 +150,9 @@ class Database:
"initial_equity": str(s.initial_equity),
"exit_move_points": str(s.exit_move_points),
"exit_move_pct": str(s.exit_move_pct),
"exit_mode": str(s.exit_mode),
"net_profit_target": str(s.net_profit_target),
"premium_exit_multiple": str(s.premium_exit_multiple),
"rest_seconds": str(s.rest_seconds),
"max_rounds": str(s.max_rounds),
"leverage": str(s.leverage),