|
|
@@ -224,13 +224,13 @@ def generate_report(trades_df, initial_capital=1000000):
|
|
|
html += """
|
|
|
</table>
|
|
|
|
|
|
- <h2>📝 最近20笔交易明细</h2>
|
|
|
+ <h2>📝 最近30笔交易明细</h2>
|
|
|
<table>
|
|
|
<tr><th>开仓时间</th><th>平仓时间</th><th>开仓价</th><th>平仓价</th>
|
|
|
<th>盈亏</th><th>退出原因</th><th>T+1调整</th></tr>
|
|
|
"""
|
|
|
|
|
|
- for _, trade in trades_df.tail(20).iterrows():
|
|
|
+ for _, trade in trades_df.tail(30).iterrows():
|
|
|
pnl_class = "positive" if trade['盈亏金额'] >= 0 else "negative"
|
|
|
t1_flag = "✓" if trade['T+1调整'] == '是(T0→T1)' else ""
|
|
|
html += f"""
|