From 5e3e7b69288e4e6f12ea442083010a481078a933 Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 26 Dec 2018 13:32:35 +0100 Subject: [PATCH] correct TOC for bot-optimization.md --- docs/bot-optimization.md | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/docs/bot-optimization.md b/docs/bot-optimization.md index 443191ed0..72b234dd5 100644 --- a/docs/bot-optimization.md +++ b/docs/bot-optimization.md @@ -7,7 +7,18 @@ indicators. - [Install a custom strategy file](#install-a-custom-strategy-file) - [Customize your strategy](#change-your-strategy) -- [Add more Indicator](#add-more-indicator) + - [Anatomy of a strategy](#anatomy-of-a-strategy) + - [Customize indicators](#customize-indicators) + - [Buy signal rules](#buy-signal-rules]) + - [Sell signal rules](#sell-signal-rules) + - [Minimal ROI](#minimal-roi) + - [Stoploss](#stoploss) + - [Ticker interval](#ticker-interval) + - [Metadata dict](#metadata-dict) + - [Where is the default strategy](#where-is-the-default-strategy) + - [Specify custom strategy location](#specify-custom-strategy-location) + - [Further strategy ideas](#further-strategy-ideas) + - [Where is the default strategy](#where-is-the-default-strategy) Since the version `0.16.0` the bot allows using custom strategy file. @@ -104,6 +115,11 @@ def populate_indicators(self, dataframe: DataFrame, metadata: dict) -> DataFrame return dataframe ``` +#### Want more indicator examples + +Look into the [user_data/strategies/test_strategy.py](https://github.com/freqtrade/freqtrade/blob/develop/user_data/strategies/test_strategy.py). +Then uncomment indicators you need. + ### Buy signal rules Edit the method `populate_buy_trend()` in your strategy file to update your buy strategy. @@ -224,11 +240,6 @@ Please note that the same buy/sell signals may work with one interval, but not t The metadata-dict (available for `populate_buy_trend`, `populate_sell_trend`, `populate_indicators`) contains additional information. Currently this is `pair`, which can be accessed using `metadata['pair']` - and will return a pair in the format `XRP/BTC`. -### Want more indicator examples - -Look into the [user_data/strategies/test_strategy.py](https://github.com/freqtrade/freqtrade/blob/develop/user_data/strategies/test_strategy.py). -Then uncomment indicators you need. - ### Where is the default strategy? The default buy strategy is located in the file