adapt docs/bot-optimization

This commit is contained in:
gcarq 2018-03-24 22:28:42 +01:00
parent 3cee94226f
commit 4fac61387f

View File

@ -14,12 +14,12 @@ Since the version `0.16.0` the bot allows using custom strategy file.
This is very simple. Copy paste your strategy file into the folder This is very simple. Copy paste your strategy file into the folder
`user_data/strategies`. `user_data/strategies`.
Let assume you have a strategy file `awesome-strategy.py`: Let assume you have a class called `AwesomeStragety` in the file `awesome-strategy.py`:
1. Move your file into `user_data/strategies` (you should have `user_data/strategies/awesome-strategy.py` 1. Move your file into `user_data/strategies` (you should have `user_data/strategies/awesome-strategy.py`
2. Start the bot with the param `--strategy awesome-strategy` (the parameter is the name of the file without '.py') 2. Start the bot with the param `--strategy AwesomeStragety` (the parameter is the class name)
```bash ```bash
python3 ./freqtrade/main.py --strategy awesome_strategy python3 ./freqtrade/main.py --strategy AwesomeStragety
``` ```
## Change your strategy ## Change your strategy
@ -35,11 +35,11 @@ A strategy file contains all the information needed to build a good strategy:
- Stoploss recommended - Stoploss recommended
- Hyperopt parameter - Hyperopt parameter
The bot also include a sample strategy you can update: `user_data/strategies/test_strategy.py`. The bot also include a sample strategy called `TestStrategy` you can update: `user_data/strategies/test_strategy.py`.
You can test it with the parameter: `--strategy test_strategy` You can test it with the parameter: `--strategy TestStrategy`
```bash ```bash
python3 ./freqtrade/main.py --strategy awesome_strategy python3 ./freqtrade/main.py --strategy AwesomeStrategy
``` ```
**For the following section we will use the [user_data/strategies/test_strategy.py](https://github.com/gcarq/freqtrade/blob/develop/user_data/strategies/test_strategy.py) **For the following section we will use the [user_data/strategies/test_strategy.py](https://github.com/gcarq/freqtrade/blob/develop/user_data/strategies/test_strategy.py)