Hyperopt参数更新 - 阶段:0 | VM:rose | ResponseID:RzzwIhIvLV2R | 2025-11-22 21:33:00

This commit is contained in:
zhangkun 2025-11-22 21:33:00 +08:00
parent 5c2f0d59c1
commit cad7f8d514
2 changed files with 53 additions and 41 deletions

View File

@ -1,37 +1,46 @@
{
"strategy_name": "FreqaiPrimer",
"export_time": "2025-11-22 11:58:03.496751+00:00",
"ft_stratparam_v": 1,
"max_open_trades": 5,
"minimal_roi": {
"0": 0.188,
"100": 0,
"21": 0.041999999999999996,
"36": 0.016
},
"params": {
"trailing": {
"trailing_stop": true,
"trailing_stop_positive": 0.0125,
"trailing_stop_positive_offset": 0.045,
"trailing_only_offset_is_reached": false
},
"max_open_trades": {
"max_open_trades": 5
},
"buy": {
"add_position_callback": 0.035,
"h1_max_candles": 246,
"h1_max_consecutive_candles": 2,
"h1_rapid_rise_threshold": 0.147,
"add_bb_lower_proximity": 0.873,
"add_position_callback": 0.035,
"add_position_decrease_ratio": 0.37,
"add_rsi_oversold_threshold": 20,
"add_stochrsi_oversold": 48,
"adjust_multiplier": 1.13,
"bb_length": 31,
"bb_lower_deviation": 0.99,
"bb_std": 3.0,
"bb_length": 17,
"bb_lower_deviation": 0.926,
"bb_std": 2.384,
"bb_width_threshold": 0.043,
"h1_max_candles": 246,
"h1_max_consecutive_candles": 2,
"h1_rapid_rise_threshold": 0.147,
"max_entry_adjustments": 3,
"min_condition_count": 3,
"min_condition_count": 2,
"rsi_bull_threshold": 36,
"rsi_length": 23,
"rsi_oversold": 62,
"stochrsi_bull_threshold": 55,
"rsi_length": 12,
"rsi_oversold": 27,
"stochrsi_bull_threshold": 18,
"stochrsi_neutral_threshold": 7,
"volume_multiplier": 2.9
"volume_multiplier": 0.742
},
"max_open_trades": {
"max_open_trades": 5
},
"protection": {},
"roi": {
"0": 0.13,
"12": 0.046,
"24": 0.008,
"71": 0
},
"sell": {
"exit_bb_upper_deviation": 1.21,
@ -45,17 +54,20 @@
"reduce_coefficient": 0.467,
"reduce_profit_base": 0.172
},
"protection": {},
"roi": {
"0": 0.13,
"12": 0.046,
"24": 0.008,
"71": 0
},
"stoploss": {
"stoploss": -0.194
},
"trailing": {
"trailing_only_offset_is_reached": false,
"trailing_stop": true,
"trailing_stop_positive": 0.0125,
"trailing_stop_positive_offset": 0.045
}
},
"ft_stratparam_v": 1,
"export_time": "2025-11-22 11:58:03.496751+00:00"
"stoploss": -0.07,
"strategy_name": "FreqaiPrimer",
"trailing_only_offset_is_reached": false,
"trailing_stop": true,
"trailing_stop_positive": 0.0125,
"trailing_stop_positive_offset": 0.045
}

View File

