Fix broken entry slippage calculation
This commit is contained in:
parent
f3c99b3aa0
commit
b26c4068ac
@ -174,7 +174,7 @@ def _enter_iron_condor(entry_time: datetime):
|
||||
{'Action': 'BUY', 'Strike': long_put_strike, 'Type': 'PUT'}
|
||||
],
|
||||
'Open': put_spread_fill,
|
||||
'Entry Slippage': round(put_spread_mid, put_spread_fill, 3)
|
||||
'Entry Slippage': round(put_spread_mid - put_spread_fill, 3)
|
||||
}
|
||||
|
||||
upsert(pd.DataFrame([{
|
||||
|
Loading…
Reference in New Issue
Block a user