Fix some typos and comment mistakes

This commit is contained in:
Matthias
2019-10-28 13:05:54 +01:00
parent 132a4da7cf
commit 61c037f2cf
4 changed files with 10 additions and 10 deletions

View File

@@ -52,7 +52,7 @@ class TimeRange:
"""
if (not self.starttype or (startup_candles
and min_date.timestamp >= self.startts)):
# If no startts was defined, or test-data starts at the defined test-date
# If no startts was defined, or backtest-data starts at the defined backtest-date
logger.warning("Moving start-date by %s candles to account for startup time.",
startup_candles)
self.startts = (min_date.timestamp + ticker_interval_secs * startup_candles)

View File

@@ -147,7 +147,7 @@ def load_pair_history(pair: str,
"""
timerange_startup = deepcopy(timerange)
if startup_candles and timerange_startup:
if startup_candles > 0 and timerange_startup:
logger.info('Using indicator startup period: %s ...', startup_candles)
timerange_startup.subtract_start(timeframe_to_seconds(ticker_interval) * startup_candles)