fix: Update portfolio value calculation comment for clarity

This commit is contained in:
Bobby (aider) 2025-02-18 20:54:20 -08:00
parent c4c8a89efd
commit 5910dcad1f

View File

@ -250,8 +250,8 @@ def trading_journal_page():
shares = float(summary['total_shares'])
avg_entry = float(summary['avg_entry_price'])
# Calculate current position value using current market price
position_value = current_price * shares
# Calculate position value using current market price
position_value = current_price * shares # Changed from avg_entry to current_price
total_invested_value += position_value
total_paper_pl += (current_price - avg_entry) * shares