{% extends "base.html" %} {% block title %}统计分析 - 国内期货监控系统{% endblock %} {% block content %}
总交易
{{ total }}
止盈
{{ win }}
止损
{{ loss }}
胜率
{{ rate }}%

按品种统计

{% for s in by_symbol %} {% else %} {% endfor %}
品种交易次数止盈次数胜率
{{ s.symbol_name or s.symbol }} {{ s.cnt }} {{ s.wins }} {{ round(s.wins / s.cnt * 100, 2) if s.cnt else 0 }}%
暂无数据

按类型统计

{% for t in by_type %} {% else %} {% endfor %}
类型交易次数止盈次数胜率
{{ t.monitor_type }} {{ t.cnt }} {{ t.wins }} {{ round(t.wins / t.cnt * 100, 2) if t.cnt else 0 }}%
暂无数据

按方向统计

{% for d in by_direction %} {% else %} {% endfor %}
方向交易次数止盈次数胜率
{{ '做多' if d.direction == 'long' else '做空' }} {{ d.cnt }} {{ d.wins }} {{ round(d.wins / d.cnt * 100, 2) if d.cnt else 0 }}%
暂无数据

最近 10 笔交易

{% for r in recent %} {% else %} {% endfor %}
品种方向结果时间
{{ r.symbol_name or r.symbol }} {{ '做多' if r.direction == 'long' else '做空' }} {% if r.result == '止盈' %}止盈 {% else %}止损{% endif %} {{ r.created_at[:16] if r.created_at else '' }}
暂无数据
{% endblock %}