Merge pull request #1544 from hroff-1902/patch-2

Cosmetic: fix logging in strategy/interface.py
This commit is contained in:
Matthias 2019-02-10 19:36:33 +01:00 committed by GitHub
commit 7248537d4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -166,19 +166,19 @@ class IStrategy(ABC):
if (not self.process_only_new_candles or
self._last_candle_seen_per_pair.get(pair, None) != dataframe.iloc[-1]['date']):
# Defs that only make change on new candle data.
logging.debug("TA Analysis Launched")
logger.debug("TA Analysis Launched")
dataframe = self.advise_indicators(dataframe, metadata)
dataframe = self.advise_buy(dataframe, metadata)
dataframe = self.advise_sell(dataframe, metadata)
self._last_candle_seen_per_pair[pair] = dataframe.iloc[-1]['date']
else:
logging.debug("Skippinig TA Analysis for already analyzed candle")
logger.debug("Skippinig TA Analysis for already analyzed candle")
dataframe['buy'] = 0
dataframe['sell'] = 0
# Other Defs in strategy that want to be called every loop here
# twitter_sell = self.watch_twitter_feed(dataframe, metadata)
logging.debug("Loop Analysis Launched")
logger.debug("Loop Analysis Launched")
return dataframe