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
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user