This commit is contained in:
zhangkun9038@dingtalk.com 2025-05-12 10:49:11 +00:00
parent 2a7d94cd23
commit f34adc75f2
6 changed files with 22 additions and 11 deletions

View File

@ -1,4 +1,4 @@
---
version: '3.8'
services:
freqtrade:
image: freqtradeorg/freqtrade:develop_freqaitorch
@ -29,7 +29,7 @@ services:
ports:
- "8080:8080"
# Default command used when running `docker compose up`
# --freqaimodel XGBoostRegressor
# commangd: >
# # trade
@ -58,19 +58,30 @@ services:
# --strategy FreqaiExampleStrategy
# --timerange 20250301-20250420
# --hyperopt-loss SharpeHyperOptLoss
# --spaces roi stoploss
# --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 20250301-20250405
# --export trades
# --fee 0.0008
# --cache none
command: >
backtesting
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
--timerange 20240901-20250315
--export trades
--fee 0.0008
--cache none
--export trades

View File

@ -1 +0,0 @@
{"TheForceV7":{"run_id":"fb919d67e6fbce2435c96c8c47cff2fab275dca5","backtest_start_time":1747037695,"timeframe":"5m","timeframe_detail":null,"backtest_start_ts":1704067200,"backtest_end_ts":1744502400}}

View File

@ -0,0 +1 @@
{"TheForceV7":{"run_id":"e8f9a8bc83f3c5ac5ce322fdaaa8e118ecd1dc96","backtest_start_time":1747043938,"timeframe":"5m","timeframe_detail":null,"backtest_start_ts":1704067200,"backtest_end_ts":1744502400}}

View File

@ -14,7 +14,7 @@ class TheForceV7(IStrategy):
}
stoploss = -0.1
trailing_stop = False
timeframe = '5m'
timeframe = '3m'
process_only_new_candles = True
use_exit_signal = True # 替换 use_sell_signal
ignore_roi_if_entry_signal = True # 替换 ignore_roi_if_buy_signal