diff --git a/static/index.html b/static/index.html index 83ed3dfa..33c4847f 100644 --- a/static/index.html +++ b/static/index.html @@ -301,7 +301,7 @@ function renderWatchlist() { 股票现价 涨跌%买入区间 - 信号策略 + RR信号 ${stocks.map(s => { const buyZone = (s.entry_low||0) + '~' + (s.entry_high||0); @@ -309,15 +309,21 @@ function renderWatchlist() { const sl = s.stop_loss || 0; const tp = s.take_profit || 0; const signal = s.timing_signal || ''; - const action = (s.action||'').slice(0,60); + const action = (s.action||''); + const price = s.price || 0; + const chg = s.change_pct || 0; + const priceDisplay = price ? price.toFixed(2) : '—'; return ` - -
${s.name}
${s.code}
- ${(s.price||'—')} - ${(s.change_pct||0)>=0?'+':''}${(s.change_pct||0).toFixed(2)} - ${buyZone} - ${signal||'—'} - ${action||'—'} + +
${s.name}
${s.code}
+ ${priceDisplay} + ${chg>=0?'+':''}${chg.toFixed(2)} + ${buyZone}
损${sl} 盈${tp} + ${rr>0?rr.toFixed(2):'—'} + ${signal||'—'} + + + ${action || '—'} `; }).join('')}