{% extends "base.html" %} {% block title %}交易记录与复盘 - 国内期货监控系统{% endblock %} {% block content %}
| 品种 | 类型 | 方向 | 成交 | 止损(开仓) | 止盈 | 基数 | 杠杆 | 持仓分钟 | 开仓时间 | 平仓时间 | 盈亏(元) | 手续费 | 净盈亏 | 结果 | 操作 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ t.symbol_name or t.symbol }} | {{ t.monitor_type }} | {{ '做多' if t.direction == 'long' else '做空' }} | {{ t.entry_price }} | {{ t.stop_loss }} | {{ t.take_profit }} | {{ t.lots }}手 / {{ t.margin or '-' }} | — | {{ t.holding_minutes or 0 }} | {{ (t.open_time or '')[:16].replace('T',' ') }} | {{ (t.close_time or '')[:16].replace('T',' ') }} | {{ t.pnl if t.pnl is not none else '-' }} | {{ t.fee if t.fee is not none else '-' }} | {{ t.pnl_net if t.pnl_net is not none else '-' }} | {% if t.result == '止盈' %}{{ t.result }} {% elif t.result == '止损' %}{{ t.result }} {% elif t.result == '移动止盈' %}{{ t.result }} {% elif t.result == '保本止盈' %}{{ t.result }} {% elif t.result == '手动平仓' %}{{ t.result }} {% else %}{{ t.result }}{% endif %} {% if t.verified %}已核对{% endif %} | |
| 暂无交易记录 | |||||||||||||||
| 平仓 | 品种 | 方向 | 盈亏 | 手续费 | 净盈亏 | 情绪单 | 详情 | |
|---|---|---|---|---|---|---|---|---|
| {{ r.close_time[:16] if r.close_time else '' }} | {{ r.symbol_name or r.symbol }} | {{ '多' if r.direction == 'long' else '空' }} | {% if r.pnl and r.pnl > 0 %}{{ r.pnl }} {% elif r.pnl and r.pnl < 0 %}{{ r.pnl }} {% else %}{{ r.actual_pnl or '-' }}{% endif %} | {{ r.fee if r.fee is not none else '-' }} | {% if r.pnl_net and r.pnl_net > 0 %}{{ r.pnl_net }} {% elif r.pnl_net and r.pnl_net < 0 %}{{ r.pnl_net }} {% else %}-{% endif %} | {% if r.is_emotion %}情绪单{% else %}-{% endif %} | 删 | |
| 暂无复盘记录 | ||||||||
| 品种 | 类型 | 方向 | 触发价 | 结果 | 时间 |
|---|---|---|---|---|---|
| {{ r.symbol_name or r.symbol }} | {{ r.monitor_type }} | {{ '多' if r.direction == 'long' else '空' }} | {{ r.trigger_price }} | {% if r.result == '止盈' %}止盈{% else %}止损{% endif %} | {{ r.created_at[:16] if r.created_at else '' }} |