backtest.sh

This commit is contained in:
zhangkun9038@dingtalk.com 2025-11-26 10:50:52 +08:00
parent d9fac6c604
commit ca38b53809

View File

@ -311,9 +311,7 @@ rm ./user_data/backtest_results/*
echo "docker-compose run --rm freqtrade backtesting $PAIRS_FLAG \
--logfile /freqtrade/user_data/logs/freqtrade.log \
--freqaimodel LightGBMRegressorMultiTarget \
--config /freqtrade/config_examples/$CONFIG_FILE \
--config /freqtrade/templates/$CONFIG_FILE \
--strategy $STRATEGY_NAME \
--strategy-path /freqtrade/templates \
--timerange $START_DATE-$END_DATE \
@ -324,7 +322,6 @@ echo "docker-compose run --rm freqtrade backtesting $PAIRS_FLAG \
docker-compose run --rm freqtrade backtesting $PAIRS_FLAG \
--logfile /freqtrade/user_data/logs/freqtrade.log \
--config /freqtrade/config_examples/$CONFIG_FILE \
--config /freqtrade/templates/$CONFIG_FILE \
--strategy $STRATEGY_CLASS_NAME \
--strategy-path /freqtrade/templates \
--enable-protections \
@ -357,6 +354,6 @@ cd -
sed -i '' 's/\\x1B\\[[0-9;]*m//g' output.log
cp output.log result/ -f
cd tools/
python tradestocsv.py
python analytic.py >../result/analytic.log
python3 tradestocsv.py
python3 analytic.py >../result/analytic.log
cd ../