Review charts: M1/M5/M15/H1 bar counts 500/200/100/50; simplify markers.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-10-21 17:33:18 +08:00
parent 11c14fbb21
commit e2847c90df
6 changed files with 87 additions and 125 deletions
+6 -2
View File
@@ -63,12 +63,16 @@
<div class="card" style="margin-top:14px">
<h3>四周期 K 线(M1 / M5 / M15 / H1)</h3>
<p class="muted">
客户端上报写入服务器;复盘读取。蓝=入场,黄=出场(价差很小时合并为一条「入/出」线)。图内只显示成交前后一段 K 线。
显示根数:M1 500 · M5 200 · M15 100 · H1 50(不足则有多少显多少)。
<span style="color:#4cc2ff">● 入场 {{ trade.open_price|fmt_price }}</span>
{% if trade.close_price is not none %}
· <span style="color:#f0b429">● 出场 {{ trade.close_price|fmt_price }}</span>
{% endif %}
</p>
<div class="chart-grid" style="margin-top:10px">
{% for tf in ['M1','M5','M15','H1'] %}
<div class="chart-box">
<h4>{{ tf }}</h4>
<h4>{{ tf }} <span class="chart-meta muted" style="font-weight:400"></span></h4>
{% if charts[tf] %}
<canvas class="chart-canvas" id="chart-{{ tf }}"
data-tf="{{ tf }}"