07.4.4.1.9.3 Market Phase Transition Fix
This commit is contained in:
@@ -264,6 +264,7 @@ def _market_semantic_line(state) -> str:
|
||||
strength = getattr(state, "market_trend_strength", None)
|
||||
quality = getattr(state, "market_trend_quality", None)
|
||||
phase = getattr(state, "market_phase", None)
|
||||
phase_direction = getattr(state, "market_phase_direction", None)
|
||||
|
||||
if market_state in {None, "UNKNOWN"}:
|
||||
return "⏳ Рынок · анализ"
|
||||
@@ -278,12 +279,18 @@ def _market_semantic_line(state) -> str:
|
||||
return "🟰 Рынок · флэт"
|
||||
|
||||
if phase == "PULLBACK":
|
||||
if trend == "UP":
|
||||
if trend == "UP" and phase_direction == "DOWN":
|
||||
return "↘️ Рынок · коррекция"
|
||||
|
||||
if trend == "DOWN":
|
||||
if trend == "DOWN" and phase_direction == "UP":
|
||||
return "↗️ Рынок · откат вверх"
|
||||
|
||||
if trend == "UP":
|
||||
return "📈 Рынок · рост"
|
||||
|
||||
if trend == "DOWN":
|
||||
return "📉 Рынок · снижение"
|
||||
|
||||
return "↔️ Рынок · откат"
|
||||
|
||||
if quality == "NOISY":
|
||||
@@ -306,10 +313,10 @@ def _market_semantic_line(state) -> str:
|
||||
|
||||
if phase == "IMPULSE":
|
||||
if trend == "UP" and strength == "STRONG":
|
||||
return "⚡ Рынок · сильный рост"
|
||||
return "⚡️ Рынок · сильный рост"
|
||||
|
||||
if trend == "DOWN" and strength == "STRONG":
|
||||
return "⚡ Рынок · сильное снижение"
|
||||
return "⚡️ Рынок · сильное снижение"
|
||||
|
||||
if trend == "UP":
|
||||
return "📈 Рынок · рост"
|
||||
|
||||
Reference in New Issue
Block a user