mirror of
https://github.com/wassname/catalyst.git
synced 2026-10-01 12:01:05 +08:00
Fixes a start date issue
This commit is contained in:
1 parent
105fee0fb9
commit
d21cc36bef
1 file changed
+1
-1
@@ -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