fix: label trend breakeven handoff as 趋势回调 across four exchanges

Set order monitor and trade record source to trend pullback after handoff; unify hub and instance display; add migration script for legacy rows.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-04 06:30:14 +08:00
parent 97e0355209
commit 1b3f661bad
10 changed files with 167 additions and 51 deletions
+1 -1
View File
@@ -748,7 +748,7 @@ def _insert_trend_handoff_order_monitor(
if not trading_day and callable(getattr(m, "get_trading_day", None)):
trading_day = m.get_trading_day()
notional = margin_cap * lev if margin_cap and lev else None
monitor_type = _order_monitor_manual_type(m)
monitor_type = MONITOR_TYPE_TREND_PULLBACK
conn.execute(
"INSERT INTO order_monitors "
"(symbol, exchange_symbol, direction, trigger_price, stop_loss, initial_stop_loss, take_profit, "