Split journal order type from entry reason and fix review edit toggle in embed shell.
Adds order_type to journal uploads, removes legacy swing/trend labels from entry reason options, and ensures review-edit buttons sync when the records tab loads dynamically. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -312,7 +312,12 @@ _INTRADAY_JOURNAL_KEY_ENTRY_REASONS: Tuple[str, ...] = (
|
||||
def trend_manual_entry_reason_count(policy: TradePolicy) -> int:
|
||||
if is_intraday_trading_profile(policy):
|
||||
return len(intraday_entry_reason_display_options())
|
||||
return len(trend_div_entry_reason_display_options()) + len(TRADE_STYLE_FALLBACK_ENTRY_REASONS)
|
||||
return len(trend_div_entry_reason_display_options())
|
||||
|
||||
|
||||
def build_journal_entry_reason_options() -> Tuple[str, ...]:
|
||||
"""复盘开仓类型:仅 entry model,不含 trade_style 兜底与策略下单类型."""
|
||||
return trend_div_entry_reason_display_options()
|
||||
|
||||
|
||||
def build_trend_div_entry_reason_options(
|
||||
|
||||
Reference in New Issue
Block a user