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

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