{% macro period_stats(title, s) %}

{{ title }}

{{ s.range_label }}
开单次数
{{ s.opens_count }}
平仓笔数
{{ s.closed_count }}
胜率
{% if s.win_rate_pct is not none %}{{ s.win_rate_pct }}%{% else %}-{% endif %}
净盈亏(U)
{{ signed_usdt_fmt(s.net_pnl_u) }}
亏损额合计(U)
{{ usdt_fmt(s.loss_sum_u) }}
单笔最大亏损(U)
{% if s.max_single_loss is not none %}{{ signed_usdt_fmt(s.max_single_loss) }}{% else %}-{% endif %}
单笔最大盈利(U)
{% if s.max_single_profit is not none %}{{ usdt_fmt(s.max_single_profit) }}{% else %}-{% endif %}
最大回撤(U)
{{ usdt_fmt(s.max_drawdown_u) }}
当前连续亏损笔数
{{ s.consecutive_losses }}
最长连续亏损(交易日)
{{ s.max_loss_streak_days }} 天
期内最大亏损日
{% if s.worst_day %}{{ s.worst_day }}({{ signed_usdt_fmt(s.worst_day_pnl) }}U){% else %}-{% endif %}
{% endmacro %}

加密货币|交易监控 + AI复盘一体化

{{ exchange_display }}
关键位监控 实盘下单 策略交易 交易记录与复盘 统计分析
{% with msg=get_flashed_messages() %}{% if msg %}
{{ msg[0] }}
{% endif %}{% endwith %}
列表筛选(UTC,默认当日):{{ list_window.label }} 统计页仍按北京时间 {{ stats_bundle.stats_reset_hour|default(reset_hour) }}:00 切日
数据导出(v{{ data_export_version }} CSV,UTF-8;交易记录含开仓类型列,复盘单独导出): 交易记录 复盘记录 关键位(当前) 关键位历史
交易所
{{ exchange_display }}
总交易
{{ total }}
错过次数
{{ miss_count }}
胜率
{{ rate }}%
资金账户(USDT)
{% if funding_usdt is not none %}{{ usdt_fmt(funding_usdt) }}U{% else %}—{% endif %}
交易日
{{ trading_day }}
当日资金(交易账户)
{{ usdt_fmt(current_capital) }}U
实时价格更新时间:--(北京时间 UTC+8)
{% if page == 'key_monitor' %}

关键位监控

{% if focus_key_id %} 放大查看K线(默认200根) {% else %} 输入币种查看K线 {% endif %}
{{ key_gate_rule_text }}
{% for k in key %}
{{ k.symbol }} {{ '做多' if k.direction == 'long' else '做空' }} {{ k.monitor_type }}
上沿: {{ k.upper }} 下沿: {{ k.lower }} {% if k.fib_entry_price %}挂E: {{ k.fib_entry_price }}{% endif %} 已提醒: {{ k.notification_count or 0 }}/{{ k.max_notify or 3 }} {% if k.monitor_type in ['箱体突破','收敛突破'] %} 方案: {{ '标准突破' if (k.sl_tp_mode or 'standard') == 'standard' else ('箱体1R·止盈1.5H' if k.sl_tp_mode == 'box_1p5' else '趋势单') }} {% endif %} 保本: {{ '开' if k.breakeven_enabled else '关' }}
现价-
距上沿-
距下沿-
门控-
{% else %}
暂无监控中的关键位
{% endfor %}

关键位历史

失效或已结案的关键位
{% for h in key_history %}
{{ h.symbol }} {{ '做多' if h.direction == 'long' else '做空' }}
{{ h.monitor_type }} {{ h.close_reason }} {{ (h.closed_at or '-')[:16] }}
上: {{ h.upper }} 下: {{ h.lower }} 提醒: {{ h.notification_count }}
{% if h.last_alert_message %}
{{ h.last_alert_message[:180] }}{% if h.last_alert_message|length > 180 %}…{% endif %}
{% endif %}
{% else %}
暂无历史
{% endfor %}
{% elif page == 'trade' %}

实盘下单监控

{% if focus_order_id %} 放大查看K线(100根) {% else %} 暂无持仓可放大 {% endif %}
规则:最多 {{ max_active_positions }} 仓;BTC {{ btc_leverage }}x / 山寨 {{ alt_leverage }}x; {% if can_trade %}可开仓{% else %}不可开仓(持仓已满或未到北京时间 {{ reset_hour }}:00){% endif %}; 人工开仓盈亏比不得低于 {{ manual_min_planned_rr }}:1
以损定仓:风险 {{ risk_percent }}% |移动保本:下单可勾选关闭;开启时 {{ breakeven_rr_trigger }}R 触发(每 1R 阶梯上移),偏移 {{ breakeven_offset_pct }}%
划转:自动划转 {{ '开启' if auto_transfer_enabled else '关闭' }}(每天北京时间 {{ auto_transfer_bj_hour }}:00起该整点小时内尝试;账簿按 UTC 自然日去重;界面时间为北京;将 {{ auto_transfer_to }} 补足到 {{ auto_transfer_amount }}U,来自 {{ auto_transfer_from }})
成交价自动取交易所实时+成交回报

