--- name: Production vs Backtest architecture description: Production uses LLM for signals, backtest uses rule-based signal_generator — they are independent type: project --- Production 和 Backtest 是兩條獨立路線: **Production (main.py):** - 進場/出場完全由 LLM (Claude CLI) 判斷 - LLM prompt 包含策略規則,但 LLM 自行決定是否遵守 - risk_manager 只做風控驗證(倉位大小、最大持倉數) **Backtest (backtest/):** - 用硬編碼規則的 signal_generator.py 判斷 - 確定性、可重複,不跑 LLM - V3 加入 context 參數(BTC 趨勢、buy_pressure、funding sentiment) - `--no-context` flag 可關閉做 A/B 比較 **How to apply:** 改 backtest 不影響 production。改 LLM prompt 才影響 production 行為。