{% extends "base.html" %} {% block title %}统计看板 · {{ app_name }}{% endblock %} {% block content %}

统计看板

程序汇总成交数据;入场形式分类确定后再叠加维度。

交易列表 统计看板
{% if selected_machine_id %} 清除 {% endif %}
成交笔数
{{ stats.total }}
已平 {{ stats.closed }} · 持仓中 {{ stats.open_pos }}
胜率
{{ '%.1f'|format(stats.win_rate) }}%
盈 {{ stats.wins }} · 亏 {{ stats.losses }} · 平 {{ stats.breakeven }}
合计盈亏
{{ '%.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 }}(分类确定后再细拆)

按持仓时间

{% for g in stats.by_hold %} {% else %} {% endfor %}
区间笔数胜率盈亏平均持仓
{{ g.label }} {{ g.count }} {{ '%.1f'|format(g.win_rate) }}% {{ '%.2f'|format(g.profit) }} {{ g.avg_hold }}
暂无数据

按方向

{% for g in stats.by_side %} {% else %} {% endfor %}
方向笔数胜率盈亏平均持仓
{{ g.label }} {{ g.count }} {{ '%.1f'|format(g.win_rate) }}% {{ '%.2f'|format(g.profit) }} {{ g.avg_hold }}
暂无数据

按机器

{% for g in stats.by_machine %} {% else %} {% endfor %}
机器笔数胜率盈亏笔均平均持仓
{{ g.label }} {{ g.count }} {{ '%.1f'|format(g.win_rate) }}% {{ '%.2f'|format(g.profit) }} {{ '%.2f'|format(g.avg_profit) }} {{ g.avg_hold }}
暂无数据
{% endblock %}