QuantConnect / Lean

Lean Algorithmic Trading Engine by QuantConnect (Python, C#)
https://lean.io
Apache License 2.0
9.55k stars 3.23k forks source link

0DTE on Monday #8321

Closed AlexCatarino closed 2 weeks ago

AlexCatarino commented 2 weeks ago

Expected Behavior

If we select 0DTE options, we should get contracts every day.

Actual Behavior

If we select 0DTE options, we miss the Mondays:

Captura de ecrã 2024-09-13 000921

New master changes the behavior for other expires, e.g.

option.SetFilter(lambda universe: universe.include_weeklys().expiration(3, 5))

Captura de ecrã 2024-09-13 144545

Potential Solution

N/A

Reproducing the Problem

backtest d608a3

System Information

Checklist