�析損益時出錯:', e);
                                    displayProfit = position.realizedProfit;
                                }
                            }
                            
                            const row = `
                                <tr>
                                    <td>${position.formattedTime || '未知時間'}</td>
                                    <td>${position.symbol || 'N/A'}</td>
                                    <td class="${actionClass}">${actionTex