Remove entry time from strategy name when inserting records into backtest table
This commit is contained in:
parent
28e316b03a
commit
8d83d0dc8d
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user