diff --git a/docs/strategy_analysis_example.md b/docs/strategy_analysis_example.md index fbfce37d1..1526ea038 100644 --- a/docs/strategy_analysis_example.md +++ b/docs/strategy_analysis_example.md @@ -14,7 +14,7 @@ from freqtrade.configuration import Configuration # Initialize empty configuration object config = Configuration.from_files([]) -# Optionally, use existing configuration file +# Optionally (recommended), use existing configuration file # config = Configuration.from_files(["config.json"]) # Define some constants @@ -22,7 +22,7 @@ config["timeframe"] = "5m" # Name of the strategy class config["strategy"] = "SampleStrategy" # Location of the data -data_location = Path(config['user_data_dir'], 'data', 'binance') +data_location = config['datadir'] # Pair to analyze - Only use one pair here pair = "BTC/USDT" ``` diff --git a/freqtrade/templates/strategy_analysis_example.ipynb b/freqtrade/templates/strategy_analysis_example.ipynb index a7430c225..77444a023 100644 --- a/freqtrade/templates/strategy_analysis_example.ipynb +++ b/freqtrade/templates/strategy_analysis_example.ipynb @@ -30,7 +30,7 @@ "\n", "# Initialize empty configuration object\n", "config = Configuration.from_files([])\n", - "# Optionally, use existing configuration file\n", + "# Optionally (recommended), use existing configuration file\n", "# config = Configuration.from_files([\"config.json\"])\n", "\n", "# Define some constants\n", @@ -38,7 +38,7 @@ "# 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", + "data_location = config['datadir']\n", "# Pair to analyze - Only use one pair here\n", "pair = \"BTC/USDT\"" ] @@ -365,7 +365,7 @@ "metadata": { "file_extension": ".py", "kernelspec": { - "display_name": "Python 3", + "display_name": "Python 3.9.7 64-bit ('trade_397')", "language": "python", "name": "python3" }, @@ -379,7 +379,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.8.5" + "version": "3.9.7" }, "mimetype": "text/x-python", "name": "python", @@ -427,7 +427,12 @@ ], "window_display": false }, - "version": 3 + "version": 3, + "vscode": { + "interpreter": { + "hash": "675f32a300d6d26767470181ad0b11dd4676bcce7ed1dd2ffe2fbc370c95fc7c" + } + } }, "nbformat": 4, "nbformat_minor": 4