From 75dd524fadc022d9e6845f41f19203c3d5a951cd Mon Sep 17 00:00:00 2001 From: JSDurand Date: Wed, 21 Oct 2026 15:28:20 +0800 Subject: add VPS snapshot pipeline, run.sh, and data-repair fixes - fetch_tw_daily.sh: --snapshot mode (one file per trading day, merged by symbol), retries, validation of numeric fields - cron_daily.sh (VPS): lock, pruning, e-mail alerts on failure - sync_from_vps.sh (Mac): rsync snapshots and merge into per-stock CSVs - run.sh: pick data files for a symbol, build, analyse, open the page - lib.sh: LC_ALL=C; fetch.sh: small fixes - data.rs: repair rows whose open/close fall outside high/low - template: horizontal hover lines in the RSI and KD panels Co-Authored-By: Claude Sonnet 5.5 --- web/template.html | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'web/template.html') diff --git a/web/template.html b/web/template.html index 45fa874..966a584 100644 --- a/web/template.html +++ b/web/template.html @@ -206,6 +206,14 @@ function render() { const c = D.candles[hover]; s += `` + `${fmt(c.Close)}`; + // same horizontal crosshair for the indicator panels, at the hovered bar's values + for (const [p, arr, color] of [[R, D.rsi, css('--accent')], [K, D.k, css('--line1')], [K, D.d, css('--line2')]]) { + const v = arr[hover]; + if (v == null) continue; + const y = ind(p, v); + s += `` + + `${fmt(v, 1)}`; + } } svg.innerHTML = s; updateInfo(); -- cgit v1.2.3-18-g5258