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 8, 2024
1 parent d5ed038 commit 51bfd9f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Resources/option-indicators/automatic-indicator.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@
def _update_contracts_and_greeks(self) -> None:
# Get all the tradable Option contracts.
chain = self.option_chain(<?=$underlyingSymbolPy?>).data_frame
if chain.empty:
return

# Filter the contracts down. For example, ATM contracts with the closest expiry.
expiry = chain.expiry.min()
Expand Down

0 comments on commit 51bfd9f

Please sign in to comment.