Commit Graph

50 Commits

Author SHA1 Message Date
c4c8a89efd refactor: Optimize portfolio value calculation and remove debug print statements 2025-02-18 20:52:14 -08:00
a1a91291f3 fix: Correct portfolio value calculation with current market prices 2025-02-18 20:48:50 -08:00
ab218a3065 fix: Correct portfolio value calculation in trading journal 2025-02-18 20:47:30 -08:00
8fd73c9701 refactor: Update total portfolio value display to show cash and positions 2025-02-18 20:45:54 -08:00
c6da08351f refactor: Update portfolio value calculation to include cash and current market positions 2025-02-18 20:44:17 -08:00
735cfdfb65 refactor: Update overall P/L calculation to separate realized and unrealized gains 2025-02-18 20:42:39 -08:00
4be088c0b2 refactor: Improve overall P/L calculation with realized and paper P/L 2025-02-13 13:22:14 -08:00
4659496889 feat: Enhance portfolio overview with dynamic value calculation and cash balance input 2025-02-13 12:34:37 -08:00
bd4dce4f42 refactor: Improve timezone handling in calculate_weekly_metrics function 2025-02-13 12:30:17 -08:00
18f689115e fix: Resolve timezone awareness issue in weekly metrics calculation 2025-02-13 12:29:05 -08:00
00d00fb06b feat: Add weekly performance metrics to Portfolio Overview section 2025-02-13 12:27:35 -08:00
201d48c302 feat: Enhance trading journal with portfolio allocation and performance metrics 2025-02-13 12:21:11 -08:00
a6746ff267 fix: Improve trade P/L calculation in plot_trade_history function 2025-02-13 11:28:12 -08:00
b1240cd582 refactor: Update plot_trade_history to only show realized P/L from closed trades 2025-02-13 11:25:11 -08:00
abaf3ab855 feat: Improve trade entry and performance calculation for sell orders 2025-02-13 11:11:42 -08:00
6d29558752 fix: Handle missing trade direction by inferring from exit price 2025-02-13 11:05:38 -08:00
814a7db5de feat: Add debug print statements to trading journal page for trade entry tracking 2025-02-13 10:52:36 -08:00
417747be86 refactor: Optimize position handling logic in trading journal page 2025-02-13 10:46:55 -08:00
46c37e2f63 refactor: Improve position selection logic for buy and sell trades 2025-02-13 10:43:45 -08:00
0f8a75ca28 refactor: Improve trade direction inference and add debug logging in position performance calculation 2025-02-13 10:39:25 -08:00
dbb1393c08 feat: Add comprehensive debug statements to trading journal page and data retrieval functions 2025-02-13 10:29:01 -08:00
7f1077a951 refactor: Replace st.query_params with st.experimental_rerun for trade updates 2025-02-13 10:23:25 -08:00
28ffb22f71 fix: Move entry datetime input before position ID generation 2025-02-13 10:10:20 -08:00
ef762d2132 feat: Update position ID generation to use trade entry datetime 2025-02-13 10:09:53 -08:00
b3ac7c1705 refactor: Remove debug output lines from trading journal page 2025-02-13 09:36:23 -08:00
a37b70d88d refactor: Simplify trade sorting to use chronological order 2025-02-13 09:35:19 -08:00
e322743f33 fix: Add direction field to trade history query and improve error handling 2025-02-13 09:32:40 -08:00
9493f5d7ac fix: Add default value for trade direction in debug output 2025-02-13 09:26:29 -08:00
f162cdb91b fix: Correct trade direction processing in trading journal 2025-02-13 09:26:18 -08:00
94671119f2 feat: Replace time_input with text_input for time entry validation 2025-02-13 09:14:27 -08:00
a3eae62be3 fix: Improve trade direction detection in position performance calculation 2025-02-13 09:09:39 -08:00
bd880cbb46 fix: Use order_type instead of corrupted direction field for trade classification 2025-02-13 09:07:12 -08:00
522e889467 refactor: Improve trade direction handling and debug output 2025-02-13 09:04:47 -08:00
58c59a4633 refactor: Improve trade direction handling and add debug output 2025-02-13 09:02:42 -08:00
3bc111288e fix: Improve trade performance calculation and add debug logging 2025-02-13 09:00:17 -08:00
47b58faddd refactor: Enhance trade history display with performance metrics and detailed trade information 2025-02-13 08:58:34 -08:00
b1b22ac026 refactor: Improve trade display sorting and exit price handling 2025-02-13 08:54:04 -08:00
f85299b518 fix: Add type checking for trade direction to prevent AttributeError 2025-02-13 08:50:49 -08:00
0c30213688 fix: Handle entry_price formatting with error handling 2025-02-13 08:50:05 -08:00
9ef81fb589 fix: Improve trade history display with correct price labels and direction 2025-02-13 08:49:04 -08:00
b8a561f37c fix: Handle potential type conversion errors for exit price in trading journal 2025-02-13 08:45:50 -08:00
287dd32485 fix: Handle non-string trade direction in trading journal display 2025-02-13 08:44:37 -08:00
c030f87d9a fix: Handle missing trade direction by defaulting to 'Buy' 2025-02-13 08:43:41 -08:00
fb27bf3003 fix: Handle non-numeric exit prices in trade history plotting 2025-02-13 08:42:08 -08:00
0b07861265 fix: Convert trade prices and shares to float to prevent type errors 2025-02-13 08:40:44 -08:00
8d76d820fe feat: Enhance trade history display with position-based grouping and comprehensive trade details 2025-02-13 08:39:51 -08:00
3f0b10ed41 fix: Correct trade type display in trading journal 2025-02-13 08:35:40 -08:00
9642d78942 feat: Add support for sell orders in trade history query and display 2025-02-13 08:32:58 -08:00
3a962fb685 fix: Handle None values for numeric trade fields in trading journal 2025-02-13 07:58:35 -08:00
bf034d9ada refactor: Move trading journal functionality to separate module 2025-02-12 16:51:05 -08:00