策略交易记录

已结束的趋势回调计划与顺势加仓组会在此留存快照(含补仓档位明细)。保本移交、手动结束、止盈止损均会写入。

{% if strategy_snapshots %}
{% for s in strategy_snapshots %} {% 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 %} {% endfor %}
# 策略 品种 方向 结果 盈亏U 结束时间 补仓明细
{{ s.id }} {{ s.strategy_label }} {{ s.symbol or s.exchange_symbol or '—' }} {{ '做多' if s.direction == 'long' else '做空' }} {{ s.result_label or '—' }} {% if pnl is not none %}{{ funds_fmt(pnl) }}{% else %}—{% endif %} {{ (s.closed_at or '')[:19] }} {% if dca and dca|length %}
{{ dca|length }} 档 {% for lv in dca %} {% endfor %}
档位触发价张数状态
{{ lv.label or lv.leg_key }} {% if lv.price is not none %}{{ price_fmt(s.symbol or s.exchange_symbol, lv.price) }}{% else %}—{% endif %} {% if lv.contracts is not none %}{{ lv.contracts }}{% else %}—{% endif %} {{ lv.status_label or '—' }}
{% elif s.strategy_type == 'roll' and snap.legs %}
{{ snap.legs|length }} 腿 {% for leg in snap.legs %} {% endfor %}
#状态
{{ leg.leg_index or loop.index }} {{ leg.status_label or leg.status }}
{% else %}—{% endif %}
{% else %}
暂无策略结束快照。结束趋势回调计划或顺势加仓组后会自动出现在此。
{% endif %}