backtest移除了对原生freqtrade的调用
This commit is contained in:
parent
b1c6720c93
commit
827211f880
Binary file not shown.
@ -74,13 +74,13 @@ services:
|
||||
# --export trades
|
||||
# --fee 0.0008
|
||||
# --cache none
|
||||
|
||||
command: >
|
||||
trade
|
||||
--logfile /freqtrade/user_data/logs/freqtrade.log
|
||||
--db-url sqlite:////freqtrade/user_data/tradesv3.sqlite
|
||||
--freqaimodel XGBoostRegressor
|
||||
--config /freqtrade/config_examples/theforcev7.json
|
||||
--strategy-path /freqtrade/templates
|
||||
--strategy TheForceV7
|
||||
--fee 0.0008
|
||||
#
|
||||
# command: >
|
||||
# trade
|
||||
# --logfile /freqtrade/user_data/logs/freqtrade.log
|
||||
# --db-url sqlite:////freqtrade/user_data/tradesv3.sqlite
|
||||
# --freqaimodel XGBoostRegressor
|
||||
# --config /freqtrade/config_examples/theforcev7.json
|
||||
# --strategy-path /freqtrade/templates
|
||||
# --strategy TheForceV7
|
||||
# --fee 0.0008
|
||||
|
||||
@ -1,89 +0,0 @@
|
||||
---
|
||||
services:
|
||||
freqtrade:
|
||||
image: freqtradeorg/freqtrade:develop_freqaitorch
|
||||
# # Enable GPU Image and GPU Resources
|
||||
# # Make sure to uncomment the whole deploy section
|
||||
# deploy:
|
||||
# resources:
|
||||
# reservations:
|
||||
# devices:
|
||||
# - driver: nvidia
|
||||
# count: 1
|
||||
# capabilities: [gpu]
|
||||
|
||||
# Build step - only needed when additional dependencies are needed
|
||||
# build:
|
||||
# context: .
|
||||
# dockerfile: "./docker/Dockerfile.custom"
|
||||
restart: always
|
||||
container_name: freqtrade
|
||||
volumes:
|
||||
- "./user_data:/freqtrade/user_data"
|
||||
- "./config_examples:/freqtrade/config_examples"
|
||||
- "./freqtrade/templates:/freqtrade/templates"
|
||||
- "./freqtrade/exchange/:/freqtrade/exchange"
|
||||
# Expose api on port 8080 (localhost only)
|
||||
# Please read the https://www.freqtrade.io/en/stable/rest-api/ documentation
|
||||
# for more information.
|
||||
ports:
|
||||
- "8080:8080"
|
||||
# Default command used when running `docker compose up`
|
||||
|
||||
# --freqaimodel XGBoostRegressor
|
||||
# commangd: >
|
||||
# # trade
|
||||
# --logfile /freqtrade/user_data/logs/freqtrade.log
|
||||
# --db-url sqlite:////freqtrade/user_data/tradesv3.sqlite
|
||||
# --freqaimodel LightGBMRegressor
|
||||
# --config /freqtrade/config_examples/config_freqai.okx.json
|
||||
# --strategy FreqaiExampleStrategy
|
||||
# --strategy FreqaiExampleHybridStrategy
|
||||
# --strategy-path /freqtrade/templates
|
||||
# command: >
|
||||
# backtesting
|
||||
# --logfile /freqtrade/user_data/logs/freqtrade.log
|
||||
# --freqaimodel XGBoostRegressor
|
||||
# --config /freqtrade/config_examples/config_freqai.okx.json
|
||||
# --strategy-path /freqtrade/templates
|
||||
# --strategy FreqaiExampleStrategy
|
||||
# --timerange 20250310-20250410
|
||||
# --export trades
|
||||
# command: >
|
||||
# hyperopt
|
||||
# --logfile /freqtrade/user_data/logs/freqtrade.log
|
||||
# --freqaimodel LightGBMRegressor
|
||||
# --config /freqtrade/config_examples/config_freqai.okx.json
|
||||
# --strategy-path /freqtrade/templates
|
||||
# --strategy FreqaiExampleStrategy
|
||||
# --timerange 20250301-20250420
|
||||
# --hyperopt-loss SharpeHyperOptLoss
|
||||
# --spaces roi stoploss
|
||||
# -e 200
|
||||
|
||||
#--config /freqtrade/templates/FreqaiExampleStrategy.json
|
||||
|
||||
command: >
|
||||
backtesting
|
||||
--logfile /freqtrade/user_data/logs/freqtrade.log
|
||||
--freqaimodel XGBoostRegressor
|
||||
--config /freqtrade/config_examples/config_my_hyperopt.json
|
||||
--strategy-path /freqtrade/templates
|
||||
--strategy TheForceV7
|
||||
--timerange 20250510-20250514
|
||||
--breakdown week month
|
||||
--export trades
|
||||
--fee 0.0008
|
||||
--slippage 0.005
|
||||
--export trades
|
||||
--cache none
|
||||
|
||||
# command: >
|
||||
# trade
|
||||
# --logfile /freqtrade/user_data/logs/freqtrade.log
|
||||
# --db-url sqlite:////freqtrade/user_data/tradesv3.sqlite
|
||||
# --freqaimodel XGBoostRegressor
|
||||
# --config /freqtrade/config_examples/config_my_hyperopt.json
|
||||
# --strategy-path /freqtrade/templates
|
||||
# --strategy TheForceV7
|
||||
# --fee 0.0008
|
||||
@ -30,21 +30,21 @@ source .venv/bin/activate
|
||||
rm -rf user_data/models/*
|
||||
rm -rf ./freqtrade/user_data/data/backtest_results/*
|
||||
rm -fr ./user_data/dryrun_results/*
|
||||
rm result/*
|
||||
|
||||
hyperopt_config="${STRATEGY_NAME%.py}.json"
|
||||
#docker-compose -f docker-compose_backtest.yml run --rm freqtrade >output.log 2>&1
|
||||
freqtrade backtesting \
|
||||
--logfile ./user_data/logs/freqtrade.log \
|
||||
docker-compose run --rm freqtrade backtesting \
|
||||
--logfile /freqtrade/user_data/logs/freqtrade.log \
|
||||
--freqaimodel XGBoostRegressor \
|
||||
--strategy $STRATEGY_NAME \
|
||||
--config ./freqtrade/templates/$hyperopt_config \
|
||||
--config config_examples/$CONFIG_FILE \
|
||||
--strategy-path ./freqtrade/templates \
|
||||
--timerange ${START_DATE}-${END_DATE} \
|
||||
--config /freqtrade/config_examples/config_my_hyperopt.json \
|
||||
--strategy-path /freqtrade/templates \
|
||||
--strategy TheForceV7 \
|
||||
--timerange 20250510-20250514 \
|
||||
--breakdown week month \
|
||||
--enable-protections \
|
||||
--export trades \
|
||||
--fee 0.0016 \
|
||||
--fee 0.0008 \
|
||||
--export trades \
|
||||
--cache none >output.log 2>&1
|
||||
sed -i 's/\x1B\[[0-9;]*m//g' output.log
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user