backtest.sh

This commit is contained in:
zhangkun9038@dingtalk.com 2025-05-13 16:30:58 +00:00
parent 0931dc713e
commit 2926295201
3 changed files with 2 additions and 12 deletions

View File

@ -1,10 +0,0 @@
rm /home/ubuntu/freqtrade_old/user_data/models/test175 -fr | true
freqtrade backtesting \
--logfile user_data/logs/freqtrade.log \
--freqaimodel XGBoostRegressorMultiTarget \
--config config_examples/config_freqai.okx.json \
--strategy-path freqtrade/templates \
--strategy OKXRegressionStrategy \
--timerange 20250401-20250415 \
--fee 0.0008 \
--cache none

View File

@ -1,5 +1,5 @@
#!/bin/bash
cd ../
source .venv/bin/activate
rm -rf user_data/models/*
rm -rf ./freqtrade/user_data/data/backtest_results/*
@ -15,7 +15,7 @@ freqtrade backtesting \
--breakdown week month \
--export trades \
--fee 0.0008 \
--cache none
--cache none > output.log
sed -i 's/\x1B\[[0-9;]*m//g' output.log
python3 filter.py