Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,7 +7,7 @@ import json
|
|
| 7 |
import firebase_admin
|
| 8 |
from firebase_admin import credentials, db
|
| 9 |
from datetime import datetime
|
| 10 |
-
import numpy as np
|
| 11 |
|
| 12 |
# --- Configuration ---
|
| 13 |
# The Firebase DB reference name must match the one used in your agent (App3.txt)
|
|
@@ -204,7 +204,7 @@ def update_dashboard():
|
|
| 204 |
|
| 205 |
return (kpis["total_pnl"], kpis["win_rate"], kpis["total_closed_trades"], kpis["average_pnl"],
|
| 206 |
equity_plot,
|
| 207 |
-
|
| 208 |
closed_trades_display.iloc[::-1], # Show newest first
|
| 209 |
strategy_plot,
|
| 210 |
regime_plot,
|
|
|
|
| 7 |
import firebase_admin
|
| 8 |
from firebase_admin import credentials, db
|
| 9 |
from datetime import datetime
|
| 10 |
+
import numpy as np
|
| 11 |
|
| 12 |
# --- Configuration ---
|
| 13 |
# The Firebase DB reference name must match the one used in your agent (App3.txt)
|
|
|
|
| 204 |
|
| 205 |
return (kpis["total_pnl"], kpis["win_rate"], kpis["total_closed_trades"], kpis["average_pnl"],
|
| 206 |
equity_plot,
|
| 207 |
+
open_trades_display.iloc[::-1], # Show newest first
|
| 208 |
closed_trades_display.iloc[::-1], # Show newest first
|
| 209 |
strategy_plot,
|
| 210 |
regime_plot,
|