Parcourir la source

Increase trade history in reports from 10/20 to 30 entries

- auto_report.py: 10 → 30 entries
- auto_report_long_only_t1.py: 20 → 30 entries
openclaw il y a 1 mois
Parent
commit
fe369c98e2
2 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. 2 2
      cat-fly/auto_report.py
  2. 2 2
      cat-fly/auto_report_long_only_t1.py

+ 2 - 2
cat-fly/auto_report.py

@@ -176,13 +176,13 @@ def generate_report(trades_df, results_df, initial_capital=1000000):
         </tr>
     </table>
     
-    <h2>📝 最近10笔交易明细</h2>
+    <h2>📝 最近30笔交易明细</h2>
     <table>
         <tr><th>方向</th><th>开仓时间</th><th>平仓时间</th><th>开仓价</th><th>平仓价</th>
             <th>盈亏</th><th>退出原因</th></tr>
     """
     
-    for _, trade in trades_df.tail(10).iterrows():
+    for _, trade in trades_df.tail(30).iterrows():
         pnl_class = "positive" if trade['盈亏金额'] >= 0 else "negative"
         html += f"""
         <tr>

+ 2 - 2
cat-fly/auto_report_long_only_t1.py

@@ -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"""