-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathdocker-compose-backtesting.yml
68 lines (67 loc) · 2.4 KB
/
docker-compose-backtesting.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
---
version: '3'
services:
hyperopt:
# image: freqtradeorg/freqtrade:develop
# Use plotting image
# image: freqtradeorg/freqtrade:develop_plot
# Build step - only needed when additional dependencies are needed
build:
context: .
dockerfile: "./docker/Dockerfile.custom"
container_name: freqtrade-hyperopt
volumes:
- "./user_data:/freqtrade/user_data"
# Expose api on port 8080 (localhost only)
# Please read the https://www.freqtrade.io/en/latest/rest-api/ documentation
# before enabling this.
# Default command used when running `docker compose up`
command: >
hyperopt
--timerange ${TIMERANGE:-20210801-20210930}
--spaces buy sell roi stoploss trailing
--strategy BB_RPB_TSL
--hyperopt-loss ShortTradeDurHyperOptLoss
--config user_data/data/pairlists.json
--config user_data/data/${EXCHANGE:-binance}-usdt-static.json
--max-open-trades ${MAX_OPEN_TRADES:-5}
--stake-amount ${STAKE_AMOUNT:-unlimited}
--job-workers -2
-e 500
backtest:
# image: freqtradeorg/freqtrade:develop
# Use plotting image
# image: freqtradeorg/freqtrade:develop_plot
# Build step - only needed when additional dependencies are needed
build:
context: .
dockerfile: "./docker/Dockerfile.custom"
container_name: freqtrade-backtest
volumes:
- "./user_data:/freqtrade/user_data"
# Expose api on port 8080 (localhost only)
# Please read the https://www.freqtrade.io/en/latest/rest-api/ documentation
# before enabling this.
# Default command used when running `docker compose up`
command: >
backtesting
--strategy-list BB_RPB_TSL
--timerange ${TIMERANGE:-20211001-20211013}
--config user_data/data/pairlists.json
--config user_data/data/${EXCHANGE:-binance}-usdt-static.json
--max-open-trades ${MAX_OPEN_TRADES:-5}
--stake-amount ${STAKE_AMOUNT:-unlimited}
download-data:
build:
context: .
dockerfile: "./docker/Dockerfile.custom"
container_name: freqtrade-download-data
volumes:
- "./user_data:/freqtrade/user_data"
command: >
download-data
--timerange ${START_DATE:-20210701}-${END_DATE:-20211030}
--timeframe 1m 5m 15m 1h 1d
--datadir user_data/data/${EXCHANGE:-binance}
--config user_data/data/pairlists.json
--config user_data/data/${EXCHANGE:-binance}-usdt-static.json