feat: strategy trade snapshots, DCA detail, and hub trend layout
Persist ended trend pullback and roll group snapshots to a unified records page; show replenishment tiers on instance and hub cards with horizontal single-position layout. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -6008,12 +6008,12 @@ def render_main_page(page="trade"):
|
||||
f"【阻力/支撑】填上/下沿,5m 收盘突破任一侧即提醒 {KEY_ALERT_MAX_TIMES} 次(间隔 {KEY_ALERT_INTERVAL_MINUTES} 分),不选方向、不自动开仓"
|
||||
)
|
||||
strategy_extra = {}
|
||||
if page in ("strategy", "strategy_trend", "strategy_roll"):
|
||||
from strategy_ui import strategy_page_template_vars
|
||||
if page in ("strategy", "strategy_trend", "strategy_roll", "strategy_records"):
|
||||
from strategy_ui import strategy_render_extras
|
||||
|
||||
strategy_extra = strategy_page_template_vars(
|
||||
strategy_extra = strategy_render_extras(
|
||||
conn,
|
||||
"strategy",
|
||||
page,
|
||||
default_risk_percent=float(RISK_PERCENT),
|
||||
request_obj=request,
|
||||
trend_cfg=app.extensions.get("strategy_trend_cfg"),
|
||||
|
||||
Reference in New Issue
Block a user