mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-03 00:50:11 +08:00
Fixes a start date issue
This commit is contained in:
@@ -92,7 +92,7 @@ def get_periods(start_dt, end_dt, data_frequency):
|
||||
|
||||
|
||||
def get_start_dt(end_dt, bar_count, data_frequency):
|
||||
periods = bar_count - 1
|
||||
periods = bar_count
|
||||
if periods > 1:
|
||||
delta = get_delta(periods, data_frequency)
|
||||
start_dt = end_dt - delta
|
||||
|
||||
Reference in New Issue
Block a user