Small updates while reviewing

This commit is contained in:
Matthias
2021-12-07 20:21:49 +01:00
parent f1c5a4d065
commit ac2fb08aea
3 changed files with 4 additions and 5 deletions

View File

@@ -57,6 +57,7 @@ def informative(timeframe: str, asset: str = '',
def decorator(fn: PopulateIndicators):
informative_pairs = getattr(fn, '_ft_informative', [])
# TODO-lev: Add candle_type to InformativeData
informative_pairs.append(InformativeData(_asset, _timeframe, _fmt, _ffill))
setattr(fn, '_ft_informative', informative_pairs)
return fn

View File

@@ -530,7 +530,7 @@ class IStrategy(ABC, HyperStrategyMixin):
dataframe = self.analyze_ticker(dataframe, metadata)
self._last_candle_seen_per_pair[pair] = dataframe.iloc[-1]['date']
if self.dp:
self.dp._set_cached_df(pair, self.timeframe, dataframe, CandleType.SPOT)
self.dp._set_cached_df(pair, self.timeframe, dataframe, CandleType.SPOT_)
# TODO-lev: CandleType should be set conditionally
else:
logger.debug("Skipping TA Analysis for already analyzed candle")