mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
small cleanup
This commit is contained in:
parent
b79d4e8876
commit
7593339c14
|
@ -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)
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user