Refactor solution to use enumerator
API Tests / build (push) Has been cancelled
Benchmarks / build (push) Has been cancelled
Build & Test Lean / build (push) Has been cancelled
Regression Tests / build (push) Has been cancelled
Report Generator Tests / build (push) Has been cancelled
Research Regression Tests / build (push) Has been cancelled
Python Virtual Environments / build (push) Has been cancelled

- Refactor daily strict end times solution to be through enumerator
  usage, so it applies for history providers too
This commit is contained in:
Martin Molinero
2024-05-14 16:44:54 -03:00
parent a78dd04112
commit 7480ef0d4b
60 changed files with 478 additions and 189 deletions
@@ -42,6 +42,8 @@ class BasicTemplateIndexDailyAlgorithm(QCAlgorithm):
self.ExpectedBarCount = 10
self.BarCounter = 0
self.settings.daily_strict_end_time_enabled = True
def on_data(self, data: Slice):
if not self.Portfolio.Invested:
# SPX Index is not tradable, but we can trade an option