diff --git a/src/pages/journal/trading_journal_page.py b/src/pages/journal/trading_journal_page.py index 3a747d7..2660739 100644 --- a/src/pages/journal/trading_journal_page.py +++ b/src/pages/journal/trading_journal_page.py @@ -250,8 +250,9 @@ def trading_journal_page(): shares = summary['total_shares'] avg_entry = summary['avg_entry_price'] + # Calculate current position value and P/L position_value = current_price * shares - total_invested_value += current_price * shares + total_invested_value += position_value total_paper_pl += (current_price - avg_entry) * shares # Calculate total portfolio value (cash + invested value)