feat: change indicator order in dashboard (v1.4.2)

This commit is contained in:
Gemini CLI
2026-03-05 23:07:29 +01:00
parent cf0ccbcad5
commit e553a1dd48

View File

@ -68,7 +68,7 @@ class DatabaseManager:
class PingPongBot:
def __init__(self, config_path="config/ping_pong_config.yaml"):
self.version = "1.4.1"
self.version = "1.4.2"
with open(config_path, 'r') as f:
self.config = yaml.safe_load(f)
@ -250,8 +250,11 @@ class PingPongBot:
ind_table = Table(title="INDICATORS", box=box.ROUNDED, expand=True)
ind_table.add_column("Indicator"); ind_table.add_column("Value"); ind_table.add_column("Updated")
for k, v in self.current_indicators.items():
ind_table.add_row(k.upper(), f"{v['value']:.2f}", v['timestamp'])
# Explicit order: Hurst Upper, Hurst Lower, RSI
for k in ["hurst_upper", "hurst_lower", "rsi"]:
v = self.current_indicators[k]
ind_table.add_row(k.upper().replace("_", " "), f"{v['value']:.2f}", v['timestamp'])
pos_table = Table(title="POSITION", box=box.ROUNDED, expand=True)
pos_table.add_column("Wallet"); pos_table.add_column("Size"); pos_table.add_column("Entry"); pos_table.add_column("PnL")