实时持仓

{% for o in order %}
{{ o.exchange_symbol or o.symbol }} {{ '做多' if o.direction == 'long' else '做空' }}
平仓
来源: {{ o.monitor_type|default('下单监控', true) }}{% if o.key_signal_type %} · {{ o.key_signal_type }}{% endif %} 风格: {{ o.trade_style or 'trend' }} 风险: {{ o.risk_percent or '-' }}%≈{% if o.risk_amount is not none %}{{ usdt_fmt(o.risk_amount) }}{% else %}-{% endif %}U {% if o.breakeven_enabled %}移动保本:开 {{ o.breakeven_rr_trigger or '-' }}R→{{ price_fmt(o.symbol, o.breakeven_price) }}{% else %}移动保本:关{% endif %}
成交价 {{ price_fmt(o.symbol, o.trigger_price) }}
止损 {% if o.stop_loss %} {{ price_fmt(o.symbol, o.stop_loss) }} {% else %} {% endif %}
止盈 {% if o.take_profit %} {{ price_fmt(o.symbol, o.take_profit) }} {% else %} {% endif %}
盈亏比 {% if o.rr_ratio is not none %}{{ '%g'|format(o.rr_ratio) }}:1{% else %}-:1{% endif %}
标记价 -
浮盈亏 -
交易所止盈止损
止损:加载中…
止盈:加载中…
{% else %}
暂无持仓
{% endfor %}

挂止盈止损

将先撤销该合约已有 TP/SL,再按下列价格重挂。

{% elif page == 'strategy_trend' %} {% include 'strategy_trend_disabled_panel.html' %} {% elif page == 'strategy_roll' %} {% include 'strategy_roll_panel.html' %} {% endif %} {% if page == 'records' %}

交易记录 & 错过机会

盈亏U:=交易所平仓历史, =本地估算。 {% if exchange_pnl_sync %} {% if exchange_pnl_sync.skipped %}(25秒内已同步,可点右侧按钮强制){% else %} 本轮:平仓历史 {{ exchange_pnl_sync.hist_count or 0 }} 条,对齐 {{ exchange_pnl_sync.matched or 0 }} 笔{% if exchange_pnl_sync.reason %} — {{ exchange_pnl_sync.reason }}{% endif %} {% endif %} {% endif %}
{% for r in record %} {% set pnl_val = (r.pnl_amount or 0)|float %} {% set stop_show = r.display_open_stop_loss or r.initial_stop_loss or r.stop_loss %} {% set tp_show = r.effective_take_profit or r.take_profit %} {% set pnl_val = (r.effective_pnl_amount or 0)|float %} {% endfor %}
品种类型方向成交止损(开仓)止盈基数杠杆持仓分钟开仓时间(北京)平仓时间(北京)盈亏U结果操作
{{ r.symbol }} {{ r.monitor_type }}{% if r.key_signal_type %} · {{ r.key_signal_type }}{% endif %} {{ '做多' if r.direction == 'long' else '做空' }} {{ price_fmt(r.symbol, r.trigger_price) }}{{ price_fmt(r.symbol, stop_show) }} {{ price_fmt(r.symbol, tp_show) }} {% if r.margin_capital is not none %}{{ usdt_fmt(r.margin_capital) }}{% else %}-{% endif %} {{ r.leverage or '-' }} {{ r.effective_hold_minutes or 0 }} {{ (r.effective_opened_at or '-')[:16] }} {{ (r.effective_closed_at or r.created_at or '-')[:16] }}{{ signed_usdt_fmt(r.effective_pnl_amount or 0) }}{% if r.display_pnl_source == 'exchange' %}{% elif r.display_pnl_source != 'reviewed' %}{% endif %} {% set effective_result = r.effective_result %} {% if effective_result in ["止盈","保本止盈","移动止盈"] %}{{ effective_result }} {% elif effective_result in ["止损","强制清仓","手动平仓"] %}{{ effective_result }} {% else %}{{ effective_result }}{% endif %}

记录错过机会

交易复盘记录上传(含截图)

AI复盘(按交易记录)

交易复盘记录
AI历史复盘
{% endif %} {% if page == 'stats' %}

数据统计

持仓占用导致错过(累计)
{{ occupied_miss_total }}
统计分析按北京时间 {{ stats_bundle.stats_reset_hour }}:00切日计入(与顶栏 UTC 列表窗无关)。历史总开仓(累计): {{ stats_bundle.total_opens_all }}
{% for seg in stats_bundle.segments %} {% endfor %}
{% endif %}
详情