Skip to content

Commit

Permalink
Filter VIX weeklies too
Browse files Browse the repository at this point in the history
  • Loading branch information
brndnmtthws committed Mar 19, 2024
1 parent 50691c4 commit 7bbd59d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion thetagang/portfolio_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,7 @@ def filter_positions(
and (
item.contract.symbol in symbols
or item.contract.symbol == "VIX"
or item.contract.symbol == "VIXW"
or item.contract.symbol == self.config["cash_management"]["cash_fund"]
)
and item.position != 0
Expand All @@ -467,7 +468,10 @@ def initialize_account(self) -> None:
trade.contract.symbol in self.get_symbols()
or (
self.config["vix_call_hedge"]["enabled"]
and trade.contract.symbol == "VIX"
and (
trade.contract.symbol == "VIX"
or trade.contract.symbol == "VIXW"
)
)
or (
self.config["cash_management"]["enabled"]
Expand Down

0 comments on commit 7bbd59d

Please sign in to comment.