# V5.1/V5.2 Complete Separation Task ## CRITICAL: Boss is angry. Do this PERFECTLY. ## Requirements ### 1. V5.1 Signal Engine Page - RESTORE to pre-V5.2 state - `/signals` page should be V5.1 ONLY - Title: "⚡ 信号引擎 V5.1" - Remove ALL V5.2 comparison cards, V5.2 scores, FR/Liq bars - Only show the original 5 layers: 方向(45) + 拥挤(20) + 环境(15) + 确认(15) + 辅助(5) = 100 - Do NOT show FR or Liq score bars on V5.1 page ### 2. V5.2 Signal Engine Page - NEW independent page - Create `/signals-v52` page - Title: "⚡ 信号引擎 V5.2" - Show 7 layers: 方向(40) + 拥挤(20) + FR(5) + 环境(15) + 确认(15) + 清算(5) + 辅助(5) = 105 max BUT... - **FIX SCORING**: Total must be 100 max. Redistribute weights: - 方向: 35 - 拥挤: 20 - FR: 5 (within the 100) - 环境: 15 - 确认: 15 - 清算: 5 (within the 100) - 辅助: 5 - Total = 100 **WAIT** - Don't change backend scoring yet. Just create the page. The scoring fix needs boss approval. ### 3. V5.1 Paper Trading Page - RESTORE - `/paper` should be V5.1 ONLY - Remove strategy tabs, strategy badges, FR/Liq display - Show ONLY v51_baseline trades - Restore to clean original design ### 4. V5.2 Paper Trading Page - NEW independent page - Create `/paper-v52` page - Show ONLY v52_8signals trades - Include FR/Liq scores, strategy badge ### 5. Sidebar Navigation ``` 🏠 仪表盘 📊 成交流 ── V5.1 ── 🎯 V5.1 信号引擎 📈 V5.1 模拟盘 ── V5.2 ── ✨ V5.2 信号引擎 📈 V5.2 模拟盘 🖥️ 服务器 ℹ️ 说明 ``` ### 6. Key Files - `frontend/app/signals/page.tsx` — restore to V5.1 only - `frontend/app/signals-v52/page.tsx` — NEW, copy and modify for V5.2 - `frontend/app/paper/page.tsx` — restore to V5.1 only (filter strategy=v51_baseline) - `frontend/app/paper-v52/page.tsx` — NEW, V5.2 only (filter strategy=v52_8signals) - `frontend/components/Sidebar.tsx` — update navigation ### 7. DO NOT TOUCH backend/signal_engine.py or backend/main.py The backend is fine. Only frontend changes. ### 8. Test ```bash cd frontend && npm run build ``` Must pass with 0 errors. When done, run: ```bash cd /root/Projects/arbitrage-engine && git add -A && git commit -m "refactor: completely separate V5.1 and V5.2 pages" ```