From c72199400d63d16de8108598fa2bab25802513ef Mon Sep 17 00:00:00 2001 From: Dobromir Popov Date: Wed, 5 Feb 2025 11:24:01 +0200 Subject: [PATCH] wip --- crypto/brian/index-deep-new.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crypto/brian/index-deep-new.py b/crypto/brian/index-deep-new.py index 4ca8610..8a2c8a9 100644 --- a/crypto/brian/index-deep-new.py +++ b/crypto/brian/index-deep-new.py @@ -409,7 +409,8 @@ def update_live_html(candles, trade_history, epoch, loss, total_pnl): fig, ax = plt.subplots(figsize=(12, 6)) update_live_chart(ax, candles, trade_history) epoch_pnl = sum(trade["pnl"] for trade in trade_history) - ax.set_title(f"Epoch {epoch} | Loss: {loss:.4f} | PnL: {epoch_pnl:.2f}| Total PnL: {total_pnl:.2f}") + + ax.set_title(f"Epoch {epoch} | Loss: {loss:.4f} | PnL: {epoch_pnl:.2f} | Total PnL: {total_pnl:.2f}") buf = BytesIO() fig.savefig(buf, format='png') plt.close(fig) @@ -442,7 +443,7 @@ def update_live_html(candles, trade_history, epoch, loss, total_pnl):
-

Epoch {epoch} | Loss: {loss:.4f} | PnL: {epoch_pnl:.2f}| Total PnL: {total_pnl:.2f}

+

Epoch {epoch} | Loss: {loss:.4f} | PnL: {epoch_pnl:.2f} | Total PnL: {total_pnl:.2f}

Live Chart