进入 Private

交易机器人需要密码。
密码不会发送到服务器。

返回 Public
Private

交易机器人

{{ String(dashboard.account.trading_mode || 'paper').toUpperCase() }} · {{ dashboard.account.status === 'running' ? '运行中' : '已停止' }} 告警 {{ recentErrorCount }}
{{ dashboard.status.risk.halted ? '账户级风控已熔断' : (dashboard.account.trading_mode === 'live' ? '当前连接真实资金账户' : '券商账户限制') }}
{{ dashboard.status.risk.reason || (dashboard.account.trading_mode === 'live' ? '真实订单会产生实际盈亏,请先完成模拟盘与小资金验证。' : '券商已限制账户交易,请检查账户状态。') }}
熔断时已撤掉全部挂单(持仓未卖)。解除后会以当前权益作为新的亏损/回撤基准,各网格下一轮重新挂单。
仓位占用超过风控上限,暂停新买单
{{ dashboard.status.risk.exposure_warning }}
卖单照常运行,仓位降回上限以下后自动恢复买入,不需要操作。
账户表现

{{ formatCurrency(dashboard.account.equity) }}

{{ dashboard.performance.period || '7D' }} 基准权益:{{ formatCurrency(dashboard.performance.initial_equity) }}

7日总盈亏
{{ formatSignedCurrency(dashboard.performance.total_pnl) }}
已实现盈亏
{{ formatSignedCurrency(dashboard.performance.realized_pnl) }}
未实现盈亏
{{ formatSignedCurrency(dashboard.performance.unrealized_pnl) }}
7日收益率
{{ formatSignedPercent(dashboard.performance.return_pct) }}

资产构成

可用现金 {{ formatCurrency(dashboard.account.cash) }}
购买力 {{ formatCurrency(dashboard.account.buying_power) }}
不可融资购买力 {{ formatCurrency(dashboard.account.non_marginable_buying_power) }}
日内亏损
{{ formatRiskPct(dashboard.status.risk.daily_loss_pct) }}
回撤
{{ formatRiskPct(dashboard.status.risk.drawdown_pct) }}
总敞口
{{ formatRiskPct(dashboard.status.risk.gross_exposure_pct) }}
数据更新 {{ dashboard.updatedAt || '--' }} · 本地 {{ lastRefreshAt }}

权益曲线

快照 · {{ dashboard.snapshots.length }} 点
暂无快照数据

运行策略面板

共 {{ dashboard.strategies.length }} 个

当前持仓

标的 数量 均价/现价 浮动盈亏
暂无持仓
{{ p.symbol }} {{ positionDirection(p) }} {{ displayPositionQty(p) }} {{ formatPrice(p.avg_entry_price) }} / {{ formatPrice(p.current_price) }} {{ formatSignedCurrency(p.unrealized_pnl) }}

最近成交

共 {{ dashboard.meta.trade_count_total ?? allTrades.length }} 条
时间 策略/标的 方向/价格
暂无成交
{{ formatTime(t.time) }}
{{ t.strategy }}
{{ t.symbol }}
{{ t.side==='buy'?'买入':'卖出' }} {{ formatQty(t.qty) }}
${{ formatPrice(t.price) }}

告警日志

最近 1 小时 {{ recentErrorCount }} 条 · 共 {{ dashboard.errors.length }} 条
暂无告警,策略运行正常
{{ formatTime(e.time) }} {{ e.strategy }} {{ e.error }}

管理交易品种

添加、修改或删除网格策略,保存后立即生效(机器人会自动重启一次),不需要改代码。

当前策略

加密网格资金占比合计 {{ pct(manager.list.crypto_allocation_total) }} / 上限 {{ pct(manager.list.max_crypto_allocation_total) }}
加载中...
还没有策略
品种 资金 / 数量 状态 操作
{{ item.symbol }} {{ item.running ? '运行中' : '未运行' }}

{{ manager.editing ? '修改 ' + manager.editing : '添加新品种' }}

策略列表保存在服务器的 {{ manager.list.config_file || 'strategies.json' }},重启后保持。

{{ selectedStrategy.name }} · {{ selectedStrategy.symbol }}

{{ strategyTypeLabel(selectedStrategy.type) }} {{ gridStatus(std.status).label }} 共 {{ selectedStrategy.trade_count }} 笔成交订单 · {{ selectedStrategy.order_count }} 笔订单
已实现盈亏
{{ formatSignedCurrency(selectedStrategy.realized_pnl) }}
未实现盈亏
{{ formatSignedCurrency(selectedStrategy.unrealized_pnl) }}
策略收益率(按累计买入额)
{{ formatSignedPercent(selectedStrategy.return_pct) }}
基数 {{ formatCurrency(selectedStrategy.invested_capital) }}
{{ gridStatus(std.status).label }}:{{ std.status_reason }} 冷却至 {{ formatTime(std.crash_guard.until) }}

止损与趋势

4 小时行情:{{ regimeLabel(std.stop_loss.regime) }}
持仓亏损 / 止损线
{{ formatPctFrac(std.stop_loss.position_loss_pct, 2) }} / {{ std.stop_loss.max_position_loss_pct > 0 ? formatPctFrac(std.stop_loss.max_position_loss_pct, 0) : '关闭' }}
按成本止损价
{{ std.stop_loss.position_stop_price > 0 ? '$' + formatPrice(std.stop_loss.position_stop_price) : '--' }}
均价 ${{ formatPrice(std.stop_loss.avg_entry_price) }} · {{ formatQty(std.stop_loss.position_qty) }} 股
跌破网格止损价
{{ std.stop_loss.grid_stop_price > 0 ? '$' + formatPrice(std.stop_loss.grid_stop_price) : '--' }}
网格最低价 ${{ formatPrice(std.stop_loss.grid_floor) }}
{{ std.stop_loss.regime_reason }}

{{ sd ? '价格与网格线(小时K线)' : '成交点位曲线(小时K线)' }}

加载K线数据中... {{ strategyBarsCount }} 根K线
买单 持仓格 卖出目标 空闲格 当前价 止损线

网格梯子

{{ sd.range.levels }} 档 · 格距 {{ formatPctFrac(sd.range.step_pct, 2) }}

区间与保护

区间模式{{ rangeModeLabel(sd.range.mode) }}
日波动(ATR 估算){{ formatPctFrac(sd.range.volatility_pct, 2) }}
区间半宽±{{ formatPctFrac(sd.range.half_width_pct, 2) }}
区间${{ formatPrice(sd.range.lower) }} – ${{ formatPrice(sd.range.upper) }}
止损价${{ formatPrice(sd.range.stop_loss_price) }}
离开区间{{ formatTime(sd.range.out_of_range_since) }}
跌破下沿退出持续 {{ sd.range.below_floor_exit_hours }} 小时
低于下沿,将于{{ formatTime(sd.range.below_floor_exit_at) }} 止损
4 小时趋势 {{ regimeLabel(sd.trend.regime) }} · 只挂近 {{ sd.trend.bull_buy_levels }} 格
急跌保护({{ formatDuration(sd.crash_guard.window) }} 内跌 {{ formatPctFrac(sd.crash_guard.pct, 1) }}) {{ sd.crash_guard.active ? '已触发' : '正常' }}
距近期高点 ${{ formatPrice(sd.crash_guard.window_high) }} 回撤 {{ formatPctFrac(sd.crash_guard.drop_pct, 2) }}

每日套利收益

近 14 天 · 本地日期
{{ dailyRoundStats(sd)[0].label }}今天

网格持仓({{ sd.lots.length }} 格)

网格空仓
格买入价数量目标卖价浮盈
#{{ lot.level }}* {{ formatPrice(lot.buy_price) }} {{ formatQty(lot.qty) }} {{ formatPrice(lot.sell_target) }} … {{ formatSignedCurrency(lot.unrealized) }}

最近套利

还没有完成的套利
{{ formatPrice(r.buy_price) }} → {{ formatPrice(r.sell_price) }}
{{ formatTime(r.at) }} · #{{ r.level }} · {{ formatQty(r.qty) }} {{ sd.base_asset }}{{ r.complete ? '' : ' · 部分' }}
{{ formatSignedCurrency(r.pnl) }}

运行时配置

{{ formatConfigKey(item[0]) }}
{{ formatConfigValue(item[0], item[1]) }}

策略关联持仓

无持仓
{{ p.symbol }} {{ positionDirection(p) }}
成本: {{ formatPrice(p.avg_entry_price) }}
{{ displayPositionQty(p) }} {{ unitFor(p.symbol) }}
{{ formatSignedCurrency(p.unrealized_pnl) }}

策略告警({{ strategyErrors.length }})

{{ formatTime(e.time) }}
{{ e.error }}

当前挂单

无挂单
{{ o.symbol }} {{ o.side }} {{ o.type }}
限价: {{ formatPrice(o.limit_price) }}
{{ o.created_at ? formatTime(o.created_at) : '--' }}
{{ formatQty(o.qty) }} {{ unitFor(o.symbol) }}
已成交: {{ formatQty(o.filled_qty) }}

已成交订单

无已成交订单
{{ o.symbol }} {{ o.side }} {{ o.type }}
成交价: {{ formatPrice(o.filled_avg_price || o.limit_price) }}
{{ o.filled_at ? formatTime(o.filled_at) : (o.updated_at ? formatTime(o.updated_at) : '--') }}
{{ formatQty(o.qty) }} {{ unitFor(o.symbol) }}
状态: filled

成交明细

无成交
{{ t.side==='buy'?'买':'卖' }} {{ t.symbol }}
{{ formatTime(t.time) }}
{{ formatPrice(t.price) }}
{{ formatQty(t.qty) }} {{ unitFor(t.symbol) }}
{{ toast.text }}