From 8d83d0dc8d0ac82af91e924605b3c225eaa3219a Mon Sep 17 00:00:00 2001 From: moshferatu Date: Fri, 2 Feb 2024 07:45:40 -0800 Subject: [PATCH] Remove entry time from strategy name when inserting records into backtest table --- run_backtest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run_backtest.py b/run_backtest.py index 354b980..37f9dca 100644 --- a/run_backtest.py +++ b/run_backtest.py @@ -27,13 +27,13 @@ def run_backtest(start_date: datetime, end_date: datetime): for entry_time in available_entry_times(): call_spread_strategy, put_spread_strategy = create_strategies(entry_time) backtest_results = backtest_iron_condor( - f'10 Delta Iron Condor @ {call_spread_strategy.trade_entry_time}', + f'10 Delta Iron Condor', call_spread_strategy, put_spread_strategy, start_date, end_date ) - + if not backtest_results.empty: # TODO: Think of a better way to handle this. backtest_results.drop('Cumulative Profit', axis = 1, inplace = True)