diff --git a/web/app.js b/web/app.js index 1c39023..e98ee7a 100644 --- a/web/app.js +++ b/web/app.js @@ -1116,8 +1116,15 @@ function render(d) { _tickTradeDuration(); // SL/TP-Felder nur befüllen, wenn nicht gerade bearbeitet (kein Tipp-Konflikt) const slEl = $("tb-sl"), tpEl = $("tb-tp"); - if (document.activeElement !== slEl) slEl.value = p.sl ? fmt(p.sl, 2) : ""; - if (document.activeElement !== tpEl) tpEl.value = p.tp ? fmt(p.tp, 2) : ""; + // ⚠⚠ DREI Nachkommastellen, nicht zwei (Fix 2026-08-20, User-Fund + // "SL war auf 84,86 laut Dashboard"). WTI notiert dreistellig; mit + // `fmt(x, 2)` wurde aus dem echten Stop 84,776 die Anzeige 84,78. + // Das ist NICHT nur kosmetisch: das Feld ist beschreibbar, und ein + // Enter darauf schickt den GERUNDETEN Wert an den Broker — der Stop + // verschiebt sich also still um bis zu 0,5 Cent. Bei einem Trail von + // 11 Cent (ATR_M5 0,11 in dieser Nacht) sind das 5 % der Distanz. + if (document.activeElement !== slEl) slEl.value = p.sl ? fmt(p.sl, 3) : ""; + if (document.activeElement !== tpEl) tpEl.value = p.tp ? fmt(p.tp, 3) : ""; } else { tb.classList.add("hidden"); _tradeOpenTime = 0; diff --git a/web/index.html b/web/index.html index 6f32ffd..e857b2e 100644 --- a/web/index.html +++ b/web/index.html @@ -12,7 +12,7 @@ ⚠ LOKAL eingebunden, kein CDN: die PWA laeuft ueber WireGuard und muss offline funktionieren. --> - +
@@ -392,6 +392,6 @@ - +