Add stop multiple to iron condor trade

This commit is contained in:
moshferatu 2024-02-27 05:55:29 -08:00
parent 5d75d0d635
commit b6c0738e00

View File

@ -4,8 +4,9 @@ from backtesting.credit_targeting import iron_condor_strategy
class IronCondorTrade:
def __init__(self, symbol: str, target: float, entry_time: datetime):
def __init__(self, symbol: str, target: float, entry_time: datetime, stop_multiple: float):
self.symbol = symbol
self.target = target
self.entry_time = entry_time.replace(tzinfo = None)
self.strategy = iron_condor_strategy(target)
self.stop_multiple = stop_multiple