small cleanup

This commit is contained in:
robcaulk 2022-05-25 14:42:46 +02:00
parent b79d4e8876
commit 7593339c14
2 changed files with 1 additions and 2 deletions

View File

@ -110,7 +110,7 @@ by prepending indicators with `%`:
```python ```python
def populate_any_indicators(self, metadata, pair, df, tf, informative=None, coin=""): def populate_any_indicators(self, metadata, pair, df, tf, informative=None, coin=""):
informative['%-''%-' + coin + "rsi"] = ta.RSI(informative, timeperiod=14) informative['%-' + coin + "rsi"] = ta.RSI(informative, timeperiod=14)
informative['%-' + coin + "mfi"] = ta.MFI(informative, timeperiod=25) informative['%-' + coin + "mfi"] = ta.MFI(informative, timeperiod=25)
informative['%-' + coin + "adx"] = ta.ADX(informative, window=20) informative['%-' + coin + "adx"] = ta.ADX(informative, window=20)
bollinger = qtpylib.bollinger_bands(qtpylib.typical_price(informative), window=14, stds=2.2) bollinger = qtpylib.bollinger_bands(qtpylib.typical_price(informative), window=14, stds=2.2)

View File

@ -51,7 +51,6 @@ def start_download_data(args: Dict[str, Any]) -> None:
markets = [p for p, m in exchange.markets.items() if market_is_active(m) markets = [p for p, m in exchange.markets.items() if market_is_active(m)
or config.get('include_inactive')] or config.get('include_inactive')]
if config.get('freqai') is not None: if config.get('freqai') is not None:
assert config['freqai'].get('corr_pairlist'), "No corr_pairlist found in config."
full_pairs = config['pairs'] + [pair for pair in config['freqai']['corr_pairlist'] full_pairs = config['pairs'] + [pair for pair in config['freqai']['corr_pairlist']
if pair not in config['pairs']] if pair not in config['pairs']]
expanded_pairs = expand_pairlist(full_pairs, markets) expanded_pairs = expand_pairlist(full_pairs, markets)