{% set mf = money_fmt|default(funds_fmt) %}

策略交易记录

数据库保留最近 {{ strategy_records_limit|default(100) }} 条结束快照(按结束时间排序)。 趋势回调与顺势加仓分栏展示;点击行展开详情。结束计划、保本移交、止盈止损会自动写入。

筛选
趋势回调记录 {{ strategy_trend_records|length }} 条
{% for s in strategy_trend_records %} {% set snap = s.snapshot or {} %} {% set dca = snap.dca_levels if snap.dca_levels is defined else [] %} {% set pnl = s.pnl_amount if s.pnl_amount is not none else snap.pnl_amount %} {% set sym = s.symbol or s.exchange_symbol or snap.symbol or snap.exchange_symbol or '—' %}
#{{ s.id }} {{ sym }} {{ '做多' if s.direction == 'long' else '做空' }} {{ s.result_label or '—' }} {% if pnl is not none %}{{ mf(pnl) }}U{% else %}—{% endif %} 补仓 {{ s.summary_dca or '—' }} {{ (s.closed_at or '')[:16] }}
计划 ID
{{ s.source_id or '—' }}
开仓
{{ (s.opened_at or '')[:16] or '—' }}
结束
{{ (s.closed_at or '')[:16] or '—' }}
均价
{% if snap.avg_entry_price is not none %}{{ price_fmt(sym, snap.avg_entry_price) }}{% else %}—{% endif %}
止损
{% if snap.stop_loss is not none %}{{ price_fmt(sym, snap.stop_loss) }}{% else %}—{% endif %}
止盈
{% if snap.take_profit is not none %}{{ price_fmt(sym, snap.take_profit) }}{% else %}—{% endif %}
风险%
{{ snap.risk_percent if snap.risk_percent is defined else '—' }}
杠杆
{{ snap.leverage if snap.leverage is defined else '—' }}x
计划保证金
{% if snap.plan_margin_capital is not none %}{{ mf(snap.plan_margin_capital) }}U{% else %}—{% endif %}
{% if dca and dca|length %} {% for lv in dca %} {% endfor %}
档位触发价张数状态
{{ lv.label or lv.leg_key }} {% if lv.price is not none %}{{ price_fmt(sym, lv.price) }}{% else %}—{% endif %} {% if lv.contracts is not none %}{{ lv.contracts }}{% else %}—{% endif %} {{ lv.status_label or '—' }}
{% endif %}
{% else %}
暂无趋势回调结束记录
{% endfor %}
顺势加仓记录 {{ strategy_roll_records|length }} 条
{% for s in strategy_roll_records %} {% set snap = s.snapshot or {} %} {% set group = snap.group if snap.group is defined else {} %} {% set legs = snap.legs if snap.legs is defined else [] %} {% set pnl = s.pnl_amount if s.pnl_amount is not none else snap.pnl_amount %} {% set sym = s.symbol or s.exchange_symbol or snap.symbol or snap.exchange_symbol or '—' %}
#{{ s.id }} {{ sym }} {{ '做多' if s.direction == 'long' else '做空' }} {{ s.result_label or '—' }} {% if pnl is not none %}{{ mf(pnl) }}U{% else %}—{% endif %} 成交 {{ s.summary_dca or '—' }} {{ (s.closed_at or '')[:16] }}
组 ID
{{ s.source_id or '—' }}
创建
{{ (s.opened_at or group.created_at or '')[:16] or '—' }}
结束
{{ (s.closed_at or '')[:16] or '—' }}
状态
{{ s.status_at_close or group.status or '—' }}
杠杆
{{ group.leverage if group.leverage is defined else '—' }}x
备注
{{ group.message if group.message is defined else '—' }}
{% if legs and legs|length %} {% for leg in legs %} {% endfor %}
腿次挂单价张数状态
{{ leg.leg_index or loop.index }} {% if leg.limit_price is not none %}{{ price_fmt(sym, leg.limit_price) }}{% else %}—{% endif %} {% if leg.order_amount is not none %}{{ leg.order_amount }}{% else %}—{% endif %} {{ leg.status_label or leg.status or '—' }}
{% endif %}
{% else %}
暂无顺势加仓结束记录
{% endfor %}