feat: add trade activity dashboard

Shows what happened at each candle:
- BUY/SELL/HOLD actions
- Price at that time
- Reason for action
- Entry price for positions

Trade log is stored in DB and displayed in frontend.
This commit is contained in:
shokollm
2026-04-12 04:28:40 +00:00
parent 01ec8bc539
commit dd61c32ea7
9 changed files with 259 additions and 3 deletions

View File

@@ -52,6 +52,8 @@ def run_simulation_sync(
{"time": k.get("time"), "close": k.get("close")}
for k in engine.klines
]
# Save trade log for dashboard
simulation.trade_log = engine.trade_log
db.commit()
for signal in engine.signals: