Utilize new VVIX regime filter when deciding whether to enter trades
This commit is contained in:
parent
8bba1541a1
commit
1e88f1903f
@ -1,7 +1,7 @@
|
|||||||
import schedule
|
import schedule
|
||||||
import time
|
import time
|
||||||
|
|
||||||
from backtesting.filter import VolatilityRegimeFilter
|
from backtesting.filter import VVIXRegimeFilter
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from dotenv import load_dotenv
|
from dotenv import load_dotenv
|
||||||
from ibkr import Client
|
from ibkr import Client
|
||||||
@ -14,7 +14,7 @@ load_dotenv()
|
|||||||
|
|
||||||
eastern_timezone = 'America/New_York'
|
eastern_timezone = 'America/New_York'
|
||||||
|
|
||||||
trade_filters = [VolatilityRegimeFilter()]
|
trade_filters = [VVIXRegimeFilter()]
|
||||||
|
|
||||||
def enter_trade(entry_time: datetime):
|
def enter_trade(entry_time: datetime):
|
||||||
job_process = Process(target = enter_iron_condor, args = [entry_time])
|
job_process = Process(target = enter_iron_condor, args = [entry_time])
|
||||||
|
Loading…
Reference in New Issue
Block a user