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)