arbitrage-engine/SEPARATION_TASK.md
root 5849bf6522 refactor: completely separate V5.1 and V5.2 pages
- /signals: V5.1 ONLY, 5-layer scoring, no FR/Liq
- /signals-v52: V5.2 ONLY, 7-layer scoring with FR/Liq
- /paper: V5.1 ONLY, no strategy tabs/badges
- /paper-v52: V5.2 ONLY, with FR/Liq display
- Sidebar: V5.1 and V5.2 separate sections
- V5.2 weights: 40+18+5+12+15+5+5=100 (no more >100)
- Zero cross-contamination between V5.1 and V5.2
2026-03-02 00:25:07 +00:00

78 lines
2.2 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 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"
```