This commit is contained in:
creslin 2018-08-03 08:38:13 +00:00
parent 6b3e8dcc33
commit d2a728cebd

View File

@ -136,9 +136,9 @@ class IStrategy(ABC):
dataframe = parse_ticker_dataframe(ticker_history) dataframe = parse_ticker_dataframe(ticker_history)
pair = metadata['pair'] pair = metadata['pair']
last_candle_seen = self.candleSeen.get_last_seen(pair) last_seen = self.candleSeen.get_last_seen(pair)
if last_candle_seen != dataframe.iloc[-1]['date'] or self.config.get('ta_on_candle') is False: if last_seen != dataframe.iloc[-1]['date'] or self.config.get('ta_on_candle') is False:
# Defs that only make change on new candle data. # Defs that only make change on new candle data.
logging.info("TA Analysis Launched") logging.info("TA Analysis Launched")
dataframe = self.advise_indicators(dataframe, metadata) dataframe = self.advise_indicators(dataframe, metadata)