fix: Update portfolio value calculation comment for clarity
This commit is contained in:
parent
c4c8a89efd
commit
5910dcad1f
@ -250,8 +250,8 @@ def trading_journal_page():
|
|||||||
shares = float(summary['total_shares'])
|
shares = float(summary['total_shares'])
|
||||||
avg_entry = float(summary['avg_entry_price'])
|
avg_entry = float(summary['avg_entry_price'])
|
||||||
|
|
||||||
# Calculate current position value using current market price
|
# Calculate position value using current market price
|
||||||
position_value = current_price * shares
|
position_value = current_price * shares # Changed from avg_entry to current_price
|
||||||
total_invested_value += position_value
|
total_invested_value += position_value
|
||||||
total_paper_pl += (current_price - avg_entry) * shares
|
total_paper_pl += (current_price - avg_entry) * shares
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user