       count++;
                            // 輸出調試信息
                            console.log(`歷史記錄 ${index}:`, {
                                symbol: position.symbol,
                                entryPrice: position.entryPrice,
                                entryPriceType: typeof position.entryPrice,
                                zScore: position.zScore,
                                zScoreType: typeof position.zScore
                            });
                        