Skip to content

Commit

Permalink
Update automatic-indicator.php
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekMelchin authored Oct 11, 2024
1 parent 6a93713 commit c7e5704
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Resources/option-indicators/automatic-indicator.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
return

# Filter the contracts down. For example, ATM contracts with atleast 1 month until expiry.
chain = chain[chain.expiry > self.time + timedelta(30)]
expiry = chain.expiry.min()
chain = chain[chain.expiry == expiry]
chain.loc[:, 'abs_strike_delta'] = abs(chain['strike'] - chain['underlyinglastprice'])
Expand Down

0 comments on commit c7e5704

Please sign in to comment.