hyperopt
This commit is contained in:
parent
998ac0a7b1
commit
a218fb66f3
@ -16,21 +16,21 @@
|
||||
},
|
||||
"protection": {},
|
||||
"roi": {
|
||||
"0": 0.135,
|
||||
"21": 0.033,
|
||||
"41": 0.007,
|
||||
"110": 0
|
||||
"0": 0.053,
|
||||
"24": 0.027999999999999997,
|
||||
"38": 0.013,
|
||||
"49": 0
|
||||
},
|
||||
"stoploss": {
|
||||
"stoploss": -0.036
|
||||
"stoploss": -0.043
|
||||
},
|
||||
"trailing": {
|
||||
"trailing_stop": true,
|
||||
"trailing_stop_positive": 0.151,
|
||||
"trailing_stop_positive_offset": 0.237,
|
||||
"trailing_only_offset_is_reached": true
|
||||
"trailing_stop_positive": 0.233,
|
||||
"trailing_stop_positive_offset": 0.30300000000000005,
|
||||
"trailing_only_offset_is_reached": false
|
||||
}
|
||||
},
|
||||
"ft_stratparam_v": 1,
|
||||
"export_time": "2025-06-03 22:51:36.760022+00:00"
|
||||
"export_time": "2025-06-04 04:42:29.613838+00:00"
|
||||
}
|
||||
@ -24,6 +24,7 @@ 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")}
|
||||
PARAMS_NAME=$(echo "$STRATEGY_NAME" | tr '[:upper:]' '[:lower:]')
|
||||
|
||||
cd ../
|
||||
source .venv/bin/activate
|
||||
@ -40,6 +41,7 @@ echo "docker-compose run --rm freqtrade backtesting \
|
||||
--freqaimodel XGBoostRegressorMultiTarget \
|
||||
--config /freqtrade/config_examples/$CONFIG_FILE \
|
||||
--strategy-path /freqtrade/templates \
|
||||
--config /freqtrade/templates/${PARAMS_NAME}.json \
|
||||
--strategy $STRATEGY_NAME \
|
||||
--timerange $START_DATE-$END_DATE \
|
||||
--fee 0.0008 \
|
||||
@ -50,6 +52,7 @@ docker-compose run --rm freqtrade backtesting \
|
||||
--freqaimodel XGBoostRegressorMultiTarget \
|
||||
--config /freqtrade/config_examples/$CONFIG_FILE \
|
||||
--strategy-path /freqtrade/templates \
|
||||
--config /freqtrade/templates/${PARAMS_NAME}.json \
|
||||
--strategy $STRATEGY_NAME \
|
||||
--timerange $START_DATE-$END_DATE \
|
||||
--fee 0.0008 \
|
||||
|
||||
@ -50,6 +50,7 @@ export $(grep -v '^#' .env | xargs)
|
||||
# 设置默认值
|
||||
STRATEGY_NAME=${STRATEGY_NAME:-TheForceV7}
|
||||
CONFIG_FILE=${CONFIG_FILE:-basic.json}
|
||||
PARAMS_NAME=$(echo "$STRATEGY_NAME" | tr '[:upper:]' '[:lower:]')
|
||||
|
||||
echo "Using strategy: $STRATEGY_NAME"
|
||||
echo "Using config: $CONFIG_FILE"
|
||||
@ -76,7 +77,9 @@ echo "docker-compose run -d --rm --name freqtrade-dryrun-${GIT_COMMIT_SHORT} -p
|
||||
--dry-run \
|
||||
--freqaimodel XGBoostRegressorMultiTarget \
|
||||
--config /freqtrade/config_examples/$CONFIG_FILE \
|
||||
--config /freqtrade/templates/${PARAMS_NAME}.json \
|
||||
--strategy $STRATEGY_NAME \
|
||||
--config /freqtrade/freqtrade/templates/${STRATEGY_NAME}.json \
|
||||
--fee 0.0008 \
|
||||
--strategy-path /freqtrade/templates"
|
||||
|
||||
@ -86,6 +89,7 @@ docker-compose run -d --rm --name freqtrade-dryrun-${GIT_COMMIT_SHORT} -p 8080:8
|
||||
--dry-run \
|
||||
--freqaimodel XGBoostRegressorMultiTarget \
|
||||
--config /freqtrade/config_examples/$CONFIG_FILE \
|
||||
--config /freqtrade/templates/${PARAMS_NAME}.json \
|
||||
--strategy $STRATEGY_NAME \
|
||||
--fee 0.0008 \
|
||||
--strategy-path /freqtrade/templates
|
||||
|
||||
@ -17,6 +17,7 @@ export $(grep -v '^#' .env | xargs)
|
||||
# 设置默认值
|
||||
STRATEGY_NAME=${STRATEGY_NAME:-FreqaiPrimer}
|
||||
CONFIG_FILE=${CONFIG_FILE:-FreqaiPrimer.json}
|
||||
PARAMS_NAME=$(echo "$STRATEGY_NAME" | tr '[:upper:]' '[:lower:]')
|
||||
|
||||
echo "Using strategy: $STRATEGY_NAME"
|
||||
echo "Using config: $CONFIG_FILE"
|
||||
@ -37,6 +38,7 @@ echo "docker-compose run --rm freqtrade hyperopt \
|
||||
--freqaimodel XGBoostRegressorMultiTarget \
|
||||
--strategy $STRATEGY_NAME \
|
||||
--config /freqtrade/config_examples/$CONFIG_FILE \
|
||||
--config /freqtrade/templates/${PARAMS_NAME}.json \
|
||||
--strategy-path /freqtrade/templates \
|
||||
--timerange ${START_DATE}-${END_DATE} \
|
||||
-e 200 \
|
||||
@ -48,6 +50,7 @@ docker-compose run --rm freqtrade hyperopt \
|
||||
--freqaimodel XGBoostRegressorMultiTarget \
|
||||
--strategy $STRATEGY_NAME \
|
||||
--config /freqtrade/config_examples/$CONFIG_FILE \
|
||||
--config /freqtrade/templates/${PARAMS_NAME}.json \
|
||||
--strategy-path /freqtrade/templates \
|
||||
--timerange ${START_DATE}-${END_DATE} \
|
||||
-e 100 \
|
||||
|
||||
@ -50,6 +50,8 @@ export $(grep -v '^#' .env | xargs)
|
||||
# 设置默认值
|
||||
STRATEGY_NAME=${STRATEGY_NAME:-TheForceV7}
|
||||
CONFIG_FILE=${CONFIG_FILE:-basic.json}
|
||||
# 设置 PARAMS_NAME 为 STRATEGY_NAME 的小写形式
|
||||
PARAMS_NAME=$(echo "$STRATEGY_NAME" | tr '[:upper:]' '[:lower:]')
|
||||
|
||||
echo "Using strategy: $STRATEGY_NAME"
|
||||
echo "Using config: $CONFIG_FILE"
|
||||
@ -76,6 +78,7 @@ echo "docker-compose run -d --rm --name freqtrade-dryrun-${GIT_COMMIT_SHORT} -p
|
||||
--freqaimodel XGBoostRegressorMultiTarget \
|
||||
--fee 0.0008
|
||||
--config /freqtrade/config_examples/$CONFIG_FILE \
|
||||
--config /freqtrade/templates/${PARAMS_NAME}.json \
|
||||
--config /freqtrade/config_examples/live.json \
|
||||
--strategy $STRATEGY_NAME \
|
||||
--strategy-path /freqtrade/templates"
|
||||
@ -86,6 +89,7 @@ docker-compose run -d --rm --name freqtrade-dryrun-${GIT_COMMIT_SHORT} -p 8080:8
|
||||
--freqaimodel XGBoostRegressorMultiTarget \
|
||||
--fee 0.0008 \
|
||||
--config /freqtrade/config_examples/$CONFIG_FILE \
|
||||
--config /freqtrade/templates/${PARAMS_NAME}.json \
|
||||
--config /freqtrade/config_examples/live.json \
|
||||
--strategy $STRATEGY_NAME \
|
||||
--strategy-path /freqtrade/templates
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user