Add class for representing the information necessary to identify an iron condor trade in the trades table
This commit is contained in:
parent
013b6c6e8a
commit
4c167a6d81
11
iron_condor_trade.py
Normal file
11
iron_condor_trade.py
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
from datetime import datetime
|
||||||
|
|
||||||
|
from backtesting.credit_targeting import iron_condor_strategy
|
||||||
|
|
||||||
|
class IronCondorTrade:
|
||||||
|
|
||||||
|
def __init__(self, symbol: str, target: float, entry_time: datetime):
|
||||||
|
self.symbol = symbol
|
||||||
|
self.target = target
|
||||||
|
self.entry_time = entry_time
|
||||||
|
self.strategy = iron_condor_strategy(target)
|
Loading…
Reference in New Issue
Block a user