-
Notifications
You must be signed in to change notification settings - Fork 25
/
Makefile
69 lines (50 loc) · 2.08 KB
/
Makefile
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
69
.PHONY: run
.ONESHELL:
-include .env
export
#STRATEGIES = $(shell ls user_data/strategies | grep py | sed "s/.py//g" | grep -v "IndicatorforRL" | grep -v "TrainCatBoostStrategy" | grep -v "Nostalgia" | grep -v "Ensemble" | tr "\n" " ")
TODAY = $(shell date +'%Y-%m-%d')
all: help
help: # show all commands
@sed -n 's/:.*#/:/p' makefile | grep -v sed
build: # update and build local image
docker compose pull && docker compose build --progress=plain
pairs: # pull pairs for $COIN
docker compose run --rm freqtrade \
freqtrade list-pairs --config test.json --quot=$(COIN) --print-json
list-data: # list data
docker compose run --rm freqtrade \
freqtrade list-data --config test.json
list-strats: # list strategies
@echo $(STRATEGIES)
data: # download data
@docker compose run --rm freqtrade \
freqtrade download-data --config test.json --timerange $(TIMERANGE) -t $(TIMEFRAME)\
test: data # run backtest
@docker compose run --rm freqtrade \
freqtrade backtesting --config test.json --strategy-list $(STRATEGY) --timeframe $(TIMEFRAME) --timerange=$(TIMERANGE) \
--export=trades\
test-all: data # run backtest on all strats
docker compose run --rm freqtrade \
freqtrade backtesting --config test.json --strategy-list $(STRATEGIES) --timerange=$(TIMERANGE) --timeframe $(TIMEFRAME) --export=trades
gym: # run rl env
docker compose run --rm freqtrade \
python /freqtrade/user_data/freqgym.py
hyperopt: data # run hyper opt
docker compose run --rm freqtrade \
freqtrade hyperopt --config test.json --hyperopt-loss $(LOSS) --spaces $(SPACES) --strategy $(STRATEGY) -e $(EPOCHS) --timerange=$(TIMERANGE) --timeframe=$(TIMEFRAME) --random-state 42 -j -1
stop: # stop containers
docker compose stop
logs: # tail logs for $APP
heroku logs --tail --app $(APP)
output: # build output
heroku builds:output --app $(APP)
lab: # run jupyterlab server
docker compose up lab
tensorboard: # run tensorboard
docker compose up tensorboard
shell: # run bash
docker compose run --rm freqtrade bash
dry: # run dry mode
docker compose run --rm freqtrade \
freqtrade trade --config dry.json --verbose