{# Copyright (c) 2025-2026 马建军. All rights reserved. 专有软件,详见 LICENSE.zh-CN.txt #} {% extends "base.html" %} {% block title %}下单监控 - 国内期货 · 交易复盘系统{% endblock %} {% block extra_css %} {% endblock %} {% block content %}
{{ trading_mode_label }} {% if ctp_status.connected %}CTP 已连接{% else %}CTP 未连接{% endif %} {{ risk_status.status_label }} 权益 {{ '%.2f'|format(capital) }} {% if ctp_account.available is defined and ctp_status.connected %} 可用 {{ '%.2f'|format(ctp_account.available) }} {% endif %} · {{ session_clock.now_time }} · {{ session_clock.status_label }} {% if not session_clock.in_session and session_clock.next_open_at %} · 下次{{ session_clock.next_open_label }} {{ session_clock.next_open_at }} · 距开盘 {{ session_clock.countdown_open }} {% elif session_clock.in_session %} {% if session_clock.countdown_break %} · 距{{ session_clock.break_label }} {{ session_clock.countdown_break }} {% endif %} {% if session_clock.countdown_close %} · 距{{ session_clock.close_label }} {{ session_clock.countdown_close }} {% endif %} {% endif %}
{% if ctp_auto_connect %}断线自动重连 · 开盘前 30 分钟自动连接{% else %}CTP 自动连接已关闭{% endif %}

期货下单

计仓 {{ sizing_mode_label }} {% if sizing_mode == 'fixed' %} · {{ fixed_lots }} 手 {% elif sizing_mode in ('amount', 'risk') %} · {{ '%.0f'|format(fixed_amount) }} 元 {% endif %}
规则说明

开仓

  • CTP 已连接 且处于交易时段;账户风控允许(顶栏状态)
  • 固定金额计仓、开启移动保本时须填写止损
  • 手数:固定手数,或按止损距离与单笔风险金额自动计算;保证金占用不超过系统设置上限
  • 限价未成交 → 挂单中,超时自动撤单(系统设置可改分钟数)

止盈 / 止损 / 移动保本

  • 成交后由程序本地监控;触及止盈或止损 → 市价平仓
  • 移动保本:须填止损、不设固定止盈;达 1R 止损移至开仓±缓冲跳,2R 移 1R,依次类推
  • 手动平仓写入交易记录;当日手动平仓次数超限 → 进入冷静期

可开仓品种表

  • 按权益与保证金上限筛选;权益 ≤20 万或 CTP 未连接时仅四品种(玉米、豆粕、甲醇、螺纹钢)

委托与持仓

委托、持仓均以 CTP 柜台为准;止盈止损为程序本地监控,触发后市价平仓。

当前委托

加载委托…

当前持仓

加载持仓…

可开仓品种

最大手数 = floor((权益 × 保证金上限 {{ max_margin_pct }}% − 已占用保证金) ÷ 1手保证金);当前权益 {{ '%.2f'|format(recommend_capital) }}。 {% if sizing_mode == 'fixed' %}仅显示最大手数 ≥ {{ fixed_lots }} 手的品种。{% endif %} {% if small_account_scope %}{{ small_account_scope_hint }}。{% endif %} {% if small_account_margin_rec %}{{ small_account_margin_rec.label }}。{% endif %} {% if night_session %}当前为夜盘时段,品种下拉与下表仅显示有夜盘品种;带「夜盘」标记。{% elif not small_account_scope %}有夜盘交易的品种带「夜盘」标记。{% endif %} 保证金优先读取 CTP 柜台合约信息。 {% if recommend_updated_at %}每日后台更新 · 最近 {{ recommend_updated_at }}{% else %}等待今日后台刷新…{% endif %}

走势:近一周日线,近3日重叠≥70%为震荡;跳空=今日开盘 vs 昨日收盘。成交量为昨日成交手数,成交额=成交量×昨收×合约乘数。支持按走势/跳空/成交量/振幅排序,可按行业筛选。

{% if recommend_rows %} {% for r in recommend_rows %} {% endfor %} {% else %} {% endif %}
品种交易所行业走势是否跳空 参考价昨日收盘今日开盘 昨日涨跌昨日振幅 成交量(手)成交额 乘数最小变动 1手保证金1手手续费最大手数状态
{% if r.main_code and nav_items.market %} {{ r.name }}{% if r.has_night_session %} 夜盘{% endif %} {{ r.main_code }} {% else %} {{ r.name }}{% if r.has_night_session %} 夜盘{% endif %} {{ r.main_code or r.ths }} {% endif %} {{ r.exchange }} {{ r.category or '—' }} {% if r.trend_label and r.trend_label != '—' %} {% if r.trend_transition %}★ {% endif %}{{ r.trend_label }} {% else %}—{% endif %} {% if r.gap_label and r.gap_label != '—' %} {{ r.gap_label }} {% else %}—{% endif %} {% if r.price %}{{ r.price }}{% else %}—{% endif %} {% if r.prev_close is not none %}{{ r.prev_close }}{% else %}—{% endif %} {% if r.today_open is not none %}{{ r.today_open }}{% else %}—{% endif %} {% if r.yesterday_change is not none %} {{ '%+.4f'|format(r.yesterday_change) }}{% if r.yesterday_change_pct is not none %} ({{ '%+.2f'|format(r.yesterday_change_pct) }}%){% endif %} {% else %}—{% endif %} {% if r.yesterday_amplitude_pct is not none %}{{ '%.2f'|format(r.yesterday_amplitude_pct) }}%{% else %}—{% endif %} {% if r.volume is not none %}{{ r.volume }}{% else %}—{% endif %} {% if r.turnover is not none %}{{ '%.0f'|format(r.turnover) }}{% else %}—{% endif %} {% if r.mult is not none %}{{ '%g'|format(r.mult) }}{% if r.spec_source == 'ctp' %} (柜台){% endif %}{% else %}—{% endif %} {% if r.tick_size is not none %}{{ '%g'|format(r.tick_size) }}{% if r.spec_source == 'ctp' %} (柜台){% endif %}{% else %}—{% endif %} {% if r.margin_one_lot %}{{ r.margin_one_lot }}{% if r.margin_source == 'ctp' %} (柜台){% endif %}{% else %}—{% endif %} {% if r.open_fee_one_lot is defined and r.open_fee_one_lot is not none %}{{ r.open_fee_one_lot }}{% else %}—{% endif %} {% if r.max_lots is not none and r.max_lots > 0 %}{{ r.max_lots }}{% else %}—{% endif %} {{ r.status_label }}
等待今日后台刷新推荐…
{% endblock %} {% block extra_js %} {% endblock %}