07.4.4.1.9.5 Execution Confidence Engine

This commit is contained in:
2026-05-12 14:09:58 +03:00
parent 2be7d92660
commit 1aa8f6c407
6 changed files with 692 additions and 4 deletions

View File

@@ -148,6 +148,29 @@ def _execution_semantic_line(state) -> str:
return str(message)
def _execution_confidence_line(state) -> str:
signal = (state.last_signal or "HOLD").upper()
if signal not in {"BUY", "SELL"}:
return ""
score = getattr(state, "execution_confidence_score", None)
level = getattr(state, "execution_confidence_level", None)
if score is None:
return ""
percent = int(round(float(score) * 100))
if level == "HIGH":
return f"🧠 Уверенность входа · {percent}% высокая"
if level == "NORMAL":
return f"🧠 Уверенность входа · {percent}% нормальная"
return f"🧠 Уверенность входа · {percent}% низкая"
def _build_waiting_text(state) -> str:
price = _signal_entry_price(state)
@@ -164,6 +187,7 @@ def _build_waiting_text(state) -> str:
signal_lines = [
_signal_line(state),
_signal_confirmation_line(state),
_execution_confidence_line(state),
_market_semantic_line(state),
_entry_block_line(state),
_execution_semantic_line(state),