Improve Notebook documentation to include Dataprovider

fix #5975
This commit is contained in:
Matthias
2021-11-27 19:53:37 +01:00
parent 409a801763
commit 6429205d39
2 changed files with 5 additions and 1 deletions

View File

@@ -79,7 +79,9 @@
"source": [
"# Load strategy using values set above\n",
"from freqtrade.resolvers import StrategyResolver\n",
"from freqtrade.data.dataprovider import DataProvider\n",
"strategy = StrategyResolver.load_strategy(config)\n",
"strategy.dp = DataProvider(config, None, None)\n",
"\n",
"# Generate buy/sell signals using strategy\n",
"df = strategy.analyze_ticker(candles, {'pair': pair})\n",