backtest.sh ip
This commit is contained in:
parent
e3202e9ce6
commit
aba0b61d36
9
tools/### Example Usage:
Normal file
9
tools/### Example Usage:
Normal file
@ -0,0 +1,9 @@
|
||||
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
./backtest.sh 20250610 20250612
|
||||
>>>>>>> Snippet
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
./backtest.sh 20250610 20250612
|
||||
>>>>>>> Snippet
|
||||
@ -24,8 +24,14 @@ echo "Using testBranch: $TEST_BRANCH"
|
||||
# Parse command line arguments
|
||||
START_DATE=${1:-$(date -d "2 days ago" +"%Y%m%d")}
|
||||
END_DATE=${2:-$(date -d "tomorrow" +"%Y%m%d")}
|
||||
PAIRS_ARG=${3:-""} # Optional --pairs argument for docker-compose
|
||||
PARAMS_NAME=$(echo "$STRATEGY_NAME" | tr '[:upper:]' '[:lower:]')
|
||||
|
||||
# If PAIRS_ARG is provided, format it for docker-compose
|
||||
if [ -n "$PAIRS_ARG" ]; then
|
||||
PAIRS_FLAG="--pairs $PAIRS_ARG"
|
||||
else
|
||||
PAIRS_FLAG=""
|
||||
fi
|
||||
# Parse command line arguments
|
||||
START_DATE_RAW=${1:-$(date -d "2 days ago" +"%Y-%m-%d %H:%M:%S")}
|
||||
END_DATE_RAW=${2:-$(date -d "tomorrow" +"%Y-%m-%d %H:%M:%S")}
|
||||
@ -54,7 +60,7 @@ rm result/*
|
||||
hyperopt_config="${STRATEGY_NAME%.py}.json"
|
||||
#docker-compose -f docker-compose_backtest.yml run --rm freqtrade >output.log 2>&1
|
||||
|
||||
echo "docker-compose run --rm freqtrade backtesting \
|
||||
echo "docker-compose run --rm freqtrade backtesting $PAIRS_FLAG \
|
||||
--logfile /freqtrade/user_data/logs/freqtrade.log \
|
||||
--freqaimodel LightGBMRegressorMultiTarget \
|
||||
--config /freqtrade/config_examples/$CONFIG_FILE \
|
||||
@ -64,7 +70,7 @@ echo "docker-compose run --rm freqtrade backtesting \
|
||||
--fee 0.0008 \
|
||||
--cache none >output.log"
|
||||
#LightGBMRegressorMultiTarget
|
||||
docker-compose run --rm freqtrade backtesting \
|
||||
docker-compose run --rm freqtrade backtesting $PAIRS_FLAG \
|
||||
--logfile /freqtrade/user_data/logs/freqtrade.log \
|
||||
--freqaimodel LightGBMRegressorMultiTarget \
|
||||
--config /freqtrade/config_examples/$CONFIG_FILE \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user