Files
freqtrade-strategies/README.md
T

124 lines
5.2 KiB
Markdown
Raw Normal View History

2018-01-21 00:34:31 -08:00
# Freqtrade strategies
2019-02-17 16:06:39 +01:00
This Git repo contains free buy/sell strategies for [Freqtrade](https://github.com/freqtrade/freqtrade).
2018-01-21 00:34:31 -08:00
## Disclaimer
2018-01-21 00:34:31 -08:00
These strategies are for educational purposes only. Do not risk money
which you are afraid to lose. USE THE SOFTWARE AT YOUR OWN RISK. THE
AUTHORS AND ALL AFFILIATES ASSUME NO RESPONSIBILITY FOR YOUR TRADING
RESULTS.
Always start by testing strategies with a backtesting then run the
trading bot in Dry-run. Do not engage money before you understand how
it works and what profit/loss you should expect.
2018-06-03 01:14:59 -07:00
We strongly recommend you to have coding and Python knowledge. Do not
2018-01-21 00:34:31 -08:00
hesitate to read the source code and understand the mechanism of this
bot.
## Table of Content
2018-01-21 00:34:31 -08:00
- [Free trading strategies](#free-trading-strategies)
- [Contributes](#Contributes)
- [FAQ](#faq)
- [What is Freqtrade?](#what-is-freqtrade)
- [What includes these strategies?](#what-includes-these-strategies)
- [How were tested the strategies?](#how-were-tested-the-strategies)
- [How to install a strategy?](#how-to-install-a-strategy)
- [How to test a strategy?](#how-to-test-a-strategy)
- [Can I have your configuration file?](#can-i-have-your-configuration-file)
2018-06-03 01:14:59 -07:00
- [How to create/optimize a strategy?](https://github.com/freqtrade/freqtrade/blob/develop/docs/bot-optimization.md)
2018-01-21 00:34:31 -08:00
## Free trading strategies
2019-02-17 15:58:45 +01:00
2018-05-29 23:43:04 -07:00
Value below are result from backtesting from 2018-01-10 to 2018-01-30 and
2018-01-21 00:34:31 -08:00
`experimental.sell_profit_only` enabled. More detail on each strategy
page.
2018-06-03 01:24:54 -07:00
| Strategy | Buy count | AVG profit % | Total profit | AVG duration | Backtest period |
|-----------|-----------|--------------|--------------|--------------|-----------------|
| [Strategy 001](https://github.com/freqtrade/freqtrade-strategies/blob/master/user_data/strategies/strategy001.py) | 55 | 0.05 | 0.00012102 | 476.1 | 2018-01-10 to 2018-01-30 |
| [Strategy 002](https://github.com/freqtrade/freqtrade-strategies/blob/master/user_data/strategies/strategy002.py) | 9 | 3.21 | 0.00114807 | 189.4 | 2018-01-10 to 2018-01-30 |
| [Strategy 003](https://github.com/freqtrade/freqtrade-strategies/blob/master/user_data/strategies/strategy003.py) | 14 | 1.47 | 0.00081740 | 227.5 | 2018-01-10 to 2018-01-30 |
| [Strategy 004](https://github.com/freqtrade/freqtrade-strategies/blob/master/user_data/strategies/strategy004.py) | 37 | 0.69 | 0.00102128 | 367.3 | 2018-01-10 to 2018-01-30 |
| [Strategy 005](https://github.com/freqtrade/freqtrade-strategies/blob/master/user_data/strategies/strategy005.py) | 180 | 1.16 | 0.00827589 | 156.2 | 2018-01-10 to 2018-01-30 |
2018-01-21 00:34:31 -08:00
2018-06-03 01:14:59 -07:00
Strategies from this repo are free to use. Feel free to update them.
2018-01-21 00:34:31 -08:00
Most of them were designed from Hyperopt calculations.
2019-02-17 16:06:39 +01:00
Some only work in specific market conditions, while others are more "general purpose" strategies.
It's noteworthy that depending on the exchange and Pairs used, further optimization can bring better results.
2018-06-03 01:14:59 -07:00
## Share your own strategies and contribute to this repo
2019-02-17 15:58:45 +01:00
2018-06-03 01:14:59 -07:00
Feel free to send your strategies, comments, optimizations and pull requests via an
[Issue ticket](https://github.com/freqtrade/freqtrade-strategies/issues/new).
2018-01-21 00:34:31 -08:00
## FAQ
### What is Freqtrade?
2019-02-17 15:58:45 +01:00
2018-06-03 01:14:59 -07:00
[Freqtrade](https://github.com/freqtrade) is a Simple High
frequency trading bot for crypto currencies designed to support
2018-06-03 01:14:59 -07:00
exchanges and be controlled via Telegram built by [gcarq@](https://github.com/gcarq) and the
[core-dev team](https://github.com/orgs/freqtrade/teams/core-dev).
2018-01-21 00:34:31 -08:00
### What includes these strategies?
2018-01-21 00:34:31 -08:00
Each Strategies includes:
2018-01-21 00:34:31 -08:00
- [x] **Minimal ROI**: Minimal ROI optimized for the strategy.
- [x] **Stoploss**: Optimimal stoploss calculated based on hyperopt result.
- [x] **Buy Strategy**: Result from Hyperopt or based on exisiting trading strategies.
- [x] **Sell Strategy**
- [x] **Indicators**: Includes the indicators required to run the strategy.
- [x] **Hyperopt configuration:** To tune the strategy parameters.
- [x] **Backtesting results**
### How were tested the strategies?
2018-06-03 01:14:59 -07:00
All strategies tests are explain on their own tickets.
For each strategies, we generally run backtests twice with `experimental.sell_profit_only`
enabled and disabled.
2018-01-21 00:34:31 -08:00
### How to install a strategy?
2019-02-17 16:06:39 +01:00
First you need a [working Freqtrade](https://freqtrade.io).
2018-01-21 00:34:31 -08:00
Once you have the bot on the right version, follow this steps:
2018-01-21 00:34:31 -08:00
1. Select the strategy you want. All strategies of the repo are into
2018-06-06 19:28:52 +03:00
[user_data/strategies](https://github.com/freqtrade/freqtrade/tree/develop/user_data/strategies)
2018-01-21 00:34:31 -08:00
2. Copy the strategy file
3. Paste it into your `user_data/strategies` folder
2018-06-03 01:14:59 -07:00
4. Run the bot with the parameter `-s <STRATEGY CLASS NAME>` (ex: `python3 ./freqtrade/main.py -s Strategy001`)
2018-01-21 00:34:31 -08:00
2019-02-17 15:58:45 +01:00
[More information](https://www.freqtrade.io/en/latest/bot-optimization/)
2018-01-21 00:34:31 -08:00
### How to test a strategy?
2018-06-03 01:14:59 -07:00
Let assume you have selected the strategy `strategy001.py`:
2018-01-21 00:34:31 -08:00
#### Simple backtesting
2018-01-21 00:34:31 -08:00
```bash
python3 ./freqtrade/main.py -s Strategy001 backtesting
2018-01-21 00:34:31 -08:00
```
#### Refresh your test data
2018-01-21 00:34:31 -08:00
```bash
python3 ./freqtrade/main.py -s Strategy001 backtesting --refresh-pairs-cached
2018-01-21 00:34:31 -08:00
```
2019-02-17 16:06:39 +01:00
*Note:* Generally, it's recommendet to use static backtest data (from a defined period of time) for compareable results.
#### Test with live data
2018-01-21 00:34:31 -08:00
```bash
python3 ./freqtrade/main.py -s Strategy001 backtesting --live
2018-01-21 00:34:31 -08:00
```