策略交易记录
已结束的趋势回调计划与顺势加仓组会在此留存快照(含补仓档位明细)。保本移交、手动结束、止盈止损均会写入。
{% if strategy_snapshots %}
| # |
策略 |
品种 |
方向 |
结果 |
盈亏U |
结束时间 |
补仓明细 |
{% 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 %}
| {{ 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 %}
| {{ 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 '—' }} |
{% endfor %}
{% elif s.strategy_type == 'roll' and snap.legs %}
{{ snap.legs|length }} 腿
| # | 状态 |
{% for leg in snap.legs %}
| {{ leg.leg_index or loop.index }} |
{{ leg.status_label or leg.status }} |
{% endfor %}
{% else %}—{% endif %}
|
{% endfor %}
{% else %}
暂无策略结束快照。结束趋势回调计划或顺势加仓组后会自动出现在此。
{% endif %}