Revert data-location section

This commit is contained in:
Matthias
2020-02-12 21:43:43 +01:00
parent 483cba453a
commit 2efa1c164f
2 changed files with 8 additions and 4 deletions

View File

@@ -20,6 +20,8 @@ config = Configuration.from_files([])
config["ticker_interval"] = "5m"
# Name of the strategy class
config["strategy"] = "SampleStrategy"
# Location of the data
data_location = Path(config['user_data_dir'], 'data', 'binance')
# Pair to analyze - Only use one pair here
pair = "BTC_USDT"
```
@@ -29,12 +31,12 @@ pair = "BTC_USDT"
# Load data using values set above
from freqtrade.data.history import load_pair_history
candles = load_pair_history(datadir=config["datadir"],
candles = load_pair_history(datadir=data_location,
timeframe=config["ticker_interval"],
pair=pair)
# Confirm success
print("Loaded " + str(len(candles)) + f" rows of data for {pair} from {config['datadir']}")
print("Loaded " + str(len(candles)) + f" rows of data for {pair} from {data_location}")
candles.head()
```