@ -78,14 +78,14 @@ class FreqaiPrimer(IStrategy):
# [propertiesGrp_List]--------------------------------------------------------------------------------------------------------------------------------------
# [propertiesGrp id="1" name="第一轮优化" epochs="120" space="buy roi stoploss" description="入场基础条件优化,入场确认条件优化"]
bb_std = DecimalParameter(1.0, 5.0, decimals=1, default=4.6, optimize=True, load=True, space='buy') # 极致放宽1.0-5.0
rsi_length = IntParameter(5, 35, default=13, optimize=True, load=True, space='buy') # 极致放宽5-35
bb_lower_deviation = DecimalParameter(0.90, 1.20, decimals=2, default=0.9, optimize=True, load=True, space='buy') # 极致放宽0.90-1.20
stochrsi_bull_threshold = IntParameter(15, 55, default=47, optimize=True, load=True, space='buy') # 极致放宽15-55
volume_multiplier = DecimalParameter(0.5, 5.0, decimals=1, default=4.7, optimize=True, load=True, space='buy') # 极致放宽0.5-5.0
min_condition_count = IntParameter(1, 3, default=1, optimize=True, load=True, space='buy') # 开启优化1-3降低入场门槛
bb_length = IntParameter(5, 50, default=40, optimize=True, load=True, space='buy') # 极致放宽5-50
rsi_oversold = IntParameter(15, 65, default=16, optimize=True, load=True, space='buy') # 极致放宽15-65
bb_std = DecimalParameter(1.0, 5.0, decimals=1, default=2.384, optimize=True, load=True, space='buy') # 极致放宽1.0-5.0
rsi_length = IntParameter(5, 35, default=12, optimize=True, load=True, space='buy') # 极致放宽5-35
bb_lower_deviation = DecimalParameter(0.90, 1.20, decimals=2, default=0.926, optimize=True, load=True, space='buy') # 极致放宽0.90-1.20
stochrsi_bull_threshold = IntParameter(15, 55, default=18, optimize=True, load=True, space='buy') # 极致放宽15-55
volume_multiplier = DecimalParameter(0.5, 5.0, decimals=1, default=0.742, optimize=True, load=True, space='buy') # 极致放宽0.5-5.0
min_condition_count = IntParameter(1, 3, default=2, optimize=True, load=True, space='buy') # 开启优化1-3降低入场门槛
bb_length = IntParameter(5, 50, default=17, optimize=True, load=True, space='buy') # 极致放宽5-50
rsi_oversold = IntParameter(15, 65, default=27, optimize=True, load=True, space='buy') # 极致放宽15-65
# [/propertiesGrp]
# [propertiesGrp id="2" name="第三轮优化" epochs="120" space="buy roi stoploss" description="剧烈拉升检测与加仓策略优化,加仓精准度与金额管理"]
@ -100,7 +100,7 @@ class FreqaiPrimer(IStrategy):
# [propertiesGrp id="3" name="第三轮优化" epochs="120" space="buy roi stoploss" description="剧烈拉升检测与加仓策略优化,加仓精准度与金额管理"]
add_position_callback = DecimalParameter(0.055, 0.125, decimals=3, default=0.035, optimize=False, load=True, space='buy') # 加仓回调百分比
add_rsi_oversold_threshold = IntParameter(5, 65, default=16, optimize=True, load=True, space='buy') # 极致放宽5-65
add_stochrsi_oversold = IntParameter(1, 55, default=16, optimize=True, load=True, space='buy') # 极致放宽1-55
add_stochrsi_oversold = IntParameter(1, 55, default=27, optimize=True, load=True, space='buy') # 极致放宽1-55
add_bb_lower_proximity = DecimalParameter(0.70, 1.35, decimals=3, default=1.065, optimize=True, load=True, space='buy') # 极致放宽0.70-1.35
add_position_decrease_ratio = DecimalParameter(0.2, 1.0, decimals=2, default=0.48, optimize=True, load=True, space='buy') # 极致放宽0.2-1.0
max_entry_adjustments = IntParameter(1, 12, default=5, optimize=True, load=True, space='buy') # 极致放宽1-12
@ -109,7 +109,7 @@ class FreqaiPrimer(IStrategy):
# [propertiesGrp id="4" name="第五轮优化" epochs="200" space="sell roi stoploss" description="出场条件与分级止盈,减仓与风险管理"]
exit_bb_upper_deviation = DecimalParameter(0.80, 1.25, decimals=2, default=0.99, optimize=True, load=True, space='sell') # 极致放宽0.80-1.25
exit_volume_multiplier = DecimalParameter(0.8, 6.0, decimals=1, default=4.7, optimize=True, load=True, space='sell') # 极致放宽0.8-6.0
exit_volume_multiplier = DecimalParameter(0.8, 6.0, decimals=1, default=0.742, optimize=True, load=True, space='sell') # 极致放宽0.8-6.0
exit_rsi_threshold = IntParameter(40, 85, default=58, optimize=True, load=True, space='sell') # 极致放宽40-85
exit_profit_tier1 = DecimalParameter(0.005, 0.20, decimals=3, default=0.05, optimize=True, load=True, space='sell') # 极致放宽0.005-0.20
exit_reduce_tier1 = DecimalParameter(0.05, 0.9, decimals=2, default=0.5, optimize=True, load=True, space='sell') # 极致放宽0.05-0.9