Gegen-/Stop-Seiten-Anzeige P(Durchbruch) (stop_approach, v=109)
Zeigt die Durchbruchwahrscheinlichkeit fuer das Level, dem sich der Kurs auf der Gegen-/Stop-Seite der offenen Position naehert (LONG->Support darunter, SHORT->Resistance darueber) — reine Anzeige, kein Auto-Close. Vorher per backtest_pbreak_calibration.py belegt: Modell haelt auf der Gegen-Seite out-of-sample (AUC 0,68/0,72 in beiden Haelften), niedriger P-Bereich kalibriert. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
6318817ac1
commit
027995d1e7
+23
@@ -495,6 +495,29 @@ function render(d) {
|
||||
hintEl.textContent = "";
|
||||
}
|
||||
}
|
||||
// Gegen-/Stop-Seiten-Hinweis (REINE ANZEIGE, kein Auto-Close): Kurs läuft auf das
|
||||
// Level GEGEN die Position zu → bricht es durch (Verlust läuft) oder prallt es ab?
|
||||
// P(break)-Modell auf der Gegen-Seite gemessen kalibriert (AUC 0,72 o.o.s.),
|
||||
// im hohen Bereich leicht konservativ. Nur zeigen, wenn KEIN Ziel-Level-Hint läuft.
|
||||
const stopEl = $("pos-stophint");
|
||||
if (stopEl) {
|
||||
const sa = d.stop_approach || null;
|
||||
if (hasPos && sa && !srHint) {
|
||||
const lvlName = sa.side === "sup" ? "Support" : "Widerstand";
|
||||
const dir = sa.side === "sup" ? "nach unten" : "nach oben";
|
||||
const confirmTxt = sa.confirm != null ? ` (Bruch ab ${fmt(sa.confirm, 3)})` : "";
|
||||
const holds = sa.p_break < 50;
|
||||
stopEl.className = "pos-stophint " + (holds ? "hold" : "break");
|
||||
const lead = sa.at_level ? `Am ${lvlName}` : `Nähert sich ${lvlName}`;
|
||||
stopEl.textContent =
|
||||
`ℹ️ ${lead} ${fmt(sa.level, 3)} (${sa.gap_atr}×ATR) · Durchbruch ${dir} ` +
|
||||
`${sa.p_break}%${confirmTxt} → ` +
|
||||
(holds ? "Level hält wahrscheinlich" : "bricht wahrscheinlich durch");
|
||||
} else {
|
||||
stopEl.className = "pos-stophint hidden";
|
||||
stopEl.textContent = "";
|
||||
}
|
||||
}
|
||||
// Schalter-Zustand: Auto-Close am S/R an/aus + Mindestgewinn
|
||||
const srBtn = $("srclose-btn");
|
||||
if (srBtn) {
|
||||
|
||||
Reference in New Issue
Block a user