{% extends "base.html" %}
{% block title %}统计看板 · {{ app_name }}{% endblock %}
{% block content %}
统计看板
默认按北京时间今日真实平仓统计;对账/去重产生的假平仓已排除。
{% if selected_period == 'today' and stats.day %}当前:{{ stats.day }}{% endif %}
{% if stats.skipped_synthetic %} · 已排除假平仓 {{ stats.skipped_synthetic }} 笔{% endif %}
{% if stats.skipped_dup_ticket %} · 已排除重复单号 {{ stats.skipped_dup_ticket }} 笔{% endif %}
成交笔数
{{ stats.total }}
已平 {{ stats.closed }} · 持仓中 {{ stats.open_pos }}
胜率
{{ '%.1f'|format(stats.win_rate) }}%
盈 {{ stats.wins }} · 亏 {{ stats.losses }} · 平 {{ stats.breakeven }}
合计盈亏{% if selected_period=='today' %}(今日已平){% endif %}
{{ '%.2f'|format(stats.profit) }}
笔均 {{ '%.2f'|format(stats.avg_profit) }}
平均持仓时间
{{ stats.avg_hold }}
有开仓时间的样本参与计算
盈亏因子
{% if stats.profit_factor is none %}—
{% elif stats.profit_factor >= 999 %}∞
{% else %}{{ '%.2f'|format(stats.profit_factor) }}{% endif %}
毛利 {{ '%.2f'|format(stats.gross_win) }} / 毛亏 {{ '%.2f'|format(stats.gross_loss) }}
入场形式标注
{{ stats.annotated }} / {{ stats.total }}
未标注 {{ stats.unannotated }} · 问题标注 {{ stats.issue_tagged }}
按大类(顺势 / 反转 / 其他)
| 大类 | 笔数 | 胜率 | 盈亏 | 平均持仓 |
{% for g in stats.by_category %}
| {{ g.label }} |
{{ g.count }} |
{{ '%.1f'|format(g.win_rate) }}% |
{{ '%.2f'|format(g.profit) }}
|
{{ g.avg_hold }} |
{% else %}
| 暂无数据 |
{% endfor %}
按入场形式(细项)
| 形式 | 笔数 | 胜率 | 盈亏 | 平均持仓 |
{% for g in stats.by_style %}
| {{ g.label }} |
{{ g.count }} |
{{ '%.1f'|format(g.win_rate) }}% |
{{ '%.2f'|format(g.profit) }}
|
{{ g.avg_hold }} |
{% else %}
| 暂无数据 |
{% endfor %}
按持仓时间
| 区间 | 笔数 | 胜率 | 盈亏 | 平均持仓 |
{% for g in stats.by_hold %}
| {{ g.label }} |
{{ g.count }} |
{{ '%.1f'|format(g.win_rate) }}% |
{{ '%.2f'|format(g.profit) }}
|
{{ g.avg_hold }} |
{% else %}
| 暂无数据 |
{% endfor %}
按方向
| 方向 | 笔数 | 胜率 | 盈亏 | 平均持仓 |
{% for g in stats.by_side %}
| {{ g.label }} |
{{ g.count }} |
{{ '%.1f'|format(g.win_rate) }}% |
{{ '%.2f'|format(g.profit) }}
|
{{ g.avg_hold }} |
{% else %}
| 暂无数据 |
{% endfor %}
按主要问题
一笔可勾 1~2 个问题,会分别计入对应行。
| 问题 | 笔数 | 胜率 | 盈亏 | 平均持仓 |
{% for g in stats.by_issue %}
| {{ g.label }} |
{{ g.count }} |
{{ '%.1f'|format(g.win_rate) }}% |
{{ '%.2f'|format(g.profit) }}
|
{{ g.avg_hold }} |
{% else %}
| 暂无问题标注 |
{% endfor %}
按机器
| 机器 | 笔数 | 胜率 | 盈亏 | 笔均 | 平均持仓 |
{% for g in stats.by_machine %}
| {{ g.label }} |
{{ g.count }} |
{{ '%.1f'|format(g.win_rate) }}% |
{{ '%.2f'|format(g.profit) }}
|
{{ '%.2f'|format(g.avg_profit) }} |
{{ g.avg_hold }} |
{% else %}
| 暂无数据 |
{% endfor %}
{% endblock %}