Update backtest to use single delta target parameter

This commit is contained in:
moshferatu 2024-02-01 05:59:33 -08:00
parent 1402ab88cc
commit 710ab7c22c

View File

@ -21,8 +21,7 @@ def entry_times():
def create_strategies(entry_time: str):
call_spread_strat = DeltaTargetStrategy(
delta_upper_bound = 0.11,
delta_lower_bound = 0.10,
delta_target = 0.10,
option_type = OptionType.CALL,
number_of_contracts = 1,
spread_width = 50,
@ -30,8 +29,7 @@ def create_strategies(entry_time: str):
trade_entry_time = entry_time
)
put_spread_strat = DeltaTargetStrategy(
delta_upper_bound = 0.11,
delta_lower_bound = 0.10,
delta_target = -0.10,
option_type = OptionType.PUT,
number_of_contracts = 1,
spread_width = 50,