From cfdfb1421f0b47991b5cd83f3f115b90432ea2fd Mon Sep 17 00:00:00 2001 From: moshferatu Date: Sat, 17 Feb 2024 05:56:42 -0800 Subject: [PATCH] Retrieve strategy name from trade results table --- trade_report.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/trade_report.py b/trade_report.py index a72436f..2bf5e69 100644 --- a/trade_report.py +++ b/trade_report.py @@ -3,13 +3,14 @@ from database.procedures import backtest_profit, most_recent_trade_date from database.trades import trades symbol = 'SPX' -strategy = '10 Delta Iron Condor' trade_date = most_recent_trade_date() print(f'Trade Date: {trade_date}') trade_data = trades(trade_date) +strategy = trade_data['Strategy'].iloc[0] + traded_entry_times = set() for _, trade in trade_data.iterrows(): entry_time = str(trade["Entry Time"])[-8:]