Files
NexQuant/start_loop.sh
T
TPTBusiness c2932cb069 feat: Beautiful CLI dashboard + corrected start command
New features:

1. CLI Dashboard (rdagent/log/ui/predix_dashboard.py)
   - Beautiful terminal UI with Rich library
   - Live progress bar for Loop/Step
   - Live Macro Data (EURUSD, DXY, Volatility)
   - Session info with recommendation
   - Statistics (Win-Rate, PnL, Success/Fail)
   - Recent factors list
   - Auto-refresh every 5 seconds

   Start: rdagent fin_quant --cli-dashboard

2. CLI extension (rdagent/app/cli.py)
   --with-dashboard/-d: Web Dashboard
   --cli-dashboard/-c: CLI Dashboard
   Both combinable: rdagent fin_quant -d -c

3. Start scripts updated:
   - start_trading.sh: Interactive with dashboard selection
   - start_loop.sh: Endless loop with auto-restart

   Corrected start command for endless loop:
   cd ~/Predix && conda activate rdagent && ./start_loop.sh

4. Dashboard URLs:
   - Web: http://localhost:5000/dashboard.html
   - CLI: rdagent fin_quant -c

All modules tested and integrated!
2026-04-02 19:21:08 +02:00

58 lines
2.1 KiB
Bash
Executable File

#!/bin/bash
# Start EURUSD Trading in Endlosschleife mit Auto-Restart
# Verwendung: ./start_loop.sh
set -e
LOG_FILE=~/Predix/fin_quant.log
echo "============================================================"
echo " Predix EURUSD Trading - Endlosschleife mit Auto-Restart"
echo "============================================================"
echo ""
echo "Log-Datei: $LOG_FILE"
echo ""
echo "Dashboard Optionen:"
echo " Web: rdagent fin_quant --with-dashboard"
echo " CLI: rdagent fin_quant --cli-dashboard"
echo ""
echo "Stoppen mit: Ctrl+C"
echo "============================================================"
echo ""
# Conda Environment aktivieren
if [ -f ~/miniconda3/etc/profile.d/conda.sh ]; then
source ~/miniconda3/etc/profile.d/conda.sh
conda activate rdagent
echo "✓ Conda Environment 'rdagent' aktiviert"
else
echo "⚠️ Conda nicht gefunden..."
fi
echo ""
echo "Starte Endlosschleife..."
echo ""
cd /home/nico/Predix
while true; do
echo "=== START: $(date) ===" >> $LOG_FILE
echo ""
echo "╔════════════════════════════════════════════════════════╗"
echo "║ 🚀 START: $(date +"%Y-%m-%d %H:%M:%S") ║"
echo "╚════════════════════════════════════════════════════════╝"
echo ""
dotenv run -- rdagent fin_quant 2>&1 | tee -a $LOG_FILE
echo ""
echo "╔════════════════════════════════════════════════════════╗"
echo "║ ⏸️ RESTART: $(date +"%Y-%m-%d %H:%M:%S") ║"
echo "╚════════════════════════════════════════════════════════╝"
echo "=== RESTART: $(date) ===" >> $LOG_FILE
echo ""
echo "Warte 5 Sekunden vor Neustart..."
echo ""
sleep 5
done