{# Copyright (c) 2025-2026 马建军. All rights reserved. 专有软件,详见 LICENSE.zh-CN.txt #} {% extends "base.html" %} {% block title %}交易记录与复盘 - 国内期货 · 交易复盘系统{% endblock %} {% block extra_css %} {% endblock %} {% block content %}

资金曲线

交易记录

{% if ctp_sync_info and ctp_sync_info.connected %}

已连接 CTP,本页已自动同步柜台成交(新增 {{ ctp_sync_info.synced or 0 }} 条,更新 {{ ctp_sync_info.updated or 0 }} 条)。 带来源「柜台」的记录以交易所成交为准;「本地」为程序写入,可手动删除错误项。

{% else %}

CTP 未连接时仅显示本地数据库记录;连接后打开本页会自动同步柜台成交。

{% endif %}
{% for t in trades %} {% else %}

暂无交易记录

{% endfor %}
{% for t in trades %} {% else %} {% endfor %}
品种类型方向 成交止损(开仓)止盈 手数保证金保证金占比持仓分钟 开仓时间平仓时间 盈亏(元)手续费净盈亏最新资金结果操作
{{ t.symbol_name or t.symbol }} {{ t.monitor_type }} {% if t.source == 'ctp' %} 柜台 {% else %} 本地 {% endif %} {{ '做多' if t.direction == 'long' else '做空' }} {{ t.entry_price }} {{ t.stop_loss }} {{ t.take_profit }} {{ t.lots }} {{ t.margin if t.margin is not none else '-' }} {% if t.margin_pct is not none %}{{ t.margin_pct }}%{% else %}-{% endif %} {{ 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 '-' }} {{ t.equity_after if t.equity_after 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 %}
填入复盘 删除
暂无交易记录

复盘上传

开仓时间
平仓时间

勾选行为标签即为情绪单

{% for tag in behavior_tags %} {% endfor %}

复盘历史

{% if preset == 'custom' or start or end %}
{% endif %}
{% for r in reviews %} {% else %}

暂无复盘记录

{% endfor %}
{% for r in reviews %} {% else %} {% endfor %}
平仓品种方向盈亏手续费净盈亏情绪单详情
{{ 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 %}
暂无复盘记录
{% if auto_records %}

系统自动记录(止盈/止损)

{% for r in auto_records %} {% endfor %}
品种类型方向触发价结果时间
{{ 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 '' }}
{% endif %}
{% endblock %} {% block extra_js %} {% if prefill %} {% endif %} {% endblock %}